Project

General

Profile

Actions

Bug #36937

closed

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

Added by Adam Ruzicka over 1 year ago. Updated over 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

Also available in: Atom PDF