Project

General

Profile

Actions

Bug #35051

closed

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

Added by Aldrey Galindo over 1 year ago. Updated over 1 year ago.

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

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 1 (0 open1 closed)

Related to Foreman - Feature #35279: SLES support for host registrationClosedBernhard SuttnerActions
Actions #1

Updated by The Foreman Bot over 1 year ago

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

Updated by The Foreman Bot over 1 year ago

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

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases 3.3.1 added
Actions #4

Updated by Ewoud Kohl van Wijngaarden over 1 year ago

Actions #5

Updated by Ewoud Kohl van Wijngaarden over 1 year ago

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

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.

Actions #6

Updated by Ewoud Kohl van Wijngaarden over 1 year 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
Actions

Also available in: Atom PDF