-
Bug
-
Resolution: Done-Errata
-
Critical
-
6.16.z
Description of problem:
The webhooks stopped to working after upgrading from RHEL8 to RHEL9.
How reproducible:
Is this issue a regression from an earlier version:
Steps to Reproduce:
1. Enable the shellhooks: satellite-installer --enable-foreman-proxy-plugin-shellhooks
2. Create shellhook on directory /var/lib/foreman-proxy/shellhooks/
3. Create a webhook on event 'actions.remote_execution.run_host_job_succeeded' with 'Capsule Authorization' enabled
4. Create a webhook-template with this content:
~~~
<%= payload(
) %>'
~~~
5. Configure remote execution in any content host to allow the communication from the Satellite/Capsule
6. Perform a Remote execution with any simple command as 'id' or 'date'
Actual behavior:
Getting this error:
2025-07-25T17:22:02 [E|dyn|3995cfcb] Failed to run hook 'emit_event_success' for action 'Actions::RemoteExecution::RunHostJob'
2025-07-25T17:22:02 [E|dyn|3995cfcb] wrong number of arguments (given 0, expected 1) (ArgumentError)
3995cfcb | /usr/share/gems/gems/foreman_webhooks-3.2.3/app/lib/foreman_webhooks/renderer/scope/webhook_template.rb:31:in `payload'
Expected behavior:
Be able to getting the payload without issues
Business Impact / Additional info:
Medium
- clones
-
SAT-36231 After upgrading from RHEL8 to RHEL9, the webhooks stopped working
-
- Testing
-
- links to
-
RHSA-2025:154051 Satellite 6.16.5.3 Async Update