Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Tested on Sat 6.10.3 Snap 1 using the reproducer from the original report.
After clicking Build button:
2022-02-09T07:58:55 [I|app|adf2cb3e] ForemanWebhooks::EventSubscriber: build_entered.event.foreman event received
2022-02-09T07:58:55 [I|app|adf2cb3e] Enqueued ForemanWebhooks::DeliverWebhookJob (Job ID: 108a915e-27bd-4e5e-bbcc-c66ab4acd4e3) to Dynflow(default) with arguments: {:event_name=>"build_entered.event.foreman", :payload=>"", :headers=>ni
l, :url=>"https://localhost/buildentered", :webhook_id=>1}
2022-02-09T07:58:55 [I|app|adf2cb3e] ForemanWebhooks::EventSubscriber: host_updated.event.foreman event received
2022-02-09T07:58:55 [I|app|adf2cb3e] Redirected to https://dhcp-3-12.vms.sat.rdu2.redhat.com/hosts/bryan-vangelos.vms.sat.rdu2.redhat.com
2022-02-09T07:58:55 [I|app|adf2cb3e] Completed 302 Found in 241ms (ActiveRecord: 43.0ms | Allocations: 58688)
2022-02-09T07:58:55 [I|app|adf2cb3e] Performing ForemanWebhooks::DeliverWebhookJob (Job ID: 108a915e-27bd-4e5e-bbcc-c66ab4acd4e3) from Dynflow(default) enqueued at 2022-02-09T12:58:55Z with arguments: {:event_name=>"build_entered.event
.foreman", :payload=>"", :headers=>nil, :url=>"https://localhost/buildentered", :webhook_id=>1}
2022-02-09T07:58:55 [I|app|adf2cb3e] Performing 'EnterBuildTest' webhook request for event 'build_entered.event.foreman'
2022-02-09T07:58:55 [W|app|adf2cb3e] Could not parse HTTP headers JSON, ignoring: no implicit conversion of nil into String
2022-02-09T07:58:55 [I|app|adf2cb3e] Started GET "/buildentered" for 127.0.0.1 at 2022-02-09 07:58:55 -0500
2022-02-09T07:58:55 [F|app|adf2cb3e]
adf2cb3e | ActionController::RoutingError (No route matches [GET] "/buildentered"):
adf2cb3e |
adf2cb3e | lib/foreman/middleware/logging_context_request.rb:11:in `call'
adf2cb3e | katello (4.1.1.45) lib/katello/prevent_json_parsing.rb:12:in `call'
2022-02-09T07:58:55 [E|app|adf2cb3e] GET response was 404
2022-02-09T07:58:55 [I|app|adf2cb3e] Performed ForemanWebhooks::DeliverWebhookJob (Job ID: 108a915e-27bd-4e5e-bbcc-c66ab4acd4e3) from Dynflow(default) in 34.37ms
After clicking Cancel build button:
2022-02-09T07:59:11 [I|app|b9d8c356] Started GET "/hosts/bryan-vangelos.vms.sat.rdu2.redhat.com/cancelBuild" for 10.40.194.175 at 2022-02-09 07:59:11 -0500
2022-02-09T07:59:11 [I|app|b9d8c356] Processing by HostsController#cancelBuild as HTML
2022-02-09T07:59:11 [I|app|b9d8c356] Parameters: {"id"=>"bryan-vangelos.vms.sat.rdu2.redhat.com"}
2022-02-09T07:59:11 [I|app|b9d8c356] Processed 1 tasks from queue 'Host::Managed Main', completed 1/1
2022-02-09T07:59:11 [I|aud|b9d8c356] Host::Base (4) update event on build true, false
2022-02-09T07:59:11 [W|app|b9d8c356] Setting puppetrun has no definition, please define it before using
2022-02-09T07:59:11 [I|app|b9d8c356] ForemanWebhooks::EventSubscriber: build_exited.event.foreman event received
2022-02-09T07:59:11 [I|app|b9d8c356] Enqueued ForemanWebhooks::DeliverWebhookJob (Job ID: 82eaa8f6-793c-4b4d-aba4-89c084a338ba) to Dynflow(default) with arguments: {:event_name=>"build_exited.event.foreman", :payload=>"", :headers=>nil, :url=>"https://localhost/buildexited", :webhook_id=>2}
2022-02-09T07:59:11 [I|app|b9d8c356] ForemanWebhooks::EventSubscriber: host_updated.event.foreman event received
2022-02-09T07:59:11 [I|app|b9d8c356] Redirected to https://dhcp-3-12.vms.sat.rdu2.redhat.com/hosts/bryan-vangelos.vms.sat.rdu2.redhat.com
2022-02-09T07:59:11 [I|app|b9d8c356] Completed 302 Found in 288ms (ActiveRecord: 41.5ms | Allocations: 68203)
2022-02-09T07:59:11 [I|app|b9d8c356] Performing ForemanWebhooks::DeliverWebhookJob (Job ID: 82eaa8f6-793c-4b4d-aba4-89c084a338ba) from Dynflow(default) enqueued at 2022-02-09T12:59:11Z with arguments: {:event_name=>"build_exited.event.foreman", :payload=>"", :headers=>nil, :url=>"https://localhost/buildexited", :webhook_id=>2}
2022-02-09T07:59:11 [I|app|b9d8c356] Performing 'BuildExiitedTest' webhook request for event 'build_exited.event.foreman'
2022-02-09T07:59:11 [W|app|b9d8c356] Could not parse HTTP headers JSON, ignoring: no implicit conversion of nil into String
2022-02-09T07:59:11 [I|app|b9d8c356] Started GET "/buildexited" for 127.0.0.1 at 2022-02-09 07:59:11 -0500
2022-02-09T07:59:11 [F|app|b9d8c356]
b9d8c356 | ActionController::RoutingError (No route matches [GET] "/buildexited"):
b9d8c356 |
b9d8c356 | lib/foreman/middleware/logging_context_request.rb:11:in `call'
b9d8c356 | katello (4.1.1.45) lib/katello/prevent_json_parsing.rb:12:in `call'
2022-02-09T07:59:11 [E|app|b9d8c356] GET response was 404
2022-02-09T07:59:11 [I|app|b9d8c356] Performed ForemanWebhooks::DeliverWebhookJob (Job ID: 82eaa8f6-793c-4b4d-aba4-89c084a338ba) from Dynflow(default) in 35.75ms
Both hooks were delivered successfully (again, ignore routing errors, those are webhooks pointing to https://localhost/buildentered and https://localhost/buildexited).
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (Low: Satellite 6.10.3 Async Bug Fix Update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHSA-2022:0790
Tested on Sat 6.10.3 Snap 1 using the reproducer from the original report. After clicking Build button: 2022-02-09T07:58:55 [I|app|adf2cb3e] ForemanWebhooks::EventSubscriber: build_entered.event.foreman event received 2022-02-09T07:58:55 [I|app|adf2cb3e] Enqueued ForemanWebhooks::DeliverWebhookJob (Job ID: 108a915e-27bd-4e5e-bbcc-c66ab4acd4e3) to Dynflow(default) with arguments: {:event_name=>"build_entered.event.foreman", :payload=>"", :headers=>ni l, :url=>"https://localhost/buildentered", :webhook_id=>1} 2022-02-09T07:58:55 [I|app|adf2cb3e] ForemanWebhooks::EventSubscriber: host_updated.event.foreman event received 2022-02-09T07:58:55 [I|app|adf2cb3e] Redirected to https://dhcp-3-12.vms.sat.rdu2.redhat.com/hosts/bryan-vangelos.vms.sat.rdu2.redhat.com 2022-02-09T07:58:55 [I|app|adf2cb3e] Completed 302 Found in 241ms (ActiveRecord: 43.0ms | Allocations: 58688) 2022-02-09T07:58:55 [I|app|adf2cb3e] Performing ForemanWebhooks::DeliverWebhookJob (Job ID: 108a915e-27bd-4e5e-bbcc-c66ab4acd4e3) from Dynflow(default) enqueued at 2022-02-09T12:58:55Z with arguments: {:event_name=>"build_entered.event .foreman", :payload=>"", :headers=>nil, :url=>"https://localhost/buildentered", :webhook_id=>1} 2022-02-09T07:58:55 [I|app|adf2cb3e] Performing 'EnterBuildTest' webhook request for event 'build_entered.event.foreman' 2022-02-09T07:58:55 [W|app|adf2cb3e] Could not parse HTTP headers JSON, ignoring: no implicit conversion of nil into String 2022-02-09T07:58:55 [I|app|adf2cb3e] Started GET "/buildentered" for 127.0.0.1 at 2022-02-09 07:58:55 -0500 2022-02-09T07:58:55 [F|app|adf2cb3e] adf2cb3e | ActionController::RoutingError (No route matches [GET] "/buildentered"): adf2cb3e | adf2cb3e | lib/foreman/middleware/logging_context_request.rb:11:in `call' adf2cb3e | katello (4.1.1.45) lib/katello/prevent_json_parsing.rb:12:in `call' 2022-02-09T07:58:55 [E|app|adf2cb3e] GET response was 404 2022-02-09T07:58:55 [I|app|adf2cb3e] Performed ForemanWebhooks::DeliverWebhookJob (Job ID: 108a915e-27bd-4e5e-bbcc-c66ab4acd4e3) from Dynflow(default) in 34.37ms After clicking Cancel build button: 2022-02-09T07:59:11 [I|app|b9d8c356] Started GET "/hosts/bryan-vangelos.vms.sat.rdu2.redhat.com/cancelBuild" for 10.40.194.175 at 2022-02-09 07:59:11 -0500 2022-02-09T07:59:11 [I|app|b9d8c356] Processing by HostsController#cancelBuild as HTML 2022-02-09T07:59:11 [I|app|b9d8c356] Parameters: {"id"=>"bryan-vangelos.vms.sat.rdu2.redhat.com"} 2022-02-09T07:59:11 [I|app|b9d8c356] Processed 1 tasks from queue 'Host::Managed Main', completed 1/1 2022-02-09T07:59:11 [I|aud|b9d8c356] Host::Base (4) update event on build true, false 2022-02-09T07:59:11 [W|app|b9d8c356] Setting puppetrun has no definition, please define it before using 2022-02-09T07:59:11 [I|app|b9d8c356] ForemanWebhooks::EventSubscriber: build_exited.event.foreman event received 2022-02-09T07:59:11 [I|app|b9d8c356] Enqueued ForemanWebhooks::DeliverWebhookJob (Job ID: 82eaa8f6-793c-4b4d-aba4-89c084a338ba) to Dynflow(default) with arguments: {:event_name=>"build_exited.event.foreman", :payload=>"", :headers=>nil, :url=>"https://localhost/buildexited", :webhook_id=>2} 2022-02-09T07:59:11 [I|app|b9d8c356] ForemanWebhooks::EventSubscriber: host_updated.event.foreman event received 2022-02-09T07:59:11 [I|app|b9d8c356] Redirected to https://dhcp-3-12.vms.sat.rdu2.redhat.com/hosts/bryan-vangelos.vms.sat.rdu2.redhat.com 2022-02-09T07:59:11 [I|app|b9d8c356] Completed 302 Found in 288ms (ActiveRecord: 41.5ms | Allocations: 68203) 2022-02-09T07:59:11 [I|app|b9d8c356] Performing ForemanWebhooks::DeliverWebhookJob (Job ID: 82eaa8f6-793c-4b4d-aba4-89c084a338ba) from Dynflow(default) enqueued at 2022-02-09T12:59:11Z with arguments: {:event_name=>"build_exited.event.foreman", :payload=>"", :headers=>nil, :url=>"https://localhost/buildexited", :webhook_id=>2} 2022-02-09T07:59:11 [I|app|b9d8c356] Performing 'BuildExiitedTest' webhook request for event 'build_exited.event.foreman' 2022-02-09T07:59:11 [W|app|b9d8c356] Could not parse HTTP headers JSON, ignoring: no implicit conversion of nil into String 2022-02-09T07:59:11 [I|app|b9d8c356] Started GET "/buildexited" for 127.0.0.1 at 2022-02-09 07:59:11 -0500 2022-02-09T07:59:11 [F|app|b9d8c356] b9d8c356 | ActionController::RoutingError (No route matches [GET] "/buildexited"): b9d8c356 | b9d8c356 | lib/foreman/middleware/logging_context_request.rb:11:in `call' b9d8c356 | katello (4.1.1.45) lib/katello/prevent_json_parsing.rb:12:in `call' 2022-02-09T07:59:11 [E|app|b9d8c356] GET response was 404 2022-02-09T07:59:11 [I|app|b9d8c356] Performed ForemanWebhooks::DeliverWebhookJob (Job ID: 82eaa8f6-793c-4b4d-aba4-89c084a338ba) from Dynflow(default) in 35.75ms Both hooks were delivered successfully (again, ignore routing errors, those are webhooks pointing to https://localhost/buildentered and https://localhost/buildexited).