Bug #71816
closedFailed to write to /dev/nvme-fabrics: Invalid argument
0%
Description
/a/yuriw-2025-06-19_19:29:56-rados-wip-yuri11-testing-2025-06-19-0935-distro-default-smithi/8337258
Also observed in the nightly run: https://pulpito.ceph.com/teuthology-2025-06-22_20:00:20-rados-main-distro-default-smithi/8340469/
Error in scrape.log:
Failure: Command failed on smithi079 with status 234: 'sudo mkdir -p /sys/kernel/config/nvmet/subsystems/lv_1 && echo 1 | sudo tee /sys/kernel/config/nvmet/subsystems/lv_1/attr_allow_any_host && sudo mkdir -p /sys/kernel/config/nvmet/subsystems/lv_1/namespaces/1 && echo -n /dev/vg_nvme/lv_1 | sudo tee /sys/kernel/config/nvmet/subsystems/lv_1/namespaces/1/device_path && echo 1 | sudo tee /sys/kernel/config/nvmet/subsystems/lv_1/namespaces/1/enable && sudo ln -s /sys/kernel/config/nvmet/subsystems/lv_1 /sys/kernel/config/nvmet/ports/1/subsystems/lv_1 && sudo nvme connect -t loop -n lv_1 -q hostnqn'
Error in teuthology.log:
2025-06-19T21:15:17.617 DEBUG:teuthology.orchestra.run.smithi079:> sudo mkdir -p /sys/kernel/config/nvmet/subsystems/lv_1 && echo 1 | sudo tee /sys/kernel/config/nvmet/subsystems/lv_1/attr_allow_any_host && sudo mkdir -p /sys/kernel/config/nvmet/subsystems/lv_1/namespaces/1 && echo -n /dev/vg_nvme/lv_1 | sudo tee /sys/kernel/config/nvmet/subsystems/lv_1/namespaces/1/device_path && echo 1 | sudo tee /sys/kernel/config/nvmet/subsystems/lv_1/namespaces/1/enable && sudo ln -s /sys/kernel/config/nvmet/subsystems/lv_1 /sys/kernel/config/nvmet/ports/1/subsystems/lv_1 && sudo nvme connect -t loop -n lv_1 -q hostnqn
2025-06-19T21:15:17.650 INFO:teuthology.orchestra.run.smithi079.stdout:1
2025-06-19T21:15:17.679 INFO:teuthology.orchestra.run.smithi079.stdout:/dev/vg_nvme/lv_11
2025-06-19T21:15:17.698 INFO:teuthology.orchestra.run.smithi079.stderr:Failed to write to /dev/nvme-fabrics: Invalid argument
2025-06-19T21:15:17.699 DEBUG:teuthology.orchestra.run:got remote process result: 234
It looks pretty similar to this earlier resolved issue: https://tracker.ceph.com/issues/67684
LF Updated by Laura Flores over 1 year ago
/a/yuriw-2025-06-28_18:55:21-rados-wip-yuri-testing-2025-06-28-0812-distro-default-smithi/8355273
LF Updated by Laura Flores 10 months ago
- Related to Bug #73823: orch/cephadm: nvme-loop task fails on rocky 10 added
NM Updated by Nitzan Mordechai 10 months ago
/a/nmordech-2026-02-04_08:35:27-rados:cephadm-wip-rocky10-branch-of-the-day-2026-02-03-1770151121-distro-default-trial/
['34069', '34059', '34062', '34056']
LF Updated by Laura Flores 10 months ago · Edited
/a/yaarit-2026-02-05_17:05:15-rados:cephadm-wip-rocky10-branch-of-the-day-2026-02-03-1770151121-distro-default-trial
['37008', '37012', '36996', '37010', '37004', '36998']
JP Updated by Jaya Prakash 7 months ago
/a/yuriw-2026-05-15_20:57:42-rados-wip-yuriw-testing-20260515.172309-tentacle-wip-yuri12-testing-distro-default-trial
6 jobs: ['215565', '215760', '215897', '216126', '216105', '215702']
NM Updated by Nitzan Mordechai 6 months ago
/a/yuriw-2026-05-24_18:05:42-rados-tentacle-release-distro-default-trial/
['235498', '235496', '235481', '235490', '235485', '235488']
LF Updated by Laura Flores 6 months ago
/a/skanta-2026-06-03_22:47:45-rados-wip-bharath13-testing-2026-06-02-1957-tentacle-distro-default-trial
6 jobs: ['261881', '261886', '261788', '261849', '261825', '261818']
AM Updated by Aishwarya Mathuria 6 months ago
/a/skanta-2026-06-03_22:47:45-rados-wip-bharath13-testing-2026-06-02-1957-tentacle-distro-default-trial/
['261881', '261886', '261788', '261849', '261825', '261818']
CF Updated by Connor Fawcett 5 months ago
/a/skanta-2026-06-08_15:58:51-rados-wip-bharath21-testing-2026-06-05-2111-tentacle-distro-default-trial/278310
/a/skanta-2026-06-08_15:58:51-rados-wip-bharath21-testing-2026-06-05-2111-tentacle-distro-default-trial/278283
/a/skanta-2026-06-08_15:58:51-rados-wip-bharath21-testing-2026-06-05-2111-tentacle-distro-default-trial/278320
/a/skanta-2026-06-08_15:58:51-rados-wip-bharath21-testing-2026-06-05-2111-tentacle-distro-default-trial/278295
/a/skanta-2026-06-08_15:58:51-rados-wip-bharath21-testing-2026-06-05-2111-tentacle-distro-default-trial/278291
/a/skanta-2026-06-08_15:58:51-rados-wip-bharath21-testing-2026-06-05-2111-tentacle-distro-default-trial/278316
NM Updated by Nitzan Mordechai 3 months ago
/a/skanta-2026-08-24_07:43:11-rados-wip-bharath7-testing-20260824.042435-main-distro-default-trial/
['509176', '508947', '509070', '508957', '509083']
JB Updated by Jonathan Bailey 3 months ago
/a/skanta-2026-08-25_00:08:14-rados-wip-bharath11-testing-20260824.222329-main-distro-default-trial/510537
/a/skanta-2026-08-25_00:08:14-rados-wip-bharath11-testing-20260824.222329-main-distro-default-trial/510542
/a/skanta-2026-08-25_00:08:14-rados-wip-bharath11-testing-20260824.222329-main-distro-default-trial/510650
/a/skanta-2026-08-25_00:08:14-rados-wip-bharath11-testing-20260824.222329-main-distro-default-trial/510663
/a/skanta-2026-08-25_00:08:14-rados-wip-bharath11-testing-20260824.222329-main-distro-default-trial/510756
NM Updated by Nitzan Mordechai 3 months ago
/a/skanta-2026-09-06_23:02:16-rados-wip-bharath14-testing-20260906.123257-main-distro-default-trial/
['541445', '541446', '541454', '541458', '541467']
AM Updated by Aishwarya Mathuria 3 months ago
/a/skanta-2026-09-03_10:37:47-rados-wip-bharath10-testing-20260903.050751-main-distro-default-trial/
['534732', '534719', '534825', '534606', '534611']
SS Updated by Sridhar Seshasayee 3 months ago
- Has duplicate Bug #80187: sudo nvme connect -t loop -n lv_1 -q hostnqn failed: Failed to write to /dev/nvme-fabrics: Invalid argument added
SS Updated by Sridhar Seshasayee 3 months ago
/a/skanta-2026-09-07_08:16:29-rados-wip-bharath12-testing-20260907.061609-main-distro-default-trial
5 Jobs: ['541967', '541859', '541980', '541854', '542073']
NM Updated by Nitzan Mordechai 3 months ago
Watcher: @Adam King - that bug appears 57 times in the past week on different test branches.
I went ahead and checked the error:
Failure:
Command failed on trial063 with status 234: 'sudo nvme connect -t loop -n lv_1' Failed to write to /dev/nvme-fabrics: Invalid argument.
Looks like hostnqn is a placeholder (?) from qa/tasks/nvme_loop.py
The journalctl log shows:
Sep 07 09:14:03 trial063 kernel: nvme_fabrics: found same hostid d887744e-5975-4cca-96ee-22ae7036d4e7 but different hostnqn hostnqn
we also can see:
Sep 06 12:08:03 trial065 nvme[1639]: connect-all: unrecognized option '--context=autoconnect'
and from the job i checked all are Ubuntu 24.04
the current code looks like:
host = 'hostnqn' # nvme_loop.py:18 — a literal placeholder string, not a real NQN
...
if provide_hostname:
nvme_connect_args.extend(['-q', host])
try:
remote.run(args=nvme_connect_args)
except Exception:
if provide_hostname:
provide_hostname = False
remote.run(args=['sudo', 'nvme', 'connect', '-t', 'loop', '-n', short])
else:
raise
Both attempts failed
CF Updated by Connor Fawcett 3 months ago
/a/skanta-2026-09-04_22:54:57-rados-wip-bharath15-testing-20260904.011655-umbrella-distro-default-trial/538912
/a/skanta-2026-09-04_22:54:57-rados-wip-bharath15-testing-20260904.011655-umbrella-distro-default-trial/538939
/a/skanta-2026-09-04_22:54:57-rados-wip-bharath15-testing-20260904.011655-umbrella-distro-default-trial/538925
/a/skanta-2026-09-04_22:54:57-rados-wip-bharath15-testing-20260904.011655-umbrella-distro-default-trial/538913
/a/skanta-2026-09-04_22:54:57-rados-wip-bharath15-testing-20260904.011655-umbrella-distro-default-trial/538936
/a/skanta-2026-09-04_22:54:57-rados-wip-bharath15-testing-20260904.011655-umbrella-distro-default-trial/538921
NM Updated by Nitzan Mordechai 3 months ago
/a/skanta-2026-09-12_14:24:38-rados-wip-bharath12-testing-20260911.231931-main-distro-default-trial/
['553749', '553754', '553862', '553875', '553968']
LF Updated by Laura Flores 3 months ago
/a/pdonnell-2026-09-10_12:59:36-rados-wip-pdonnell-testing-20260910.003149-umbrella-distro-default-trial/548391/
LF Updated by Laura Flores 3 months ago
- Backport changed from tentacle to umbrella,tentacle
NM Updated by Nitzan Mordechai 3 months ago
/a/skanta-2026-08-25_11:49:18-rados-wip-bharath3-testing-20260824.233415-main-distro-default-trial/
['513094', '513095', '513104', '513108', '513117']
MW Updated by Matty Williams 3 months ago
/a/skanta-2026-09-16_04:01:33-rados-wip-bharath19-testing-20260915.234926-main-distro-default-trial/
[‘558364’, ‘558369’, ‘558477’, ‘558490’, ‘558583’]
JB Updated by Jonathan Bailey 3 months ago
/a/skanta-2026-09-06_15:27:24-rados-wip-bharath4-testing-20260906.123456-main-distro-default-trial/541138
/a/skanta-2026-09-06_15:27:24-rados-wip-bharath4-testing-20260906.123456-main-distro-default-trial/541143
/a/skanta-2026-09-06_15:27:24-rados-wip-bharath4-testing-20260906.123456-main-distro-default-trial/541251
/a/skanta-2026-09-06_15:27:24-rados-wip-bharath4-testing-20260906.123456-main-distro-default-trial/541264
/a/skanta-2026-09-06_15:27:24-rados-wip-bharath4-testing-20260906.123456-main-distro-default-trial/541357
AM Updated by Aishwarya Mathuria 2 months ago
- Tags set to main-failures
From watcher, seen in nightly runs adding the main-failures tag
/a/jenkins-build-2026-09-17_06:05:09-rados-main-distro-default-trial/562625
['563201', '562933', '562553', '563066', '563301']
SS Updated by Sridhar Seshasayee 2 months ago
/a/skanta-2026-09-09_16:03:40-rados-wip-bharath14-testing-20260909.090422-main-distro-default-trial/
5 jobs: ['546095', '546216', '546090', '546203', '546309']
NM Updated by Nitzan Mordechai 2 months ago
/a/skanta-2026-09-19_16:29:13-rados-wip-bharath17-testing-20260919.063401-main-distro-default-trial/
['569741', '569742', '569749', '569752', '569757']
JP Updated by Jaya Prakash 2 months ago
/a/skanta-2026-09-18_10:03:55-rados-wip-bharath23-testing-20260918.000104-umbrella-distro-default-trial
7 jobs: ['567052', '567075', '567077', '567053', '567074', '567062', '567066']
CF Updated by Connor Fawcett 2 months ago
/a/skanta-2026-09-11_21:46:15-rados-wip-bharath10-testing-20260910.230227-main-distro-default-trial/552735
/a/skanta-2026-09-11_21:46:15-rados-wip-bharath10-testing-20260910.230227-main-distro-default-trial/552856
/a/skanta-2026-09-11_21:46:15-rados-wip-bharath10-testing-20260910.230227-main-distro-default-trial/552843
/a/skanta-2026-09-11_21:46:15-rados-wip-bharath10-testing-20260910.230227-main-distro-default-trial/552949
/a/skanta-2026-09-11_21:46:15-rados-wip-bharath10-testing-20260910.230227-main-distro-default-trial/552730
RK Updated by Redouane Kachach Elhicou 2 months ago
- Assignee set to Redouane Kachach Elhicou
- Pull request ID set to 71971
RK Updated by Redouane Kachach Elhicou 2 months ago
- Status changed from New to Pending Backport
UB Updated by Upkeep Bot 2 months ago
- Copied to Backport #80841: umbrella: Failed to write to /dev/nvme-fabrics: Invalid argument added
UB Updated by Upkeep Bot 2 months ago
- Copied to Backport #80842: tentacle: Failed to write to /dev/nvme-fabrics: Invalid argument added
UB Updated by Upkeep Bot 2 months ago
- Status changed from Pending Backport to Backporting
- Merge Commit set to 72a2ef744c32d4ca5d343d1dc93d35b33624077a
- Fixed In set to v21.3.0-3602-g72a2ef744c
- Upkeep Timestamp set to 2026-09-24T12:26:41+00:00
NM Updated by Nitzan Mordechai 2 months ago
/a/skanta-2026-09-18_02:38:43-rados-wip-bharath24-testing-20260918.001059-main-distro-default-trial
['566045', '566138', '566032', '565919', '565924']
CF Updated by Connor Fawcett 2 months ago
/a/skanta-2026-09-20_02:51:43-rados-wip-bharath22-testing-20260920.002814-main-distro-default-trial/570117
/a/skanta-2026-09-20_02:51:43-rados-wip-bharath22-testing-20260920.002814-main-distro-default-trial/570122
/a/skanta-2026-09-20_02:51:43-rados-wip-bharath22-testing-20260920.002814-main-distro-default-trial/570230
/a/skanta-2026-09-20_02:51:43-rados-wip-bharath22-testing-20260920.002814-main-distro-default-trial/570243
/a/skanta-2026-09-20_02:51:43-rados-wip-bharath22-testing-20260920.002814-main-distro-default-trial/570336
LS Updated by Lee Sanders 2 months ago
/a/skanta-2026-09-24_04:14:51-rados-wip-bharath20-testing-20260924.011348-main-distro-default-trial/
['577644','577765', '577752', '577858']
JB Updated by Jonathan Bailey about 2 months ago
/a/skanta-2026-09-24_03:23:39-rados-wip-bharath10-testing-20260924.010810-main-distro-default-trial/577321
/a/skanta-2026-09-24_03:23:39-rados-wip-bharath10-testing-20260924.010810-main-distro-default-trial/577326
/a/skanta-2026-09-24_03:23:39-rados-wip-bharath10-testing-20260924.010810-main-distro-default-trial/577434
/a/skanta-2026-09-24_03:23:39-rados-wip-bharath10-testing-20260924.010810-main-distro-default-trial/577448
/a/skanta-2026-09-24_03:23:39-rados-wip-bharath10-testing-20260924.010810-main-distro-default-trial/577542
TS Updated by Tom Sollers about 2 months ago
/a/skanta-2026-09-15_12:51:39-rados-wip-bharath18-testing-20260914.015853-umbrella-distro-default-trial/557883
/a/skanta-2026-09-15_12:51:39-rados-wip-bharath18-testing-20260914.015853-umbrella-distro-default-trial/557884
/a/skanta-2026-09-15_12:51:39-rados-wip-bharath18-testing-20260914.015853-umbrella-distro-default-trial/557893
/a/skanta-2026-09-15_12:51:39-rados-wip-bharath18-testing-20260914.015853-umbrella-distro-default-trial/557897
/a/skanta-2026-09-15_12:51:39-rados-wip-bharath18-testing-20260914.015853-umbrella-distro-default-trial/557905
/a/skanta-2026-09-15_12:51:39-rados-wip-bharath18-testing-20260914.015853-umbrella-distro-default-trial/557907
UB Updated by Upkeep Bot about 2 months ago
- Status changed from Backporting to Resolved
- Upkeep Timestamp changed from 2026-09-24T12:26:41+00:00 to 2026-10-10T01:24:21+00:00
NM Updated by Nitzan Mordechai about 2 months ago
/a/skanta-2026-10-02_06:39:18-rados-wip-bharath3-testing-20261001.121332-umbrella-distro-default-trial/600790
['600784', '600785', '600795', '600799', '600808', '600812']