-
Bug
-
Resolution: Done
-
Major
-
stream, 6.19.0
-
2
-
False
-
Proton Sprint 10
-
sat-proton
-
None
-
None
-
None
-
Automated
-
Yes
Description of problem:
Found on Stream 155.
When the user tries to generate an insights report via hammer with --no-upload option set
(hammer insights inventory generate-report --organization-id="7" --no-upload)
and then try to download the report to some path using download-report command
(hammer insights inventory download-report --organization-id="7" --path="/tmp")
the command fails with:
Failed to download report: ERF95-2416 [InventoryUpload::ReportActions::ReportMissingError]: The report file report_for_7.tar.xz doesn't exist
production.log from running the download-report command:
2026-01-09T05:22:27 [I|app|f46dd1f2] Started GET "/apidoc/apipie_checksum" for 10.0.168.114 at 2026-01-09 05:22:27 -0500 2026-01-09T05:22:27 [I|app|f46dd1f2] Processing by Apipie::ApipiesController#apipie_checksum as JSON 2026-01-09T05:22:27 [I|app|f46dd1f2] Parameters: {"apipy"=>{}} 2026-01-09T05:22:27 [I|app|f46dd1f2] Rendered /usr/share/gems/gems/apipie-rails-1.5.0/app/views/apipie/apipies/apipie_checksum.json.erb (Duration: 0.1ms | Allocations: 36) 2026-01-09T05:22:27 [I|app|f46dd1f2] Completed 200 OK in 2ms (Views: 0.8ms | ActiveRecord: 0.0ms | Allocations: 673) 2026-01-09T05:22:28 [I|app|18ba1d3f] Started GET "/api/organizations/7/rh_cloud/report" for 10.0.168.114 at 2026-01-09 05:22:28 -0500 2026-01-09T05:22:28 [I|app|18ba1d3f] Processing by Api::V2::RhCloud::InventoryController#download_file as JSON 2026-01-09T05:22:28 [I|app|18ba1d3f] Parameters: {"apiv"=>"v2", "organization_id"=>"7", "inventory"=>{}} 2026-01-09T05:22:28 [I|app|18ba1d3f] Authorized user admin(Admin User) 2026-01-09T05:22:28 [I|app|18ba1d3f] Completed 404 Not Found in 107ms (Views: 0.2ms | ActiveRecord: 6.7ms | Allocations: 9464)
When the report is generated without the --no-upload option while running the generate-report command, subsequent execution of the download-report command passes.
How reproducible:
100 %
Is this issue a regression from an earlier version:
YES
Steps to Reproduce:
1. Have some hosts registered to Sat and Insights
2. Run "hammer insights inventory generate-report --organization-id="ORGID" --no-upload" and then "hammer insights inventory download-report --organization-id="ORGID" --path="/tmp""
3. Observe the error
Actual behavior:
Report is not downloaded to the specified location.
Expected behavior:
Report should be in the specified location.
In dev environment the redhat_inventory folder is located in /home/vagrant.
Business Impact / Additional info:
This issue was found during the investigation of cli/test_positive_download_reports_job_cli_disconnected
Slack discussion about this issue.
VERSIONS:
satellite-6.19.0-0.2.stream.el9sat.noarch
foreman-3.18.0-0.3.develop.20260108005708gitc35a101.el9sat.noarch
katello-4.20.0-0.1.master.el9sat.noarch
rubygem-hammer_cli_foreman_rh_cloud-1.0.6-1.el9sat.noarch
rubygem-foreman_rh_cloud-13.0.10-1.el9sat.noarch
rubygem-foreman_theme_satellite-16.0.0-1.el9sat.noarch
Red Hat Enterprise Linux release 9.7 (Plow)