Project

General

Profile

Actions

Bug #36937

closed

Error loading data from Capsule: RestClient::NotFound - 404 Not Found

Added by Adam Ruzicka about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman plugin
Target version:
-
Difficulty:
Triaged:
No
Found in Releases:

Description

Description of problem:
When dynflow-sidekiq service is restarted while a job is run on multiple hosts sequentially, the next host's run in line after the restart fails: "Error loading data from Capsule: RestClient::NotFound - 404 Not Found"

How reproducible:
Deterministic

Steps to Reproduce:
1. Have a Satellite with two hosts registered
2. Create a Job Template useful for your debugging, I used contents:
echo $(date) >> /root/test-<%= @host >; sleep 120; echo slept-$(date) >> /root/test-<= @host %>
3. Monitor -> Jobs -> Run Job
4. Select that template
5. Set filter to match the two hosts
6. Set concurrency level to one
7. Submit
8. On Satellite:
  1. systemctl stop dynflow-sidekiq@*
    9. Wait a few seconds...
    10. # systemctl start
    11. Wait...
    12. In WebUI, watch Job run details. Run on the first host should end somehow depending on what phase the daemon was killed in - it either fails after ~15 minutes or succeeds, it doesn't matter. Then run on the second host should start.

Actual results:
The run never finishes and its output shows the following error repeated indefinitely: "Error loading data from Capsule: RestClient::NotFound - 404 Not Found". No further hosts will ever run the job.

Expected results:
The run on second host should pass and other potential hosts should get their turn afterwards.

Actions #1

Updated by Adam Ruzicka about 1 year ago

  • Subject changed from Bug 2251014 - Error loading data from Capsule: RestClient::NotFound - 404 Not Found to Error loading data from Capsule: RestClient::NotFound - 404 Not Found
Actions #2

Updated by The Foreman Bot about 1 year ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-tasks/pull/733 added
Actions #3

Updated by The Foreman Bot about 1 year ago

  • Fixed in Releases foreman-tasks-8.1.1 added
Actions #4

Updated by Adam Ruzicka about 1 year ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by Adam Ruzicka about 1 year ago

  • Fixed in Releases foreman_tasks-9.0.0 added
  • Fixed in Releases deleted (foreman-tasks-8.1.1)
Actions #6

Updated by Adam Ruzicka about 1 year ago

  • Fixed in Releases foreman_tasks-8.3.3 added
Actions

Also available in: Atom PDF