Project

General

Profile

Actions

Bug #67684

closed
AK AK

cephadm: orch/cephadm suite tasks using nvme-loop on centos 9 failing on `nvme connect` command

Bug #67684: cephadm: orch/cephadm suite tasks using nvme-loop on centos 9 failing on `nvme connect` command

Added by Adam King over 2 years ago. Updated 3 months ago.

Status:
Backporting
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
squid, reef, quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v19.3.0-4513-g418b53c1a3
Released In:
v20.2.0~2159
Upkeep Timestamp:
2026-08-27T18:18:52+00:00

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.


Related issues 3 (1 open — 2 closed)

Copied to Orchestrator - Backport #67732: squid: cephadm: orch/cephadm suite tasks using nvme-loop on centos 9 failing on `nvme connect` commandResolvedAdam King

Actions
Copied to Orchestrator - Backport #67733: reef: cephadm: orch/cephadm suite tasks using nvme-loop on centos 9 failing on `nvme connect` commandResolvedAdam King

Actions
Copied to Orchestrator - Backport #80045: quincy: cephadm: orch/cephadm suite tasks using nvme-loop on centos 9 failing on `nvme connect` commandNewAdam King

Actions

AK Updated by Adam King over 2 years ago Actions #1

  • Project changed from Ceph to Orchestrator
  • Pull request ID set to 59409

AK Updated by Adam King over 2 years ago Actions #2

  • Status changed from In Progress to Pending Backport
  • Backport changed from squid, reef, quincy to squid, reef

UB Updated by Upkeep Bot over 2 years ago Actions #3

  • Copied to Backport #67732: squid: cephadm: orch/cephadm suite tasks using nvme-loop on centos 9 failing on `nvme connect` command added

UB Updated by Upkeep Bot over 2 years ago Actions #4

  • Copied to Backport #67733: reef: cephadm: orch/cephadm suite tasks using nvme-loop on centos 9 failing on `nvme connect` command added

UB Updated by Upkeep Bot over 2 years ago Actions #5

  • Tags (freeform) set to backport_processed

LF Updated by Laura Flores over 2 years ago Actions #6

  • 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

GA Updated by Guillaume Abrioux about 2 years ago Actions #7

  • Status changed from Pending Backport to Resolved

NM Updated by Nitzan Mordechai about 2 years ago Actions #8

/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']

LF Updated by Laura Flores about 2 years ago Actions #9

/a/yuriw-2024-08-15_16:24:58-rados-wip-yuri10-testing-2024-08-12-1214-quincy-distro-default-smithi/7856893

LF Updated by Laura Flores about 2 years ago Actions #10

  • 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.

NM Updated by Nitzan Mordechai about 2 years ago Actions #11

/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']

KS Updated by Kamoltat (Junior) Sirivadhna about 2 years ago Actions #12

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']

AM Updated by Aishwarya Mathuria about 2 years ago Actions #13

/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

AM Updated by Aishwarya Mathuria about 2 years ago Actions #14

/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

SA Updated by Shraddha Agrawal about 2 years ago Actions #15

/a/skanta-2024-10-05_10:36:55-rados-wip-bharath15-testing-2024-10-05-1105-quincy-distro-default-smithi/7934519

UB Updated by Upkeep Bot over 1 year ago Actions #16

  • 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

UB Updated by Upkeep Bot over 1 year ago Actions #17

  • 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

UB Updated by Upkeep Bot over 1 year ago Actions #18

  • 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

UB Updated by Upkeep Bot about 1 year ago Actions #19

  • 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

UB Updated by Upkeep Bot 3 months ago Actions #20

  • Copied to Backport #80045: quincy: cephadm: orch/cephadm suite tasks using nvme-loop on centos 9 failing on `nvme connect` command added

UB Updated by Upkeep Bot 3 months ago Actions #21

  • Status changed from Pending Backport to Backporting
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-11-01T01:02:38+00:00 to 2026-08-27T18:18:52+00:00
Actions

Also available in: PDF Atom