Bug #67684
opencephadm: orch/cephadm suite tasks using nvme-loop on centos 9 failing on `nvme connect` command
0%
Description
The nvme_loop task will at some point, after some initial setup, run something like `sudo nvme connect -t loop -n lv_1 -q hostnqn`. Currently, this command fails on tests using centos 9 on the host OS with
[root@smithi190 ~]# sudo nvme connect -t loop -n lv_1 -q hostnqn Failed to write to /dev/nvme-fabrics: Invalid argument
dmesg reports something like
[ 1985.306386] nvme_fabrics: found same hostid edb4e426-766f-44c6-b127-da2a5b7446ef but different hostnqn hostnqn
and it can also be seen that the nvme-cli package on the host is unable to generate a hostnqn
[root@smithi190 ~]# echo $(nvme gen-hostnqn) > /etc/nvme/hostnqn "gen-hostnqn" not supported. Install lib uuid and rebuild.
Uninstalling and reinstalling the nvme-cli package seems to fix the issue. It's worth noting the nvme-cli package relies on the libnvme package in order to generate the hostnqn, and that it does this generation during its postinstall scriplet
[root@smithi190 ~]# rpm -qlp nvme-cli-2.9.1-5.el9.x86_64.rpm --scripts
postinstall scriptlet (using /bin/sh):
if [ $1 -eq 1 ] || [ $1 -eq 2 ]; then
if [ ! -s /etc/nvme/hostnqn ]; then
echo $(nvme gen-hostnqn) > /etc/nvme/hostnqn
fi
if [ ! -s /etc/nvme/hostid ]; then
echo $(nvme show-hostnqn | sed 's/^.*uuid://') > /etc/nvme/hostid
fi
# apply udev and systemd changes that we did
if [ $1 -eq 1 ]; then
systemctl enable nvmefc-boot-connections
fi
systemctl daemon-reload
udevadm control --reload-rules && udevadm trigger
exit 0
fi
The current theory is possiblly some sort of linking issue between the nvme-cli and libnvme package that fixes itself when the package is uninstalled and then installed again (which also triggers a reinstall of libnvme). Reinstalling libnvme on its own had no effect.
Updated by Adam King over 1 year ago
- Project changed from Ceph to Orchestrator
- Pull request ID set to 59409
Updated by Adam King over 1 year ago
- Status changed from In Progress to Pending Backport
- Backport changed from squid, reef, quincy to squid, reef
Updated by Upkeep Bot over 1 year ago
- Copied to Backport #67732: squid: cephadm: orch/cephadm suite tasks using nvme-loop on centos 9 failing on `nvme connect` command added
Updated by Upkeep Bot over 1 year ago
- Copied to Backport #67733: reef: cephadm: orch/cephadm suite tasks using nvme-loop on centos 9 failing on `nvme connect` command added
Updated by Laura Flores over 1 year ago
- Backport changed from squid, reef to squid, reef, quincy
/a/yuriw-2024-08-26_21:22:35-rados-wip-yuri2-testing-2024-08-26-1032-quincy-distro-default-smithi/7874323
Updated by Guillaume Abrioux over 1 year ago
- Status changed from Pending Backport to Resolved
Updated by Nitzan Mordechai over 1 year ago
/a/skanta-2024-09-15_00:54:39-rados-wip-bharath9-testing-2024-09-13-1444-quincy-distro-default-smithi/
16 jobs: ['7905140', '7905292', '7905207', '7905084', '7905175', '7905336', '7905071', '7905261', '7905107', '7905326', '7905169', '7905243', '7905042', '7905048', '7905194', '7905313']
Updated by Laura Flores over 1 year ago
/a/yuriw-2024-08-15_16:24:58-rados-wip-yuri10-testing-2024-08-12-1214-quincy-distro-default-smithi/7856893
Updated by Laura Flores over 1 year ago
- Status changed from Resolved to Pending Backport
/a/yuriw-2024-10-01_18:26:35-rados-wip-yuri2-testing-2024-10-01-0737-quincy-distro-default-smithi/7927249
We still need the quincy backport for this.
Updated by Nitzan Mordechai over 1 year ago
/a/yuriw-2024-10-02_14:12:53-rados-wip-yuri-testing-2024-09-30-1121-quincy-distro-default-smithi
['7929528', '7929537', '7929524', '7929518', '7929533', '7929513', '7929504', '7929526', '7929534', '7929520', '7929502', '7929506', '7929501', '7929508', '7929517', '7929535']
Updated by Kamoltat (Junior) Sirivadhna over 1 year ago
yuriw-2024-10-10_14:29:43-rados-wip-yuri11-testing-2024-10-08-0753-quincy-distro-default-smithi/
['7943406', '7943401', '7943426', '7943405', '7943392', '7943422', '7943413', '7943423', '7943391', '7943415', '7943394', '7943412', '7943398', '7943408', '7943420', '7943396']
Updated by Aishwarya Mathuria over 1 year ago
/a/yuriw-2024-10-10_14:21:40-rados-wip-yuri8-testing-2024-10-07-1646-quincy-distro-default-smithi/7943287
Also, '7943294', '7943290', '7943273', '7943298', '7943276', '7943303', '7943278', '7943274', '7943305', '7943288', '7943283', '7943309', '7943296', '7943306', '7943280' in the same run
Updated by Aishwarya Mathuria over 1 year ago
/a/yuriw-2024-10-10_14:24:25-rados-wip-yuri7-testing-2024-10-07-0813-quincy-distro-default-smithi/7943334
Also - '7943347', '7943328', '7943332', '7943321', '7943331', '7943339', '7943346', '7943345', '7943349', '7943316', '7943319', '7943341', '7943323', '7943338', '7943317' in the same run
Updated by Shraddha Agrawal over 1 year ago
/a/skanta-2024-10-05_10:36:55-rados-wip-bharath15-testing-2024-10-05-1105-quincy-distro-default-smithi/7934519
Updated by Upkeep Bot 9 months ago
- Merge Commit set to 418b53c1a37433327e162f2c7dba2802a0bc23c1
- Fixed In set to v19.3.0-4513-g418b53c1a37
- Upkeep Timestamp set to 2025-07-08T18:45:31+00:00
Updated by Upkeep Bot 8 months ago
- Fixed In changed from v19.3.0-4513-g418b53c1a37 to v19.3.0-4513-g418b53c1a374
- Upkeep Timestamp changed from 2025-07-08T18:45:31+00:00 to 2025-07-14T15:45:50+00:00
Updated by Upkeep Bot 8 months ago
- Fixed In changed from v19.3.0-4513-g418b53c1a374 to v19.3.0-4513-g418b53c1a3
- Upkeep Timestamp changed from 2025-07-14T15:45:50+00:00 to 2025-07-14T21:10:05+00:00
Updated by Upkeep Bot 5 months ago
- Released In set to v20.2.0~2159
- Upkeep Timestamp changed from 2025-07-14T21:10:05+00:00 to 2025-11-01T01:02:38+00:00