Bug 2003743 - Remove workaround keeping /boot RW for kdump support
Summary: Remove workaround keeping /boot RW for kdump support
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: RHCOS
Version: 4.8
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
: 4.10.0
Assignee: Timothée Ravier
QA Contact: Michael Nguyen
URL:
Whiteboard:
: 2063188 (view as bug list)
Depends On:
Blocks: 2006432 2013590 2062884 2063188 2063189
TreeView+ depends on / blocked
 
Reported: 2021-09-13 15:04 UTC by Timothée Ravier
Modified: 2022-05-17 07:03 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 2006432 (view as bug list)
Environment:
Last Closed: 2022-03-10 16:10:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github coreos fedora-coreos-config pull 1708 0 None Merged updates for `ext.config.kdump.crash` test 2022-05-17 07:03:26 UTC
Github openshift os pull 622 0 None open Bug 2003743: Revert "overaly: Keep /boot RW when kdump is enabled" 2021-09-15 11:40:39 UTC
Github openshift os pull 632 0 None open Bug 2003743: tests/kdump: Only run on x86_64 & aarch64 2021-09-22 09:40:39 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:10:28 UTC

Description Timothée Ravier 2021-09-13 15:04:16 UTC
This is a tracking bug for upstream (and will be cloned for backports) for removing the workaround keeping /boot RW for kdump support.

This is essentially reverting https://bugzilla.redhat.com/show_bug.cgi?id=1971738 now that those packages are in:
- https://bugzilla.redhat.com/show_bug.cgi?id=1976252
- https://bugzilla.redhat.com/show_bug.cgi?id=1976260

See:
- https://github.com/coreos/fedora-coreos-config/pull/1212
- https://github.com/openshift/os/pull/622

Comment 1 Timothée Ravier 2021-09-15 16:23:58 UTC
Correction: Only 4.8+ had /boot RO.

Comment 3 Timothée Ravier 2021-09-22 09:40:19 UTC
Moving back to post for https://github.com/openshift/os/pull/632

Comment 5 Michael Nguyen 2021-10-12 19:23:36 UTC
Verified that RHCOS 410.84.202110081440-0 can enable kdump on first boot.

I used the following ignition file and added karg `crashkernel=256M`.  The overlay file is no longer present and kdump works as expected.

{
  "ignition": {
    "version": "3.2.0"
  },
  "passwd": {
    "users": [
      {
        "name": "core",
        "sshAuthorizedKeys": [
          "ssh-rsa AAAAB..."
        ]
      }
    ]
  },
  "systemd": {
    "units": [
      {
        "enabled": true,
        "name": "kdump.service"
      }
    ]
  }
}

[core@localhost ~]$ cat /proc/cmdline 
BOOT_IMAGE=(hd0,gpt3)/ostree/rhcos-2a305bb263fc7d0fb7c83f4db0123f2cf104461ef1f234c1fdef3db331097773/vmlinuz-4.18.0-305.19.1.el8_4.x86_64 random.trust_cpu=on console=tty0 console=ttyS0,115200n8 ignition.platform.id=qemu ignition.firstboot crashkernel=256M ostree=/ostree/boot.1/rhcos/2a305bb263fc7d0fb7c83f4db0123f2cf104461ef1f234c1fdef3db331097773/0
[core@localhost ~]$ sudo systemctl status kdump
● kdump.service - Crash recovery kernel arming
   Loaded: loaded (/usr/lib/systemd/system/kdump.service; enabled; v>
   Active: active (exited) since Tue 2021-10-12 19:18:34 UTC; 3min 3>
  Process: 1307 ExecStart=/usr/bin/kdumpctl start (code=exited, stat>
 Main PID: 1307 (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 10429)
   Memory: 0B
   CGroup: /system.slice/kdump.service

Oct 12 19:18:17 localhost dracut[1633]: Stored kernel commandline:
Oct 12 19:18:17 localhost dracut[1633]: rd.driver.pre=iTCO_wdt,lpc_i>
Oct 12 19:18:17 localhost dracut[1633]: *** Install squash loader ***
Oct 12 19:18:17 localhost dracut[1633]: *** Squashing the files insi>
Oct 12 19:18:30 localhost dracut[1633]: *** Squashing the files insi>
Oct 12 19:18:30 localhost dracut[1633]: *** Creating image file '/va>
Oct 12 19:18:32 localhost dracut[1633]: *** Creating initramfs image>
Oct 12 19:18:34 localhost kdumpctl[1307]: kdump: kexec: loaded kdump>
Oct 12 19:18:34 localhost kdumpctl[1307]: kdump: Starting kdump: [OK]
Oct 12 19:18:34 localhost systemd[1]: Started Crash recovery kernel >
[core@localhost ~]$ ls /usr/lib/systemd/system/kdump.service.d
ls: cannot access '/usr/lib/systemd/system/kdump.service.d': No such file or directory
[core@localhost ~]$ sudo rpm-ostree status
State: idle
Deployments:
● ostree://67be3786510771cc550aa4be162f2b45cb796e4340755d7a67fa4720aa10e9ba
                   Version: 410.84.202110081440-0 (2021-10-08T14:43:28Z)

Comment 8 errata-xmlrpc 2022-03-10 16:10:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.10.3 security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:0056

Comment 9 Micah Abbott 2022-03-11 13:49:26 UTC
*** Bug 2063188 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.