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

Error in Lightspeed inventory report rake task is not surfaced to Dynflow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • stream, 6.18.0
    • RH Cloud
    • False
    • Proton Refinement Backlog
    • sat-proton
    • None
    • None
    • None
    • None

      When trying to generate a Lightspeed inventory report via the 'foreman-rake' CLI on an IOP-enabled Satellite, writing the report fails and records an error in producton.log. However, the corresponding Dynflow task completes with a result of 'success'.

      How reproducible:
      100%
       

      Is this issue a regression from an earlier version:
      No
       

      Steps to Reproduce:

      1. Deploy a Satellite and enable IOP.

      2. Register a host to the Satellite and set up Lighspeed.

      3. On the Satellite, run 'foreman-rake rh_cloud_inventory:report:generate'.

      4. Open /var/log/foreman/production.log and observe the error.

      5. On the Monitor > Satellite Tasks > Tasks page of the Satellite UI, click the most recent 'Host inventory report job' task.

      6. Open the Dynflow console for the task.

      Actual behavior:
      An error is present in production.log, but the Dynflow task shows as successful.

      2025-10-08T12:29:36 [I|app|] Started generating hosts report in /tmp/d20251008-83232-b6aip9
      2025-10-08T12:29:36 [W|app|] Scoped order is ignored, it's forced to be batch order.
      2025-10-08T12:29:36 [I|app|] Adding slice 8f8a0546-7544-45c0-99f2-f00281a139c6
      2025-10-08T12:29:36 [I|app|] slice 8f8a0546-7544-45c0-99f2-f00281a139c6 was created with 1 hosts
      2025-10-08T12:29:36 [I|app|] Report generation finished
      2025-10-08T12:29:36 [I|app|] Archiving generated report
      2025-10-08T12:29:36 [I|app|] tar: tar (child): /tmp/d20251008-83902-a1kksl/report_for_1.tar.xz: Cannot open: No such file or directory
       | tar (child): Error is not recoverable: exiting now
       | ./
       | ./metadata.json
       | ./8f8a0546-7544-45c0-99f2-f00281a139c6.json
       | tar: /tmp/d20251008-83902-a1kksl/report_for_1.tar.xz: Cannot write: Broken pipe
       | tar: Child returned status 2
       | tar: Error is not recoverable: exiting now
       | 
      2025-10-08T12:29:36 [I|app|] Tar command failed: pid 83954 exit 0
      

      Expected behavior:
      The error from production.log is surfaced to the Dynflow task as well. The Dynflow task shows has a result of 'error'.

              Unassigned Unassigned
              rhn-support-synkd Danny Synk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: