Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-96096

[RFE] Add inventory dir information to foreman collection

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • sos
    • None
    • None
    • rhel-sst-cee-supportability
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      In Satellite/foreman we have the option of uploading Host data to Host-Based inventory in console.redhat.com. For help in troubleshooting cases around this we can capture data related to the reports. For example, simply a `ls` of the inventory dir would be initially quite helpful;

      ls -lR /var/lib/foreman/red_hat_inventory/
      /var/lib/foreman/red_hat_inventory/:
      total 0
      drwxr-xr-x. 2 foreman foreman   6 Jun  9 20:44 generated_reports
      drwxr-xr-x. 3 foreman foreman 120 Jun  9 20:44 uploads/var/lib/foreman/red_hat_inventory/generated_reports:
      total 0/var/lib/foreman/red_hat_inventory/uploads:
      total 16
      drwx------. 2 foreman foreman  186 Jun  9 20:44 done
      -rw-r--r--. 1 foreman foreman  380 Mar 20  2024 report_for_10.tar.xz
      -rw-r--r--. 1 foreman foreman  376 Jun  9 20:44 report_for_11.tar.xz
      -rw-r--r--. 1 foreman foreman  380 Jun  9 20:44 report_for_9.tar.xz
      -rwxr-xr-x. 1 foreman foreman 1019 Mar 16  2023 uploader.sh/var/lib/foreman/red_hat_inventory/uploads/done:
      total 6580
      -rw-r--r--. 1 foreman foreman 6598665 Jun  4 22:58 53655241-991f-4d3f-9f49-c6bcf2b32a3a.json
      -rw-r--r--. 1 foreman foreman     301 Jun  4 22:58 metadata.json
      -rw-r--r--. 1 foreman foreman     376 Mar 14  2024 report_for_10.tar.xz
      -rw-r--r--. 1 foreman foreman     380 Jun  9 20:44 report_for_12.tar.xz
      -rw-r--r--. 1 foreman foreman   95984 Jun  9 20:44 report_for_1.tar.xz
      -rw-r--r--. 1 foreman foreman   20568 Jun  9 20:44 report_for_7.tar.xz

      We may not want to capture these reports totally, but even if we don't a simple `ls` of these dirs is very helpful for initially troubleshooting these cases.

              se-cee-supportability se cee-supportability
              rhn-support-pdudley Paul Dudley
              Pavel Moravec Pavel Moravec
              RHEL Supportability QE Bot RHEL Supportability QE Bot
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: