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 1979292 - Do not attempt to authenticate using rh_cloud_token when token is not set
Summary: Do not attempt to authenticate using rh_cloud_token when token is not set
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: RH Cloud - Insights
Version: 6.9.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: 6.10.0
Assignee: Shimon Shtein
QA Contact: Stephen Wadeley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-05 13:51 UTC by Stephen Wadeley
Modified: 2023-09-15 01:10 UTC (History)
5 users (show)

Fixed In Version: 4.0.26
Doc Type: Known Issue
Doc Text:
Cause: Red Hat Insights is enabled by default and an inventory upload will be attempted before the user has configured the authentication token. Consequence: "Inventory scheduled sync" will be listed as a paused task, connection errors will be logged when registering new hosts when using the global registration method with Red Hat Insights (which is enabled by default on the Advanced tab). Workaround (if any): Navigate to Configure > Insights and follow the instructions to configure a Red Hat Cloud token. Alternatively, Navigate to Configure > Inventory Upload and disable Automatic inventory upload If the customer does not intend to have the toke set up, the option to disable automatic uploads is presented on manifest import page too.
Clone Of:
Environment:
Last Closed: 2021-11-16 14:12:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:12:40 UTC

Description Stephen Wadeley 2021-07-05 13:51:56 UTC
Description of problem:

On a new system:

Monitor > Tasks shows:
Inventory scheduled sync	paused	error

~]# satellite-installer --help | grep -i cloud
    --[no-]enable-foreman-plugin-rh-cloud Enable 'foreman_plugin_rh_cloud' puppet module (default: true)

its enabled by default, so its bad user experience to have this error

Version-Release number of selected component (if applicable):
6.9
6.10

How reproducible:
Every time

Steps to Reproduce:
1. Install a Satellite
2. Check tasks for "Inventory scheduled sync"


Actual results:
Inventory scheduled sync	paused	error

Expected results:
System should not attempt to authenticate using rh_cloud_token when token is not set.
A nicer error could be given to warn no token is set.
Perhaps its best to prevent enabling tasks such as Inventory upload until token is set.



Additional info:
Bug 1976904 - Inventory scheduled sync fails on new system

Comment 2 Kenny Tordeurs 2021-08-14 09:46:32 UTC
This causes foreman-maintain with a FAILED step so it's a really bad experience.

~~~
--------------------------------------------------------------------------------
Rerunning the check after fix procedure
Check for paused tasks:                                               [FAIL]
There are currently 1 paused tasks in the system
--------------------------------------------------------------------------------
~~~

I'd consider moving this to a bug over an RFE.

Comment 11 errata-xmlrpc 2021-11-16 14:12:23 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 (Moderate: Satellite 6.10 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-2021:4702

Comment 12 Red Hat Bugzilla 2023-09-15 01:10:59 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days


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