Bug 2029375
Summary: | webhook event "build_exited" never gets triggered | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Bharati Kailas Shahu <bshahu> | |
Component: | Hooks and Webhooks | Assignee: | Oleh Fedorenko <ofedoren> | |
Status: | CLOSED ERRATA | QA Contact: | Radovan Drazny <rdrazny> | |
Severity: | medium | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 6.10.1 | CC: | christian.klier, jpasqual, karnsing, lzap, matthew.lesieur, mhulan, ofedoren, onerleka, osousa, pmendezh, zhunting | |
Target Milestone: | 6.11.0 | Keywords: | Triaged | |
Target Release: | Unused | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | katello-4.3.0-1.el7sat | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 2043700 (view as bug list) | Environment: | ||
Last Closed: | 2022-07-05 14:30:51 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: |
Description
Bharati Kailas Shahu
2021-12-06 10:44:46 UTC
Created redmine issue https://projects.theforeman.org/issues/34110 from this bug Upstream bug assigned to ofedoren Upstream bug assigned to ofedoren Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34110 has been resolved. Tested on Sat 7.0 Snap 8 using the reproducer from the original report. After clicking Build button 2022-02-09T10:02:26 [I|app|b43f1e6d] Performing 'WHBuildEnter' webhook request for event 'build_entered.event.foreman' 2022-02-09T10:02:26 [W|app|b43f1e6d] Could not parse HTTP headers JSON, ignoring: no implicit conversion of nil into String 2022-02-09T10:02:26 [I|app|b43f1e6d] Started GET "/buildentered" for 127.0.0.1 at 2022-02-09 10:02:26 -0500 2022-02-09T10:02:26 [F|app|b43f1e6d] b43f1e6d | ActionController::RoutingError (No route matches [GET] "/buildentered"): b43f1e6d | b43f1e6d | lib/foreman/middleware/logging_context_request.rb:11:in `call' b43f1e6d | katello (4.3.0.1) lib/katello/prevent_json_parsing.rb:12:in `call' 2022-02-09T10:02:26 [E|app|b43f1e6d] GET response was 404 After clicking Cancel build button 022-02-09T10:03:45 [I|app|16c477f7] Performing ForemanWebhooks::DeliverWebhookJob (Job ID: 181a1a1e-5106-4ff0-a20f-c1127e6b9799) from Dynflow(default) enqueued at 2022-02-09T15:03:44Z with arguments: {:event_name=>"build_exited.event.foreman", :payload=>"", :headers=>nil, :url=>"https://localhost/buildexited", :webhook_id=>2} 2022-02-09T10:03:45 [I|app|16c477f7] Performing 'WHBuildExited' webhook request for event 'build_exited.event.foreman' 2022-02-09T10:03:45 [W|app|16c477f7] Could not parse HTTP headers JSON, ignoring: no implicit conversion of nil into String 2022-02-09T10:03:45 [I|app|16c477f7] Started GET "/buildexited" for 127.0.0.1 at 2022-02-09 10:03:45 -0500 2022-02-09T10:03:45 [F|app|16c477f7] 16c477f7 | ActionController::RoutingError (No route matches [GET] "/buildexited"): 16c477f7 | 16c477f7 | lib/foreman/middleware/logging_context_request.rb:11:in `call' 16c477f7 | katello (4.3.0.1) lib/katello/prevent_json_parsing.rb:12:in `call' 2022-02-09T10:03:45 [E|app|16c477f7] GET response was 404 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 (Moderate: Satellite 6.11 Release), 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:5498 |