Why kdump fails to generate vmcore on CoreOS with error from coreos-propagate-multipath-conf?

Solution Unverified - Updated

Environment

  • RHOCP 4.14

Issue

  • Why kdump fails to generate vmcore on CoreOS with error from coreos-propagate-multipath-conf?
[   17.162904] coreos-propagate-multipath-conf[753]: info: propagating initrd multipath configuration
[   17.190100] coreos-propagate-multipath-conf[754]: '/etc/multipath.conf' -> '/sysroot/etc/'
[   17.222166] coreos-propagate-multipath-conf[754]: cp: cannot create regular file '/sysroot/etc/': Not a directory

Resolution

  • At the moment, applying following workaround will help kdump to save vmcore on multipath dumping target. Add below line in /etc/kdump.conf file and restart kdump service.
dracut_args --omit "coreos-multipath"

Root Cause

Diagnostic Steps

  • Following messages are observed in serial console log.
[   17.162904] coreos-propagate-multipath-conf[753]: info: propagating initrd multipath configuration
[   17.183455] systemd[1]: Reached target Basic System.
[   17.190100] coreos-propagate-multipath-conf[754]: '/etc/multipath.conf' -> '/sysroot/etc/'     <-----
[   17.222166] coreos-propagate-multipath-conf[754]: cp: cannot create regular file '/sysroot/etc/': Not a directory     <-----
[   17.252761] systemd[1]: Persist Osmet Files (ISO) was skipped because of an unmet condition check (ConditionKernelCommandLine=coreos.liveiso).
[   17.269220] systemd[1]: Acquire Live PXE rootfs Image was skipped because of an unmet condition check (ConditionPathExists=/run/ostree-live).
[   17.315764] systemd[1]: Persist Osmet Files (PXE) was skipped because of an unmet condition check (ConditionPathExists=/run/ostree-live).
[   17.356699] systemd[1]: Mounted /sysroot.
[   17.362521] systemd[1]: Reached target Initrd Root File System.
[   17.370462] systemd[1]: Starting CoreOS Propagate Multipath Configuration...
[   17.414818] systemd[1]: coreos-propagate-multipath-conf.service: Main process exited, code=exited, status=1/FAILURE     <-----
[   17.427899] systemd[1]: coreos-propagate-multipath-conf.service: Failed with result 'exit-code'.
[   17.439130] systemd[1]: Failed to start CoreOS Propagate Multipath Configuration.
[   17.482933] systemd[1]: Dependency failed for Initrd Default Target.
[   17.491449] systemd[1]: initrd.target: Job initrd.target/start failed with result 'dependency'.
[   17.502566] systemd[1]: initrd.target: Triggering OnFailure= dependencies.
[   17.511624] systemd[1]: coreos-propagate-multipath-conf.service: Triggering OnFailure= dependencies.     <-----
[   17.554138] systemd[1]: Stopped target Basic System.
[   17.561073] systemd[1]: Stopped target Subsequent (Not Ignition) boot complete.
[   17.570624] systemd[1]: Stopped target Ignition Subsequent Boot Disk Setup.
[   17.627273] systemd[1]: Stopped target Initrd Root Device.
[   17.649170] systemd[1]: Stopped target Initrd /usr File System.
[   17.661315] multipathd[534]: exit (signal)
[   17.671112] multipathd[534]: --------shut down-------
[   17.683138] kdump[769]: Kdump is using the default log level(3).
[   17.745109] systemd[1]: Stopped target Network.
[   17.751586] kdump[774]: Executing failure action systemctl reboot -f     <-----
[   17.759673] systemd[1]: Stopped target Path Units.
[   17.766030] kdump[777]: Executing final action systemctl reboot -f
Components

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.