-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 907 - Checking for english locales #914
base: dev
Are you sure you want to change the base?
Conversation
…pdate Automation: number outdated packages in requirements-workflow.txt
Merge pull request sap-linuxlab#908 from sap-linuxlab/dev
…g and setting Fixes issue sap-linuxlab#907. Signed-off-by: Bernd Finger <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
success_msg: "PASS: An English locale is installed." | ||
|
||
- name: Get the current default locale | ||
ansible.builtin.command: awk '/^LANG=/&&/en_/{print}' /etc/locale.conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this does not take into account that C.UTF-8 is also english
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. Although C is English it is not sufficient for HANA2 SPS08. The en_* locales have to be installed.
A test run showed that having the system locale C while having en_* installed was sufficient.
I am not sure how we can deal with it. For now I suggest accepting C and en_* locales, as long as en_* is installed. IIRC SAP recommends en_US.UTF-8, so if some body has a proof for that and put here or to the issue would be great. Then we could at least print a warning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rhmk I just installed HANA SPS08 (rev 81) on RHEL 9.4 using:
-
control node:
LANG
set toen_US.UTF-8
in the shell which called theansible-playbook
command
-
managed node:
LANG="C.UTF-8"
in /etc/locale.conf- package
glibc-langpack-en
being installed but not packagelangpacks-en
. An attempt to remove the packageglibc-langpack-en
failed due to a dependency on the packagegrub2-tools-minimal
.
This pull request checks that English locales are installed and set as the default. Additionally, a new variable allows for the enforcement of a specific English locale. This pull request is compatible with RHEL and SLES.