Skip to content

Commit 3137cad

Browse files
authored
Merge pull request #1343 from stackhpc/INFRA-804-doc-known-issue
INFRA-804: document GRUB boot issue on RL9
2 parents cea438d + eaefad7 commit 3137cad

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

doc/source/operations/upgrading-openstack.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,13 @@ Known issues
130130
around this in custom config, see the SMS PR for an example:
131131
https://github.com/stackhpc/smslab-kayobe-config/pull/354
132132

133+
* Due to a `security-related change in the GRUB package on Rocky Linux 9
134+
<https://access.redhat.com/security/cve/CVE-2023-4001>`__, the operating
135+
system can become unbootable (boot will stop at a ``grub>`` prompt). Remove
136+
the ``--root-dev-only`` option from ``/boot/efi/EFI/rocky/grub.cfg`` after
137+
applying package updates. This will happen automatically as a post hook when
138+
running the ``kayobe overcloud host package update`` command.
139+
133140
Security baseline
134141
=================
135142

@@ -863,6 +870,15 @@ To update all eligible packages, use ``*``, escaping if necessary:
863870
864871
kayobe overcloud host package update --packages "*" --limit <host>
865872
873+
.. note::
874+
875+
Due to a `security-related change in the GRUB package on Rocky Linux 9
876+
<https://access.redhat.com/security/cve/CVE-2023-4001>`__, the operating
877+
system can become unbootable (boot will stop at a ``grub>`` prompt). Remove
878+
the ``--root-dev-only`` option from ``/boot/efi/EFI/rocky/grub.cfg`` after
879+
applying package updates. This will happen automatically as a post hook when
880+
running the ``kayobe overcloud host package update`` command.
881+
866882
If the kernel has been upgraded, reboot the host or batch of hosts to pick up
867883
the change:
868884

etc/kayobe/ansible/fix-grub-rl9.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
- name: Remove "--root-dev-only" from grub.cfg if OS is Rocky Linux 9
3+
hosts: overcloud
4+
become: yes
5+
gather_facts: true
6+
7+
tasks:
8+
- name: Remove "--root-dev-only" from /boot/efi/EFI/rocky/grub.cfg
9+
ansible.builtin.replace:
10+
path: /boot/efi/EFI/rocky/grub.cfg
11+
regexp: '--root-dev-only\s?'
12+
replace: ''
13+
when:
14+
- ansible_facts['distribution'] == 'Rocky'
15+
- ansible_facts['distribution_major_version'] == '9'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../ansible/fix-grub-rl9.yml

0 commit comments

Comments
 (0)