Skip to content
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

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from

Conversation

rhmk
Copy link
Member

@rhmk rhmk commented Dec 16, 2024

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.

Copy link
Member

@berndfinger berndfinger left a 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
Copy link

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

Copy link
Member Author

@rhmk rhmk Dec 16, 2024

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.

Copy link
Member

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 to en_US.UTF-8 in the shell which called the ansible-playbook command
  • managed node:

    • LANG="C.UTF-8" in /etc/locale.conf
    • package glibc-langpack-en being installed but not package langpacks-en. An attempt to remove the package glibc-langpack-en failed due to a dependency on the package grub2-tools-minimal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sap_general_preconfigure: SAP Note 2369910 not correctly implemented
3 participants