Bug 1975095

Summary: [global registration] - RHEL8 re-registration error shows the information about foreman rather satellite
Product: Red Hat Satellite Reporter: Omkar Khatavkar <okhatavk>
Component: RegistrationAssignee: Leos Stejskal <lstejska>
Status: CLOSED ERRATA QA Contact: Omkar Khatavkar <okhatavk>
Severity: low Docs Contact:
Priority: low    
Version: 6.10.0CC: lstejska, pcreech
Target Milestone: 6.10.0Keywords: Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 14:12:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Omkar Khatavkar 2021-06-23 06:31:31 UTC
Description of problem:
[global registration] - RHEL8 re-registration error shows the information about foreman rather satellite  

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

How reproducible:
always 

Steps to Reproduce:
1. Reregister the RHEL8 machine more than 2 times 
2.
3.

Actual results:
Currently getting an error related Foreman rather Satellite 

Expected results:
The satellite should get registered without any error related to the registration


Additional info:

Error Details 

"Updating Subscription Management repositories.		
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)                                                   930  B/s | 438  B     00:00		
Errors during downloading metadata for repository 'rhel-8-for-x86_64-baseos-rpms':		
- Status code: 403 for https://cdn.redhat.com/Default_Organization/Library/rhel8_content__view/content/dist/rhel8/8/x86_64/baseos/os/repodata/repomd.xml (IP: 23.222.172.83)		
Error: Failed to download metadata for repo 'rhel-8-for-x86_64-baseos-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried		
Unregistering from: subscription.rhsm.redhat.com:443/subscription		
Network error. Please check the connection details, or see /var/log/rhsm/rhsm.log for more information.		
Network error. Please check the connection details, or see /var/log/rhsm/rhsm.log for more information.		
ERROR: not_found		
Host was not found by the subscription UUID: '', this can happen if the host is registered already, but not to this Foreman		"

Comment 1 Marek Hulan 2021-07-14 15:29:54 UTC
This is a content of a template, it will be hard to brand. Perhaps we could replace the `Foreman` with `target` as the target can be also CDN/RHN or Sat5

Comment 2 Leos Stejskal 2021-07-15 13:32:52 UTC
Created redmine issue https://projects.theforeman.org/issues/33031 from this bug

Comment 3 Bryan Kearney 2021-07-28 16:04:02 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/33031 has been resolved.

Comment 9 errata-xmlrpc 2021-11-16 14:12:00 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