Bug 1807829 - Generated inventory file doesn't exist
Summary: Generated inventory file doesn't exist
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: RH Cloud - Inventory
Version: 6.7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: 6.8.0
Assignee: Ron Lavi
QA Contact: Mirek Długosz
URL:
Whiteboard:
: 1817489 1862249 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-27 10:23 UTC by Lukáš Hellebrandt
Modified: 2021-07-28 10:21 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1862249 (view as bug list)
Environment:
Last Closed: 2020-10-27 13:00:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github theforeman foreman_rh_cloud pull 161 0 None closed Fix download file path 2020-10-28 17:26:34 UTC
Red Hat Product Errata RHSA-2020:4366 0 None None None 2020-10-27 13:00:48 UTC

Description Lukáš Hellebrandt 2020-02-27 10:23:47 UTC
Description of problem:
After generating the Inventory file, the file doesn't exist - I can't either upload it to c.r.c. or download it through WebUI. It's not present in the filesystem, either.

Attempt to upload causes:
"""
==> /var/log/foreman/production.log <==
2020-02-27T05:15:23 [I|app|126a16b8] Started POST "/foreman_inventory_upload/1/uploads" for 10.40.205.144 at 2020-02-27 05:15:23 -0500
2020-02-27T05:15:23 [F|app|126a16b8]   
2020-02-27T05:15:23 [F|app|126a16b8] ActionController::RoutingError (No route matches [POST] "/foreman_inventory_upload/1/uploads"):
2020-02-27T05:15:23 [F|app|126a16b8]   
2020-02-27T05:15:23 [F|app|126a16b8] lib/foreman/middleware/logging_context_request.rb:11:in `call'
katello (3.14.0.12) lib/katello/prevent_json_parsing.rb:12:in `call'
"""

Attempt to download causes error in WebUI:
"Path doesn't exist: /var/lib/foreman/red_hat_inventory/uploads/report_for_1.tar.gz"

Version-Release number of selected component (if applicable):
Sat 6.7 snap 13

How reproducible:
On the same system, upload worked at least once before so I'm not sure how I caused the error. Reproducer might not work for you.

Steps to Reproduce:
1. RH Inventory -> Manage -> Restart
2. After the file seems to be generated, go to Upload tab
3. Click Restart
4. Click Download Report

Actual results:
The file doesn't exist in the filesystem, can't be uploaded to c.r.c., can't be downloaded

Expected results:
Inventory file generated, uploaded to c.r.c., downloaded locally

Additional info:

Comment 3 Lukáš Hellebrandt 2020-02-27 10:42:14 UTC
There is no traceback or error shown when generating.

Comment 4 Lukáš Hellebrandt 2020-02-27 10:43:58 UTC
Even though there are errors shown when uploading/downloading, the system appears in c.r.c.'s inventory after some time.

Comment 6 Brad Buckingham 2020-04-27 12:12:12 UTC
*** Bug 1817489 has been marked as a duplicate of this bug. ***

Comment 8 Mirek Długosz 2020-06-18 12:08:51 UTC
Report file can be downloaded every time.

Tested on:
Satellite 6.8.0 snap 5
pulp-server-2.21.2-1.el7sat.noarch
satellite-6.8.0-0.4.beta.el7sat.noarch
foreman-2.1.0-0.20.rc2.el7sat.noarch
katello-3.16.0-0.3.rc1.el7sat.noarch
tfm-rubygem-foreman_rh_cloud-2.0.7-1.el7sat.noarch

Comment 9 James Jeffers 2020-08-03 14:48:30 UTC
*** Bug 1862249 has been marked as a duplicate of this bug. ***

Comment 12 errata-xmlrpc 2020-10-27 13:00:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.8 release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:4366


Note You need to log in before you can comment on or make changes to this bug.