Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-36644

RHC mangles newlines in playbook output

XMLWordPrintable

    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Unset
    • None

      Remediations incorrectly handles newlines in playbook output.

      Here's an example of valid ansible-playbook output from a RHEL 8.6 host:

      [root@jaudet-laptop-rhel86-vmlib ~]# ANSIBLE_COLLECTIONS_PATH=/usr/share/rhc-worker-playbook/ansible/collections/ansible_collections/ ansible-playbook playbook.yml -i localhost, --connection=local
      PLAY [Set owner and permissions on /etc/sshd/sshd_config to root:root 0600] **********************
      
      TASK [Gathering Facts] ***************************************************************************
      ok: [localhost]
      
      TASK [Set the owner and permissions of ssh config file to root:root 0600] ************************
      ok: [localhost]
      
      PLAY [run insights] ******************************************************************************
      
      TASK [run insights] ******************************************************************************
      ok: [localhost]
      
      PLAY RECAP ***************************************************************************************
      localhost                  : ok=3    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0
      
      

      Here's what's displayed for an RHC-connect RHEL 8.6 host w/stage:

      [WARNING]: provided hosts list is empty, only localhost is available. Note thatthe implicit localhost does not match 'all'
      PLAY [Set owner and permissions on /etc/sshd/sshd_config to root:root 0600] ****
      TASK [Gathering Facts] *********************************************************ok: [localhost]
      TASK [Set the owner and permissions of ssh config file to root:root 0600] ******changed: [localhost]
      PLAY RECAP *********************************************************************
      localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0  
      

      Here's what's displayed for a Satellite 6.10-connected host w/stage (w/receptor):

      [WARNING]: Callback disabled by environment. Disabling the Foreman callback
      plugin.
      
      PLAY [Set owner and permissions on /etc/sshd/sshd_config to root:root 0600] ****
      
      TASK [Gathering Facts] *********************************************************
      ok: [ci-vm-10-0-132-35.hosted.upshift.rdu2.redhat.com]
      
      TASK [Set the owner and permissions of ssh config file to root:root 0600] ******
      changed: [ci-vm-10-0-132-35.hosted.upshift.rdu2.redhat.com]
      
      PLAY [run insights] ************************************************************
      
      TASK [run insights] ************************************************************
      ok: [ci-vm-10-0-132-35.hosted.upshift.rdu2.redhat.com]
      PLAY RECAP *********************************************************************
      ci-vm-10-0-132-35.hosted.upshift.rdu2.redhat.com : ok=3    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0Exit status: 0
      

        1. 2024-12-11-stage.png
          2024-12-11-stage.png
          542 kB
        2. paste.json
          141 kB
        3. rhcd-events.py
          20 kB
        4. rhc-upload.json
          9 kB
        5. stage-rhc.png
          stage-rhc.png
          406 kB
        6. stage-sat610.png
          stage-sat610.png
          467 kB

              rhn-support-dehort Derek Horton
              jaudet@redhat.com Jeremy Audet
              Jeremy Audet Jeremy Audet
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: