Bug #76747
closedcluster [WRN] daemon osd.1 on trial145 is in unknown state" in cluster log
0%
Description
Summary:
This warning is causing teuthology QA upgrade tests to fail, the warning can be an indication that an OSD has unexpectedly crashed and restarted, however in this instance it is being logged because the OSD thrasher is deliberately stopping and restarting OSDs as an error inject.
This is a QA test problem - we don't really want to suppress this warning because we want to know if an OSD has unexpectedly crashed during upgrade testing, but equally we don't want lots of false positives caused by this error being logged because of a deliberate error inject. Ideally we either want to suppress cephadm from generating this warning when an error is being deliberately injected or we should filter out these warning for the times of the error inject but still fail the test if there are warnings at other times.
Details:
The following jobs 223184 223134 223100 223087 223068 223037 223018 223013 223184 223134 223100 223087 223068 223037 223018 223013 all failed with this cluster warning.
In all cases the warning was a false positive, none of these jobs had any unexpected OSD crashes or asserts.
== JOB 223184 ==
Here is when the error got logged:
grep "daemon.*unknown state" teuthology.log 2026-05-20T14:10:00.819 INFO:[email protected]:May 20 14:10:00 trial145 ceph-mon[149550]: daemon osd.1 on trial145 is in unknown state
From osd.1.log there are no crashes, we can see that it was shutdown and restarted from 14:08:58 to 14:09:37, the cephadm health check is logged 23 seconds after osd 1 returned:
grep -i -a -e "Fast Shutdown duration total" -e "0 ceph version" -e "ceph_assert" -e "Caught signal" ${osd}.log
2026-05-20T14:08:58.666+0000 7f80e4aab6c0 0 osd.1 6435 Fast Shutdown duration total :0.312271 seconds
2026-05-20T14:09:37.376+0000 7f292b95a780 0 ceph version 21.0.0-1584-g80166aeb (80166aebf052a0c6178827f8230c098011538193) umbrella (dev - RelWithDebInfo), process ceph-osd, pid 7
Looking at teuthology.log we can see that it was the OSD thrasher that caused this restart as one of its error injects:
grep -e "thrasher:Killing osd" -e "thrasher:Reviving osd" -e "tasks.cephadm.osd.[0-9]*:Stopping osd" -e "tasks.cephadm.osd.[0-9]*:Restarting osd" teuthology.log 2026-05-20T14:08:58.199 INFO:tasks.thrashosds.thrasher:Killing osd 1, live_osds are [1, 4, 6, 5, 3, 0, 7, 2] 2026-05-20T14:08:58.199 INFO:tasks.cephadm.osd.1:Stopping osd.1... 2026-05-20T14:09:36.287 INFO:tasks.thrashosds.thrasher:Reviving osd 1 2026-05-20T14:09:36.287 INFO:tasks.cephadm.osd.1:Restarting osd.1 (starting--it wasn't running)...
So this is cephadm logging a health check error because of thrashosd's deliberately injecting an error. There are numerous OSDs being stopped and restarted by the OSD thrasher, only in one of these cases did it generate a cluster warning - presumably there is some threshold for how long an OSD needs to be down before the warning is logged.
This job is unusual in how long after the OSD was started that cephadm logged the error. From the jobs in this run it is more common that cephadm logged the error while the OSD was not running, or within a second or two of it being restarted, although there are other cases where cephadm is logging the error over 20 seconds after the OSD has restarted
PD Updated by Patrick Donnelly 7 months ago
Probably we should just ignorelist that warning when using thrashosds. We've masked similar warnings before; historically we've relied on "coredumps found" and other errors to become aware of genuine crashes.
PD Updated by Patrick Donnelly 6 months ago
- Category set to Tests
- Status changed from New to Fix Under Review
- Assignee set to Patrick Donnelly
- Target version set to v21.0.0
- Source set to Q/A
- Backport set to tentacle,squid
- Pull request ID set to 69055
LF Updated by Laura Flores 6 months ago
Approved and ready for QA.
UB Updated by Upkeep Bot 6 months ago
- Status changed from Fix Under Review to Pending Backport
- Merge Commit set to 5ac8b6fecdfb9116d30b91aeaa5c166895d9a53b
- Fixed In set to v21.0.0-1824-g5ac8b6fecd
- Upkeep Timestamp set to 2026-05-28T17:59:41+00:00
UB Updated by Upkeep Bot 6 months ago
- Copied to Backport #76972: squid: cluster [WRN] daemon osd.1 on trial145 is in unknown state" in cluster log added
UB Updated by Upkeep Bot 6 months ago
- Copied to Backport #76973: tentacle: cluster [WRN] daemon osd.1 on trial145 is in unknown state" in cluster log added
UB Updated by Upkeep Bot 6 months ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot 5 months ago
- Status changed from Pending Backport to Resolved
- Upkeep Timestamp changed from 2026-05-28T17:59:41+00:00 to 2026-07-10T13:29:34+00:00
UB Updated by Upkeep Bot 3 months ago
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-07-10T13:29:34+00:00 to 2026-08-28T01:42:01+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~347
- Upkeep Timestamp changed from 2026-08-28T01:42:01+00:00 to 2026-10-24T02:03:32+00:00