Actions
Bug #75382
closed
VA
VA
teuthology: "daemon stop" fails gateway and "daemon restart" couldn't restart it
Bug #75382:
teuthology: "daemon stop" fails gateway and "daemon restart" couldn't restart it
Due date:
% Done:
0%
Source:
Backport:
tentacle
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v20.3.0-6323-g9b8a9d14da
Released In:
v21.2.0~966
Upkeep Timestamp:
2026-10-24T02:01:31+00:00
Description
Usually after "daemon stop" it goes in "inactive (dead)" state, but here it goes in "failed" state:
2026-03-05T22:53:36.798 INFO:tasks.nvmeof.[nvmeof.thrasher]:kill nvmeof.d 2026-03-05T22:53:36.798 DEBUG:teuthology.orchestra.run.trial185:> ceph orch daemon stop nvmeof.nvmeof.d 2026-03-05T22:53:37.008 INFO:tasks.nvmeof.[nvmeof.thrasher]:waiting for 60 secs before reviving 2026-03-05T22:54:37.008 INFO:tasks.nvmeof.[nvmeof.thrasher]:done waiting before reviving - iteration #2: thrashed- nvmeof.d (by ceph_daemon_stop); 2026-03-05T22:56:16.360 INFO:tasks.nvmeof.[nvmeof.thrasher]:reviving nvmeof.d 2026-03-05T22:56:16.361 DEBUG:teuthology.orchestra.run.trial185:> ceph orch daemon restart nvmeof.nvmeof.d --force 2026-03-05T22:56:16.566 INFO:tasks.nvmeof.[nvmeof.thrasher]:waiting for 60 secs before thrashing 2026-03-05T22:57:16.567 INFO:tasks.nvmeof.[nvmeof.thrasher]:done waiting before thrashing - everything should be up now 2026-03-05T22:58:47.814 INFO:tasks.nvmeof.[nvmeof.thrasher]:kill nvmeof.b 2026-03-05T22:58:47.815 DEBUG:teuthology.orchestra.run.trial156:> ceph orch daemon rm nvmeof.nvmeof.b 2026-03-05T22:58:58.514 INFO:tasks.nvmeof.[nvmeof.thrasher]:kill nvmeof.d 2026-03-05T22:58:58.514 DEBUG:teuthology.orchestra.run.trial185:> ceph orch daemon stop nvmeof.nvmeof.d 2026-03-05T22:58:58.777 INFO:tasks.nvmeof.[nvmeof.thrasher]:waiting for 60 secs before reviving 2026-03-05T22:59:58.777 INFO:tasks.nvmeof.[nvmeof.thrasher]:done waiting before reviving - iteration #3: thrashed- nvmeof.b (by daemon_remove); nvmeof.d (by ceph_daemon_stop); 2026-03-05T22:59:58.778 INFO:tasks.nvmeof.[nvmeof.thrasher]:display and verify stats: 2026-03-05T22:59:58.927 DEBUG:teuthology.orchestra.run.trial185:> sudo systemctl status [email protected] 2026-03-05T22:59:58.966 INFO:teuthology.orchestra.run.trial185.stdout:× ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460@nvmeof.nvmeof.d.service - Ceph nvmeof.nvmeof.d for ee248e3a-18e2-11f1-8cb2-d404e6e7d460 2026-03-05T22:59:58.966 INFO:teuthology.orchestra.run.trial185.stdout: Loaded: loaded (/etc/systemd/system/[email protected]; enabled; preset: disabled) 2026-03-05T22:59:58.966 INFO:teuthology.orchestra.run.trial185.stdout: Active: failed (Result: exit-code) since Thu 2026-03-05 22:59:09 UTC; 49s ago 2026-03-05T22:59:58.966 INFO:teuthology.orchestra.run.trial185.stdout: Duration: 2min 42.556s 2026-03-05T22:59:58.966 INFO:teuthology.orchestra.run.trial185.stdout: Invocation: a85a3095799049d1a104ff2d2ab3eb03 2026-03-05T22:59:58.966 INFO:teuthology.orchestra.run.trial185.stdout: Process: 291197 ExecStartPre=/bin/rm -f /run/ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460@nvmeof.nvmeof.d.service-pid /run/ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460@nvmeof.nvmeof.d.service-cid (code=exited, status=0/SUCCESS) 2026-03-05T22:59:58.966 INFO:teuthology.orchestra.run.trial185.stdout: Process: 291199 ExecStart=/bin/bash /var/lib/ceph/ee248e3a-18e2-11f1-8cb2-d404e6e7d460/nvmeof.nvmeof.d/unit.run (code=exited, status=0/SUCCESS) 2026-03-05T22:59:58.966 INFO:teuthology.orchestra.run.trial185.stdout: Process: 390168 ExecStop=/bin/bash -c bash /var/lib/ceph/ee248e3a-18e2-11f1-8cb2-d404e6e7d460/nvmeof.nvmeof.d/unit.stop (code=exited, status=0/SUCCESS) 2026-03-05T22:59:58.967 INFO:teuthology.orchestra.run.trial185.stdout: Process: 390333 ExecStopPost=/bin/bash /var/lib/ceph/ee248e3a-18e2-11f1-8cb2-d404e6e7d460/nvmeof.nvmeof.d/unit.poststop (code=exited, status=0/SUCCESS) 2026-03-05T22:59:58.967 INFO:teuthology.orchestra.run.trial185.stdout: Process: 390364 ExecStopPost=/bin/rm -f /run/ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460@nvmeof.nvmeof.d.service-pid /run/ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460@nvmeof.nvmeof.d.service-cid (code=exited, status=0/SUCCESS) 2026-03-05T22:59:58.967 INFO:teuthology.orchestra.run.trial185.stdout: Main PID: 291275 (code=exited, status=137) 2026-03-05T22:59:58.967 INFO:teuthology.orchestra.run.trial185.stdout: Mem peak: 887.1M 2026-03-05T22:59:58.967 INFO:teuthology.orchestra.run.trial185.stdout: CPU: 11min 35.511s 2026-03-05T22:59:58.967 INFO:teuthology.orchestra.run.trial185.stdout: 2026-03-05T23:01:30.172 INFO:tasks.nvmeof.[nvmeof.thrasher]:reviving nvmeof.b 2026-03-05T23:01:30.172 DEBUG:teuthology.orchestra.run.trial156:> ceph orch daemon start nvmeof.nvmeof.b 2026-03-05T23:01:30.424 INFO:tasks.nvmeof.[nvmeof.thrasher]:reviving nvmeof.d 2026-03-05T23:01:30.424 DEBUG:teuthology.orchestra.run.trial185:> ceph orch daemon restart nvmeof.nvmeof.d --force 2026-03-05T23:01:30.669 INFO:tasks.nvmeof.[nvmeof.thrasher]:waiting for 60 secs before thrashing 2026-03-05T23:02:30.670 INFO:tasks.nvmeof.[nvmeof.thrasher]:done waiting before thrashing - everything should be up now 2026-03-05T23:02:30.670 INFO:tasks.nvmeof.[nvmeof.thrasher]:display and verify stats: 2026-03-05T23:02:30.823 DEBUG:teuthology.orchestra.run.trial185:> sudo systemctl status [email protected] 2026-03-05T23:02:30.863 INFO:teuthology.orchestra.run.trial185.stdout:× ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460@nvmeof.nvmeof.d.service - Ceph nvmeof.nvmeof.d for ee248e3a-18e2-11f1-8cb2-d404e6e7d460 2026-03-05T23:02:30.863 INFO:teuthology.orchestra.run.trial185.stdout: Loaded: loaded (/etc/systemd/system/[email protected]; enabled; preset: disabled) 2026-03-05T23:02:30.863 INFO:teuthology.orchestra.run.trial185.stdout: Active: failed (Result: exit-code) since Thu 2026-03-05 22:59:09 UTC; 3min 21s ago 2026-03-05T23:02:30.864 INFO:teuthology.orchestra.run.trial185.stdout: Duration: 2min 42.556s 2026-03-05T23:02:30.864 INFO:teuthology.orchestra.run.trial185.stdout: Invocation: a85a3095799049d1a104ff2d2ab3eb03 2026-03-05T23:02:30.864 INFO:teuthology.orchestra.run.trial185.stdout: Process: 291197 ExecStartPre=/bin/rm -f /run/ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460@nvmeof.nvmeof.d.service-pid /run/ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460@nvmeof.nvmeof.d.service-cid (code=exited, status=0/SUCCESS) 2026-03-05T23:02:30.864 INFO:teuthology.orchestra.run.trial185.stdout: Process: 291199 ExecStart=/bin/bash /var/lib/ceph/ee248e3a-18e2-11f1-8cb2-d404e6e7d460/nvmeof.nvmeof.d/unit.run (code=exited, status=0/SUCCESS) 2026-03-05T23:02:30.864 INFO:teuthology.orchestra.run.trial185.stdout: Process: 390168 ExecStop=/bin/bash -c bash /var/lib/ceph/ee248e3a-18e2-11f1-8cb2-d404e6e7d460/nvmeof.nvmeof.d/unit.stop (code=exited, status=0/SUCCESS) 2026-03-05T23:02:30.864 INFO:teuthology.orchestra.run.trial185.stdout: Process: 390333 ExecStopPost=/bin/bash /var/lib/ceph/ee248e3a-18e2-11f1-8cb2-d404e6e7d460/nvmeof.nvmeof.d/unit.poststop (code=exited, status=0/SUCCESS) 2026-03-05T23:02:30.864 INFO:teuthology.orchestra.run.trial185.stdout: Process: 390364 ExecStopPost=/bin/rm -f /run/ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460@nvmeof.nvmeof.d.service-pid /run/ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460@nvmeof.nvmeof.d.service-cid (code=exited, status=0/SUCCESS) 2026-03-05T23:02:30.864 INFO:teuthology.orchestra.run.trial185.stdout: Main PID: 291275 (code=exited, status=137) 2026-03-05T23:02:30.864 INFO:teuthology.orchestra.run.trial185.stdout: Mem peak: 887.1M 2026-03-05T23:02:30.864 INFO:teuthology.orchestra.run.trial185.stdout: CPU: 11min 35.511s 2026-03-05T23:02:30.865 INFO:teuthology.orchestra.run.trial185.stdout:
Now the issue is that after it failed, "ceph orch daemon restart" did not revive the daemon.
I think it happens because in iteration 2, nvmeof.d was stopped and then restarted. And while the namespaces were being re-added, we had reached iteration 3 and it stopped nvmeof.d again (in middle of adding namespaces!), which is probably why it failed:
[05-Mar-2026 22:58:58] INFO grpc.py:2615 (2): Received request to add namespace 28 to nqn.2016-06.io.spdk:cnode8, ana group 3, no_auto_visible: False, disable_auto_resize: False, read_only: False, location: "", encryption_entries: [], encryption_algorithm: no_algorithm, context: None 2026-03-05T22:58:58.317 INFO:[email protected]:Mar 05 22:58:58 trial185 ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460-nvmeof-nvmeof-d[291275]: [05-Mar-2026 22:58:58] INFO grpc.py:1350 (2): Received request to create read write bdev bdev_03561f71-4b9e-4700-86ae-481669b5c409 from mypool/myimage658 (size 0 bytes) with block size 512, will not create image if doesn't exist, context=None 2026-03-05T22:58:58.317 INFO:[email protected]:Mar 05 22:58:58 trial185 ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460-nvmeof-nvmeof-d[291275]: [2026-03-05 22:58:58.318337] bdev_rbd.c:1757:bdev_rbd_create: *NOTICE*: Add bdev_03561f71-4b9e-4700-86ae-481669b5c409 rbd disk to lun , cluster-id ee248e3a-18e2-11f1-8cb2-d404e6e7d460 ... 2026-03-05T22:58:58.514 INFO:tasks.nvmeof.[nvmeof.thrasher]:kill nvmeof.d 2026-03-05T22:58:58.514 DEBUG:teuthology.orchestra.run.trial185:> ceph orch daemon stop nvmeof.nvmeof.d
Maybe the simplest solution to add more wait time in thrasher when 900 namespaces are configured.
VA Updated by Vallari Agrawal 9 months ago
- Description updated (diff)
VA Updated by Vallari Agrawal 9 months ago
- Subject changed from teuthology: "daemon stop" fails gateway to teuthology: "daemon stop" fails gateway and "daemon restart" couldn't restart it
This also causes "CEPHADM_FAILED_DAEMON" to be triggered
2026-03-05T23:02:45.313 INFO:teuthology.orchestra.run.trial185.stdout:NAME HOST PORTS STATUS REFRESHED AGE MEM USE MEM LIM VERSION IMAGE ID CONTAINER ID 2026-03-05T23:02:45.313 INFO:teuthology.orchestra.run.trial185.stdout:nvmeof.nvmeof.a trial049 *:5500,4420,8009,10008 running (11m) 92s ago 29m 1127M - 1.7.1 c72920b1f78f 30e8717b8a12 2026-03-05T23:02:45.313 INFO:teuthology.orchestra.run.trial185.stdout:nvmeof.nvmeof.b trial156 *:5500,4420,8009,10008 running (3m) 3m ago 3m 52.4M - 1.7.1 c72920b1f78f 0943a4285484 2026-03-05T23:02:45.313 INFO:teuthology.orchestra.run.trial185.stdout:nvmeof.nvmeof.c trial167 *:5500,4420,8009,10008 running (29m) 6m ago 29m 1142M - 1.7.1 c72920b1f78f b0192de07db2 2026-03-05T23:02:45.313 INFO:teuthology.orchestra.run.trial185.stdout:nvmeof.nvmeof.d trial185 *:5500,4420,8009,10008 error 3m ago 14m - - <unknown> <unknown> <unknown> 2026-03-05T23:02:45.324 DEBUG:teuthology.orchestra.run.trial185:> ceph health detail 2026-03-05T23:02:45.534 INFO:teuthology.orchestra.run.trial185.stdout:HEALTH_WARN 1 failed cephadm daemon(s) 2026-03-05T23:02:45.535 INFO:teuthology.orchestra.run.trial185.stdout:[WRN] CEPHADM_FAILED_DAEMON: 1 failed cephadm daemon(s) 2026-03-05T23:02:45.535 INFO:teuthology.orchestra.run.trial185.stdout: daemon nvmeof.nvmeof.d on trial185 is in error state
VA Updated by Vallari Agrawal 9 months ago
This could also be the reason "list-subsys" asserts fail twice (and passes on third try):
2026-03-05T23:02:44.630 DEBUG:teuthology.orchestra.run.trial027:> sudo nvme list-subsys /dev/nvme8n13 | grep 'live optimized' 2026-03-05T23:02:44.735 DEBUG:teuthology.orchestra.run:got remote process result: 1 2026-03-05T23:02:44.736 INFO:tasks.nvmeof.[nvmeof.thrasher]:retry do_checks() for 0 time 2026-03-05T23:02:44.873 DEBUG:teuthology.orchestra.run.trial185:> sudo systemctl status [email protected] 2026-03-05T23:02:44.910 INFO:teuthology.orchestra.run.trial185.stdout:× ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460@nvmeof.nvmeof.d.service - Ceph nvmeof.nvmeof.d for ee248e3a-18e2-11f1-8cb2-d404e6e7d460 2026-03-05T23:02:44.910 INFO:teuthology.orchestra.run.trial185.stdout: Loaded: loaded (/etc/systemd/system/[email protected]; enabled; preset: disabled) 2026-03-05T23:02:44.910 INFO:teuthology.orchestra.run.trial185.stdout: Active: failed (Result: exit-code) since Thu 2026-03-05 22:59:09 UTC; 3min 35s ago 2026-03-05T23:02:44.910 INFO:teuthology.orchestra.run.trial185.stdout: Duration: 2min 42.556s 2026-03-05T23:02:44.911 INFO:teuthology.orchestra.run.trial185.stdout: Invocation: a85a3095799049d1a104ff2d2ab3eb03 2026-03-05T23:02:44.911 INFO:teuthology.orchestra.run.trial185.stdout: Process: 291197 ExecStartPre=/bin/rm -f /run/ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460@nvmeof.nvmeof.d.service-pid /run/ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460@nvmeof.nvmeof.d.service-cid (code=exited, status=0/SUCCESS) 2026-03-05T23:02:44.911 INFO:teuthology.orchestra.run.trial185.stdout: Process: 291199 ExecStart=/bin/bash /var/lib/ceph/ee248e3a-18e2-11f1-8cb2-d404e6e7d460/nvmeof.nvmeof.d/unit.run (code=exited, status=0/SUCCESS) 2026-03-05T23:02:44.911 INFO:teuthology.orchestra.run.trial185.stdout: Process: 390168 ExecStop=/bin/bash -c bash /var/lib/ceph/ee248e3a-18e2-11f1-8cb2-d404e6e7d460/nvmeof.nvmeof.d/unit.stop (code=exited, status=0/SUCCESS) 2026-03-05T23:02:44.911 INFO:teuthology.orchestra.run.trial185.stdout: Process: 390333 ExecStopPost=/bin/bash /var/lib/ceph/ee248e3a-18e2-11f1-8cb2-d404e6e7d460/nvmeof.nvmeof.d/unit.poststop (code=exited, status=0/SUCCESS) 2026-03-05T23:02:44.911 INFO:teuthology.orchestra.run.trial185.stdout: Process: 390364 ExecStopPost=/bin/rm -f /run/ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460@nvmeof.nvmeof.d.service-pid /run/ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460@nvmeof.nvmeof.d.service-cid (code=exited, status=0/SUCCESS) 2026-03-05T23:02:44.911 INFO:teuthology.orchestra.run.trial185.stdout: Main PID: 291275 (code=exited, status=137) 2026-03-05T23:02:44.911 INFO:teuthology.orchestra.run.trial185.stdout: Mem peak: 887.1M 2026-03-05T23:02:44.911 INFO:teuthology.orchestra.run.trial185.stdout: CPU: 11min 35.511s 2026-03-05T23:02:44.911 INFO:teuthology.orchestra.run.trial185.stdout: 2026-03-05T23:02:46.282 DEBUG:teuthology.orchestra.run.trial027:> sudo nvme list-subsys /dev/nvme8n1 | grep 'live optimized' 2026-03-05T23:02:46.382 DEBUG:teuthology.orchestra.run:got remote process result: 1 2026-03-05T23:02:46.382 INFO:tasks.nvmeof.[nvmeof.thrasher]:retry do_checks() for 1 time 2026-03-05T23:02:46.513 DEBUG:teuthology.orchestra.run.trial185:> sudo systemctl status [email protected] 2026-03-05T23:02:46.551 INFO:teuthology.orchestra.run.trial185.stdout:× ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460@nvmeof.nvmeof.d.service - Ceph nvmeof.nvmeof.d for ee248e3a-18e2-11f1-8cb2-d404e6e7d460 2026-03-05T23:02:46.551 INFO:teuthology.orchestra.run.trial185.stdout: Loaded: loaded (/etc/systemd/system/[email protected]; enabled; preset: disabled) 2026-03-05T23:02:46.551 INFO:teuthology.orchestra.run.trial185.stdout: Active: failed (Result: exit-code) since Thu 2026-03-05 22:59:09 UTC; 3min 36s ago 2026-03-05T23:02:46.551 INFO:teuthology.orchestra.run.trial185.stdout: Duration: 2min 42.556s 2026-03-05T23:02:46.551 INFO:teuthology.orchestra.run.trial185.stdout: Invocation: a85a3095799049d1a104ff2d2ab3eb03 2026-03-05T23:02:46.551 INFO:teuthology.orchestra.run.trial185.stdout: Process: 291197 ExecStartPre=/bin/rm -f /run/ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460@nvmeof.nvmeof.d.service-pid /run/ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460@nvmeof.nvmeof.d.service-cid (code=exited, status=0/SUCCESS) 2026-03-05T23:02:46.551 INFO:teuthology.orchestra.run.trial185.stdout: Process: 291199 ExecStart=/bin/bash /var/lib/ceph/ee248e3a-18e2-11f1-8cb2-d404e6e7d460/nvmeof.nvmeof.d/unit.run (code=exited, status=0/SUCCESS) 2026-03-05T23:02:46.551 INFO:teuthology.orchestra.run.trial185.stdout: Process: 390168 ExecStop=/bin/bash -c bash /var/lib/ceph/ee248e3a-18e2-11f1-8cb2-d404e6e7d460/nvmeof.nvmeof.d/unit.stop (code=exited, status=0/SUCCESS) 2026-03-05T23:02:46.552 INFO:teuthology.orchestra.run.trial185.stdout: Process: 390333 ExecStopPost=/bin/bash /var/lib/ceph/ee248e3a-18e2-11f1-8cb2-d404e6e7d460/nvmeof.nvmeof.d/unit.poststop (code=exited, status=0/SUCCESS) 2026-03-05T23:02:46.552 INFO:teuthology.orchestra.run.trial185.stdout: Process: 390364 ExecStopPost=/bin/rm -f /run/ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460@nvmeof.nvmeof.d.service-pid /run/ceph-ee248e3a-18e2-11f1-8cb2-d404e6e7d460@nvmeof.nvmeof.d.service-cid (code=exited, status=0/SUCCESS) 2026-03-05T23:02:46.552 INFO:teuthology.orchestra.run.trial185.stdout: Main PID: 291275 (code=exited, status=137) 2026-03-05T23:02:46.552 INFO:teuthology.orchestra.run.trial185.stdout: Mem peak: 887.1M 2026-03-05T23:02:46.552 INFO:teuthology.orchestra.run.trial185.stdout: CPU: 11min 35.511s 2026-03-05T23:02:46.552 INFO:teuthology.orchestra.run.trial185.stdout: // all list-subsys assert pass
VA Updated by Vallari Agrawal 9 months ago
- Assignee set to Vallari Agrawal
VA Updated by Vallari Agrawal 8 months ago
- Status changed from New to Pending Backport
- Backport set to tentacle
- Pull request ID set to 67804
UB Updated by Upkeep Bot 8 months ago
- Copied to Backport #75807: tentacle: teuthology: "daemon stop" fails gateway and "daemon restart" couldn't restart it added
UB Updated by Upkeep Bot 8 months ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 8 months ago
- Merge Commit set to 9b8a9d14da91e8e67dbc64f92110bd0ee1f1e4b4
- Fixed In set to v20.3.0-6323-g9b8a9d14da
- Upkeep Timestamp set to 2026-03-31T12:45:51+00:00
VA Updated by Vallari Agrawal 6 months ago
- Status changed from Pending Backport to Resolved
UB Updated by Upkeep Bot 3 months ago
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-03-31T12:45:51+00:00 to 2026-08-28T01:41:21+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~966
- Upkeep Timestamp changed from 2026-08-28T01:41:21+00:00 to 2026-10-24T02:01:31+00:00
Actions