-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
6.16.z
-
Sustaining Engineering
-
1
-
False
-
rubygem-foreman_webhooks-3.2.4
-
Important
-
Satellite Endeavour Sprint 2
-
sat-jpl
-
None
-
None
-
None
-
To Do
-
Yes
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