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

Ansible playbook execution fails for Hosts: localhost

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • Important
    • Automated
    • Yes

       

      Description of problem:

       

       

      How reproducible:

      Always

      Is this issue a regression from an earlier version:

      Yes, it works in Satellite 6.16.0

      Steps to Reproduce:

       

      ---
      - name: Simple Ansible Playbook for Localhost  
        hosts: localhost  
        gather_facts: no  
        tasks:  
        - name: Print a message    
          debug:      
            msg: "Hello, localhost!" 

       
      Actual behavior:

       

      ansible-playbook job invocation task goes in pending state, and error logged in /var/log/foreman-proxy/proxy.log

      2024-10-25T09:25:57 551f371d [I] Started POST /dynflow/tasks/launch
      2024-10-25T09:25:57 551f371d [I] Finished POST /dynflow/tasks/launch with 200 (16.2 ms)
      2024-10-25T09:25:58  [W] handle_host_event: unknown host localhost for event 'runner_on_start', broadcasting
      2024-10-25T09:25:58  [W] handle_host_event: unknown host localhost for event 'runner_on_ok', broadcasting
      2024-10-25T09:25:58  [E] error while dispatching request to runner be51d609-4223-4642-9460-111e72332875:NoMethodError undefined method `+' for nil:NilClass:
       /usr/share/gems/gems/smart_proxy_ansible-3.5.7/lib/smart_proxy_ansible/runner/ansible_runner.rb:152:in `block in handle_broadcast_data'
      /usr/share/gems/gems/smart_proxy_ansible-3.5.7/lib/smart_proxy_ansible/runner/ansible_runner.rb:150:in `each' 

      Expected behavior:

      ansible-playbook job on the Satellite with "hosts: localhost" against a rhel host should be run successfully

      Business Impact / Additional info:

      Below fix in smart_proxy_ansible seems to be causing this issue since stream/6.17 has  smart_proxy_ansible v3.5.7, while it works in v3.5.6 in Satellite 6.16.

              Unassigned Unassigned
              gtalreja@redhat.com Gaurav Talreja
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: