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

Running Ansible role theforeman.foreman_scap_client shows [Errno 2] No such file or directory: b'bootc' but job completes successfully

XMLWordPrintable

    • False
    • sat-endeavour
    • None
    • None
    • None
    • None

      Description of problem:

      While running an OpenSCAP scan on clients registered with Red Hat Satellite 6.19, the following error is observed. The error is ignored and the scan completes successfully.

       

      193: TASK [theforeman.foreman_scap_client : Collect bootc status] *******************
      194: fatal: [client.example.com]: FAILED! => {"changed": false, "cmd": "bootc status --json", "msg": "[Errno 2] No such file or directory: b'bootc'", "rc": 2, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
      195: ...ignoring
      

      How reproducible:

      100%

       

      Is this issue a regression from an earlier version:

      NA

       

      Steps to Reproduce:

      • Configure Satellite for OpenSCAP scan.
      • Assign theforeman.foreman_scap_client role to the client.
      • Run the Ansible role.

      Actual behavior:

       Observed the following error, the step was ignored, and ansible role job completed successfully.

      ~~~
      193:
      TASK [theforeman.foreman_scap_client : Collect bootc status] *******************
      194:
      fatal: [client.example.com]: FAILED! =>

      {"changed": false, "cmd": "bootc status --json", "msg": "[Errno 2] No such file or directory: b'bootc'", "rc": 2, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

      195:
      ...ignoring
      ~~~

       

      Expected behavior:

      • The role should handle the absence of bootc properly.
      • No error should be displayed if bootc is not required.

       

       

              Unassigned Unassigned
              rhn-support-mkushwah Mohit Kushwah
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: