Skip to content

sap_hana_preconfigure: Boot command line not updated on RHEL 9.3 and later when using grub2-mkconfig #1081

Description

@berndfinger

Ansible Role

sap_hana_preconfigure

OS Family

RHEL

Ansible Controller - Python version

Python 3.13.5

Ansible-core version

ansible [core 2.18.6]

Bug Description

When running the role sap_hana_preconfigure with parameter sap_hana_preconfigure_modify_grub_cmdline_linux set to true, the entries processor.max_cstate=1 intel_idle.max_cstate=1 are added to kernelopts in /boot/grub2/grub.cfg and also but after a reboot, these two options are not active (=are not contained in /proc/cmdline).

This behavior is described in https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/9.3_release_notes/new-features#new-features-boot-loader.

Fix: Run grub2-mkconfig -o /boot/grub2/grub.cfg --update-bls-cmdline on RHEL systems of version 9.3 and later.

Bug reproduction

  1. Run the role sap_hana_preconfigure with parameter sap_hana_preconfigure_modify_grub_cmdline_linux set to true.
  2. Reboot the managed node if not already done by the role.
  3. Log in to the managed node and run:
    # cat /proc/cmdline
  4. Observe that the entries processor.max_cstate=1 intel_idle.max_cstate=1 are not part of the output.

Community participation

Happy to implement this bug fix

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions