Project

General

Profile

Bug #35051

In Global Registration, using another LANG like pt_BR.UTF-8 breaks the UUID

Added by Aldrey Galindo 6 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Host registration
Target version:
-
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

The code below considers the LANG always as en_US:
~~
system identity: 605a0996-b0e8-411d-8691-795a1c0ea4bf
~
~

If I use the LANG 'pt_BR.UTF-8', it will break the UUID:
~~~
  1. LANG=pt_BR.UTF-8 subscription-manager identity | head -1
    identidade do sistema: 605a0996-b0e8-411d-8691-795a1c0ea4bf
    ~~~

The current code:
~~
UUID=$(subscription-manager identity | head -1 | awk '{print $3}')
~
~

Then, the UUID will be 'sistema:'.

I believe if we change the code, it will avoid this kind of issue:
~~
UUID=$(subscription-manager identity | head -1 | awk -F':' '{gsub("^ ","",$2); print $2}')
~
~


Related issues

Related to Foreman - Feature #35279: SLES support for host registrationClosed

History

#1 Updated by The Foreman Bot 6 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/9261 added

#2 Updated by The Foreman Bot 4 months ago

  • Pull request https://github.com/theforeman/foreman/pull/9347 added

#3 Updated by The Foreman Bot 4 months ago

  • Fixed in Releases 3.3.1 added

#4 Updated by Ewoud Kohl van Wijngaarden 3 months ago

#5 Updated by Ewoud Kohl van Wijngaarden 3 months ago

  • Triaged changed from No to Yes
  • Status changed from Ready For Testing to Closed
  • Category set to Host registration

In develop it was fixed in #35279 and issue was reduced to a cherry pick fix in 3.3.1 that's been merged. Automation didn't pick that up.

#6 Updated by Ewoud Kohl van Wijngaarden 2 months ago

  • Subject changed from Global Registration, if you use another LANG like pt_BR.UTF-8, it will broken the UUID to In Global Registration, using another LANG like pt_BR.UTF-8 breaks the UUID

Also available in: Atom PDF