RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 1878535 - Registration fails for byos instances
Summary: Registration fails for byos instances
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: insights-client
Version: 8.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Štěpán Tomsa
QA Contact: Pavol Kotvan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-13 21:23 UTC by Andre Pitanga
Modified: 2022-03-11 14:45 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-11 14:45:19 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Andre Pitanga 2020-09-13 21:23:34 UTC
Description of problem:

Insights client fails with error, providing scant information, when first registering a Cloud Access (BYOL/BYOS) instance on EC2.


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

insights-client --version
Client: 3.0.13-1
Core: 3.0.150-1


How reproducible:

Always


Steps to Reproduce:
1. Stand up a new instance on Ec2 using a RHEL8.0 Cloud Access enabled AMI, in other words bring-your-own-subscription. (e.g. ami-03cda30b7a23bda26).  The new instance can access yum mirrors w/o friction via RHUI

2. Attempt to register client with Red Hat Insight

Actual results:

[root@ip-172-31-42-159 ~]# insights-client --register
Unable to fetch egg url. Defaulting to /release
Could not connect to the Insights API. Run insights-client --test-connection for more information.
[root@ip-172-31-42-159 ~]# insights-client --test-connection
Running Connection Tests...
=== Begin Upload URL Connection Test ===
Testing: https://cert-api.access.redhat.com/r/insights/uploads/
HTTP Status Code: 401
HTTP Status Text: Unauthorized
HTTP Response Text: Insights services authentication failed

Connection failed
=== End Upload URL Connection Test: FAILURE ===

=== Begin API URL Connection Test ===
Testing: https://cert-api.access.redhat.com/r/insights/
HTTP Status Code: 200
HTTP Status Text: OK
HTTP Response Text: lub-dub
Successfully connected to: https://cert-api.access.redhat.com/r/insights/
=== End API URL Connection Test: SUCCESS ===

Connectivity tests completed with some errors
See /var/log/insights-client/insights-client.log for more details.```


Expected results:

Either registration should work, because the instance _is_ entitled via Cloud Access and Insights should be included, or a human readable, meaningful error message should be displayed instead

Additional info:
[root@ip-172-31-1-42 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.2 (Ootpa)


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