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

Improve support to download generated host inventory reports

XMLWordPrintable

    • Improve support to download generated host inventory reports
    • In Progress
    • 3
    • 3.15
    • False
    • sat-proton
    • Feature
    • Hide
      .Enhanced Red Hat subscription usage tracking and reporting

      With this update, you can manage Red Hat subscription manifests more effectively in Satellite.
      Each organization requires its own subscription allocation, which enables multiple organizations to maintain separate subscriptions.
      Satellite also supports future-dated subscriptions in a manifest, ensuring uninterrupted access to repositories.

      Additionally, you can track subscription usage through the *subscriptions service* on the Red Hat Hybrid Cloud Console.
      Connected deployments can upload usage data automatically by using the `foreman_rh_cloud` plugin, while disconnected deployments can generate and export usage reports in JSON, YAML, HTML, or CSV formats for analysis and compliance.
      Show
      .Enhanced Red Hat subscription usage tracking and reporting With this update, you can manage Red Hat subscription manifests more effectively in Satellite. Each organization requires its own subscription allocation, which enables multiple organizations to maintain separate subscriptions. Satellite also supports future-dated subscriptions in a manifest, ensuring uninterrupted access to repositories. Additionally, you can track subscription usage through the *subscriptions service* on the Red Hat Hybrid Cloud Console. Connected deployments can upload usage data automatically by using the `foreman_rh_cloud` plugin, while disconnected deployments can generate and export usage reports in JSON, YAML, HTML, or CSV formats for analysis and compliance.
    • Done

      Right now disconnected users can use Discovery service to export their host inventory and upload it to Subscription service.

      It can be challenging to set up in true disconnected environments as you need a connected system to obtain the container images and for the import as well. The process also appears to be a little bit confusing in scenario when the Discovery service needs to run on a disconnected system. It is a valid & supported scenario according to [0]. However in '6.1. Downloading and sending insights reports to the Hybrid Cloud Console' [1] prerequisites we state:

      The discovery command line interface must be installed on the same system as the discovery server so that you can run the following procedure from the command line interface. You cannot download and send an insights report from the graphical user interface. 

      This condition cannot be met as naturally the upload won't be possible if the discovery CLI has to run on the same server as disconnected discovery server.

      I believe we could make the export/import more user friendly for disconnected Satellite users. Possibly without the need to setup Discovery.

      Satellite can already generate the report via inventory upload plugin. To generate the report archive one can create a custom rake script as described in [2]

      The last missing piece is to allow users to upload the archive without using discovery CLI. Please consider this Jira to be an RFE for uploading the archive via console.redhat.com UI.

      Note:
      Adding the rake script to Satellite by default & making it executable via WebUI would be a great addition as well but that's for Satellite engineering and I suppose therefore outside the scope of this Jira.

       

      [0] https://access.redhat.com/documentation/en-us/subscription_central/2023/html/installing_and_configuring_discovery/assembly-installing-containers-disconnected-inst
      [1] https://access.redhat.com/documentation/en-us/subscription_central/2023/html/using_discovery/assembly-sending-reports-to-hybrid-cloud-console-gui#proc-downloading-sending-insights-reports-gui_assembly-sending-reports-to-hybrid-cloud-console-gui-ctxt
      [2] https://access.redhat.com/solutions/5414471

       

      QE Acceptance criteria

      • UI has subscription_connection_enabled setting reflected.
      • End to end to test 
        • Report is generated but not uploaded
        • Report can be downloaded both.
        • UI
      • End to end test for Hammer - Robotello
        • hammer insights inventory  generate-report (with a --no-upload flag passed)
        • hammer insights inventory download-report
        • hammer insights inventory sync
        • hammer insights cloud-connector enable --organization-id ...
      •  

       

              rhn-engineering-lfu Lucy Fu
              rhn-engineering-lfu Lucy Fu
              Ladislav Vasina Ladislav Vasina
              Lena Ansorgová (zuansorg) Lena Ansorgová (zuansorg)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: