Bug 2096429

Summary: Global Registration will fail if use a different language
Product: Red Hat Satellite Reporter: Aldrey Souza <alsouza>
Component: RegistrationAssignee: Aldrey Souza <alsouza>
Status: CLOSED ERRATA QA Contact: Sam Bible <sbible>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.10.0CC: lstejska, pcreech, rlavi, shwsingh, swadeley
Target Milestone: 6.12.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-3.3.0.8-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-16 13:34:13 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 Aldrey Souza 2022-06-13 19:24:42 UTC
Description of problem:
When the language provide the output different of 'string string: UUID', break the global registration.

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


How reproducible:

Steps to Reproduce:
1. [Client] Set the LANG:
 # export LANG=pt_BR.UTF-8

2. [Satellite] Create the Global Registration.

3. [Client] Run the curl with Global Registration

Actual results:
Concluído!
O sistema foi registrado com ID: d6be7dc5-ae0d-4018-9dd8-fcf1ff39dce9
O nome do sistema registrado é: dhcp182-113.gsslab.rdu2.redhat.com
Estado Atual do Produto Instalado:
Nome do Produto: Red Hat Enterprise Linux for x86_64
Estado:          Subscrito

ERROR: not_found
Host was not found by the subscription UUID: 'sistema:', this can happen if the host is registered already, but not to this instance

Expected results:
Run the global registration without error


Additional info:
The Global Registration has the code below:
~~~
UUID=$(subscription-manager identity | head -1 | awk '{print $3}')
~~~

# subscription-manager identity | head -1 
~~~
identidade do sistema: d6be7dc5-ae0d-4018-9dd8-fcf1ff39dce9
~~~

Comment 4 Sam Bible 2022-09-25 23:45:57 UTC
Version-Release number of selected component (if applicable):
6.12.0 - 11

Steps to Verify:
1. Set lang on host to pt_BR.UTF-8
2. Register host using Global Registration on Satellite

Expected results:
No issues with registration

Actual results:
No issues with registration

Comment 8 errata-xmlrpc 2022-11-16 13:34:13 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.12 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-2022:8506