Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-36231

After upgrading from RHEL8 to RHEL9, the webhooks stopped working

XMLWordPrintable

    • 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(

      {      object: @object,      template_name: @template_name }

      ) %>'
        ~~~
      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

              rhn-support-alazik Adam Lazik
              rhn-support-alsouza Aldrey Souza
              Joniel Pasqualetto Joniel Pasqualetto
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: