Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1976904 - Inventory scheduled sync fails on new system
Summary: Inventory scheduled sync fails on new system
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Repositories
Version: 6.10.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: 6.10.0
Assignee: satellite6-bugs
QA Contact: Stephen Wadeley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-28 14:06 UTC by Stephen Wadeley
Modified: 2021-07-05 13:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-05 11:25:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 6166952 0 None None None 2021-07-05 11:38:30 UTC

Description Stephen Wadeley 2021-06-28 14:06:29 UTC
Description of problem:

On a new system:

Monitor > Tasks shows:
Inventory scheduled sync	paused	error

Task tab:

ERF50-1206 [Foreman::WrappedException]: Unable to authenticate using rh_cloud_token setting ([RestClient::BadRequest]: 400 Bad Request)


Label:CreatePulpDiskSpaceNotifications



Version-Release number of selected component (if applicable):
6.10.0-6.0

How reproducible:
I tested on two system


Steps to Reproduce:
1. Create image of satellite
2. Create instance of image
3. Run change hostname script

(the above is summary of SatLab process)
Actual results:
Task list shows:
Inventory scheduled sync	paused	error

Expected results:
No errors on a newly installed system

Comment 8 Stephen Wadeley 2021-07-05 11:25:06 UTC
Hello

thanks to Shimon Shtein for investigating.


The issue is "Automatic inventory upload" [1] was enabled but no token was entered [2]


After adding token from [3] I resumed the "Inventory scheduled sync" task and it works.


Closing as not a bug (but docs do need fixing)


[1] In web UI, go to Configure -> Inventory upload
[2] Go to Configure -> Insights
[3] https://access.redhat.com/management/api

Comment 9 Stephen Wadeley 2021-07-05 13:54:13 UTC
Bug 1979292 - [RFE] Do not attempt to authenticate using rh_cloud_token when token is not set


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