-
Bug
-
Resolution: Done
-
Normal
-
None
-
4.11.z
-
Important
-
No
-
Rejected
-
False
-
-
Customer Escalated
-
-
Description of problem:
Any new BMH added remains in "inspecting".
Version-Release number of selected component (if applicable):
4.11.27
How reproducible:
Very
Steps to Reproduce:
1. Add new bare metal machine with mulitpath 2. Machine never provisions 3.
Actual results:
bmh hangs in "inspecting"
Expected results:
bmh gets added to cluster
Additional info:
$ omc get bmh NAME STATE CONSUMER ONLINE ERROR AGE ceph-2 inspecting true 30m km001 externally provisioned rtc-kn8xl-master-0 true 209d km002 externally provisioned rtc-kn8xl-master-1 true 209d km003 externally provisioned rtc-kn8xl-master-2 true 209d wn002 provisioned rtc-kn8xl-worker-0-zsmgg true 209d Apr 27 18:21:12 ceph-1 podman[231471]: 2023-04-27 18:21:12.418 1 DEBUG ironic_lib.utils [-] Command stderr is: "Apr 27 18:21:12 | the -c option requires a path to check Apr 27 18:21:12 ceph-1 podman[231471]: " _log /usr/lib/python3.6/site-packages/ironic_lib/utils.py:100 Apr 27 18:21:12 ceph-1 ironic-agent[231497]: 2023-04-27 18:21:12.419 1 DEBUG root [-] Checked device /dev/dm-14 and determined it was not a multipath device. Unexpected error while running command. Apr 27 18:21:12 ceph-1 ironic-agent[231497]: Command: multipath -c /dev/dm-14 Apr 27 18:21:12 ceph-1 ironic-agent[231497]: Exit code: 1 Apr 27 18:21:12 ceph-1 podman[231471]: 2023-04-27 18:21:12.419 1 DEBUG root [-] Checked device /dev/dm-14 and determined it was not a multipath device. Unexpected error while running command. Apr 27 18:21:12 ceph-1 podman[231471]: Command: multipath -c /dev/dm-14 Apr 27 18:21:12 ceph-1 podman[231471]: Exit code: 1 Apr 27 18:21:12 ceph-1 podman[231471]: Stdout: '' Apr 27 18:21:12 ceph-1 podman[231471]: Stderr: 'Apr 27 18:21:12 | the -c option requires a path to check\n' _get_multipath_parent_device /usr/lib/python3.6/site-packages/ironic_python_agent/hardware.py:270 Apr 27 18:21:12 ceph-1 ironic-agent[231497]: Stdout: '' Apr 27 18:21:12 ceph-1 ironic-agent[231497]: Stderr: 'Apr 27 18:21:12 | the -c option requires a path to check\n' _get_multipath_parent_device /usr/lib/python3.6/site-packages/ironic_python_agent/hardware.py:270 Apr 27 18:21:12 ceph-1 ironic-agent[231497]: 2023-04-27 18:21:12.420 1 DEBUG root [-] TYPE detected to contain 'mpath', signifing a device mapper multipath device. Found: KNAME="dm-14" MODEL="" SIZE="16000900661248" ROTA="1" TYPE="mpath" UUID="" PARTUUID="" list_all_block_devices /usr/lib/python3.6/site-packages/ironic_python_agent/hardware.py:614 Apr 27 18:21:12 ceph-1 podman[231471]: 2023-04-27 18:21:12.420 1 DEBUG root [-] TYPE detected to contain 'mpath', signifing a device mapper multipath device. Found: KNAME="dm-14" MODEL="" SIZE="16000900661248" ROTA="1" TYPE="mpath" UUID="" PARTUUID="" list_all_block_devices /usr/lib/python3.6/site-packages/ironic_python_agent/hardware.py:614 Apr 27 18:21:12 ceph-1 ironic-agent[231497]: 2023-04-27 18:21:12.421 1 WARNING root [-] Could not find the SCSI address (HCTL) for device /dev/dm-14. Skipping: FileNotFoundError: [Errno 2] No such file or directory: '/sys/block/dm-14/device/scsi_device' Apr 27 18:21:12 ceph-1 ironic-agent[231497]: 2023-04-27 18:21:12.422 1 WARNING root [-] Can't find field vendor fordevice dm-14 in device class block: FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/block/dm-14/device/vendor'