Bug 2100749

Summary: [OCP 4.11] multipath support needs multipath modules
Product: OpenShift Container Platform Reporter: Riccardo Pittau <rpittau>
Component: Bare Metal Hardware ProvisioningAssignee: Riccardo Pittau <rpittau>
Bare Metal Hardware Provisioning sub component: ironic QA Contact: Lubov <lshilin>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: bzvonar, lshilin
Version: 4.11Keywords: OtherQA, Triaged
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2100836 (view as bug list) Environment:
Last Closed: 2022-08-10 11:19:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2100836    

Description Riccardo Pittau 2022-06-24 08:16:37 UTC
during node inspection, if we set a multipath device as device hint for the installation, the multipath modules need to be present and active to create the initial multipath configuration
if the modules are missing from the ironic-python-agent ramdisk, they can't be activated, and the device can't be found as not initialized

an example from the ipa logs:
00ebe8da-effc-42ff-b511-ea72f0b0922f_20220623-121335.046506.tar.gz: Command: modprobe dm_multipath
00ebe8da-effc-42ff-b511-ea72f0b0922f_20220623-121335.046506.tar.gz: Exit code: 1
00ebe8da-effc-42ff-b511-ea72f0b0922f_20220623-121335.046506.tar.gz: Stdout: ''
00ebe8da-effc-42ff-b511-ea72f0b0922f_20220623-121335.046506.tar.gz: Stderr: 'modprobe: FATAL: Module dm_multipath not found in directory /lib/modules/4.18.0-305.45.1.el8_4.x86_64\n' try_execute /usr/lib/python3.6/site-packages/ironic_lib/utils.py:132
00ebe8da-effc-42ff-b511-ea72f0b0922f_20220623-121335.046506.tar.gz: 2022-06-23 12:11:20.426 1 DEBUG oslo_concurrency.processutils [-] Running cmd (subprocess): modprobe multipath execute /usr/lib/python3.6/site-packages/oslo_concurrency/processutils.py:384
00ebe8da-effc-42ff-b511-ea72f0b0922f_20220623-121335.046506.tar.gz: 2022-06-23 12:11:20.428 1 DEBUG oslo_concurrency.processutils [-] CMD "modprobe multipath" returned: 1 in 0.002s execute /usr/lib/python3.6/site-packages/oslo_concurrency/processutils.py:423
00ebe8da-effc-42ff-b511-ea72f0b0922f_20220623-121335.046506.tar.gz: 2022-06-23 12:11:20.429 1 DEBUG oslo_concurrency.processutils [-] 'modprobe multipath' failed. Not Retrying. execute /usr/lib/python3.6/site-packages/oslo_concurrency/processutils.py:474
00ebe8da-effc-42ff-b511-ea72f0b0922f_20220623-121335.046506.tar.gz: 2022-06-23 12:11:20.429 1 DEBUG ironic_lib.utils [-] Command stdout is: "" _log /usr/lib/python3.6/site-packages/ironic_lib/utils.py:99
00ebe8da-effc-42ff-b511-ea72f0b0922f_20220623-121335.046506.tar.gz: 2022-06-23 12:11:20.429 1 DEBUG ironic_lib.utils [-] Command stderr is: "modprobe: FATAL: Module multipath not found in directory /lib/modules/4.18.0-305.45.1.el8_4.x86_64
00ebe8da-effc-42ff-b511-ea72f0b0922f_20220623-121335.046506.tar.gz: " _log /usr/lib/python3.6/site-packages/ironic_lib/utils.py:100
00ebe8da-effc-42ff-b511-ea72f0b0922f_20220623-121335.046506.tar.gz: 2022-06-23 12:11:20.429 1 DEBUG ironic_lib.utils [-] Command failed: Unexpected error while running command.
00ebe8da-effc-42ff-b511-ea72f0b0922f_20220623-121335.046506.tar.gz: Command: modprobe multipath
00ebe8da-effc-42ff-b511-ea72f0b0922f_20220623-121335.046506.tar.gz: Exit code: 1
00ebe8da-effc-42ff-b511-ea72f0b0922f_20220623-121335.046506.tar.gz: Stdout: ''
00ebe8da-effc-42ff-b511-ea72f0b0922f_20220623-121335.046506.tar.gz: Stderr: 'modprobe: FATAL: Module multipath not found in directory /lib/modules/4.18.0-305.45.1.el8_4.x86_64\n' try_execute /usr/lib/python3.6/site-packages/ironic_lib/utils.py:132

resulting then in:
2022-06-23 08:05:01.492 1 DEBUG ironic_lib.utils [-] Trying to find devices from “/dev/sdb, /dev/sdc, /dev/sdd, /dev/sde, /dev/sdf, /dev/sdg, /dev/sdh, /dev/sdi” that match the device hints “{‘name’: ‘s== /dev/dm-0’}” find_devices_by_hints /usr/lib/python3.6/site-packages/ironic_lib/utils.py:389

Comment 4 errata-xmlrpc 2022-08-10 11:19:12 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 (Important: OpenShift Container Platform 4.11.0 bug fix and 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:5069