Ceph "noout flag(s) set": clear OSDMAP_FLAGS and OSD_FLAGS
Ceph noout flag(s) set means a flag blocks automatic out for down OSDs. Find who set it, confirm no OSD is down, then unset it at the right scope.
OSDMAP_FLAGSnoout flag(s) setOSD_FLAGS<N> OSDs or CRUSH {nodes, device-classes} have {NOUP,NODOWN,NOIN,NOOUT} flags setosd.<id> has flags <flags><type> <name> has flags <flags>device class '<class>' has flags <flags>noout flag(s) set means a flag is stopping down OSDs from being marked out automatically. Once maintenance is over, confirm no OSD is down and clear the flag with the command that matches its scope. The two blocks above are health codes and text from the Tentacle source (OSDMap.cc), not captured output. There are two codes: OSDMAP_FLAGS for the whole cluster and OSD_FLAGS for OSDs, CRUSH nodes or device classes. The words noout flag(s) set appear only with the first one.
While the flag is on, an OSD that really fails is not marked out, so rebalancing does not start. That is why it should not outlive the work.
[1] Read the detail lines to see which code you have.
$ ceph health detail| Code | Scope | Clear with |
|---|---|---|
OSDMAP_FLAGS | Whole cluster | ceph osd unset noout |
OSD_FLAGS · osd.<id> | That OSD | ceph osd unset-group noout osd.<id> |
OSD_FLAGS · host <name> etc. | CRUSH node | ceph osd unset-group noout <name> |
OSD_FLAGS · device class | Device class | ceph osd unset-group noout class-<class> |
If other flags appear alongside it, as in noout,noscrub flag(s) set, judge each one separately. noup, nodown and noin are explained in [6].
[2] Find out who set it and when. Per the source, write commands go to the audit channel at info level, and the cluster log records when the health check started.
$ ceph log last 1000 info audit | grep noout$ ceph log last 1000 | grep OSDMAP_FLAGSThe audit line has this shape (source text, not captured output). entity is who sent the command, and cmd contains the flag name.
from='<name> <addrs>' entity='<entity>' cmd=<cmd>: dispatchThe monitors keep only the last 10000 log entries by default (mon_log_max), so older records may be gone. In that case check /var/log/ceph/ceph.audit.log. On a cephadm deployment that file may not exist (enabling ceph.log under cephadm).
[3] Check for cephadm maintenance mode. Per the source, ceph orch host maintenance enter runs osd set-group noout on a host that has OSDs.
# ceph orch host ls --host-status maintenanceIf the host is listed, do not clear the flag by hand. Finish the work and exit maintenance mode; per the source, exit removes the same noout.
# ceph orch host maintenance exit <hostname>[4] Check whether any OSD is still down. If one appears, confirm with whoever owns that work before going on.
$ ceph osd tree down$ ceph config get mon mon_osd_down_out_intervalThe second line shows how long a down OSD waits before being marked out. The default is 10_min (600 seconds).
[5] Clear the flag, using the scope from the table in [1].
$ ceph osd unset noout$ ceph health detailIf you already cleared it, check the OSD up and in counts and the recovery state first.
$ ceph osd stat$ ceph -sAn OSD that was marked out automatically is marked in again when it comes back up (mon_osd_auto_mark_auto_out_in, default true), so the first move is to bring that OSD back. To mark one in by hand, use ceph osd in <id>. If the OSD cannot be recovered, decide the next step from the PG states as described in the PG states docs.
[6] If maintenance is still running, narrow the flag instead. The docs call flagging only the affected OSDs or CRUSH bucket the safer approach since Luminous. Set the new flag first, then clear the global one, so there is no gap.
$ ceph osd set-group noout <host-or-osd.id>$ ceph osd unset nooutTo undo, run ceph osd set noout, then ceph osd unset-group noout <host-or-osd.id>. The docs also show ceph osd add-noout and rm-noout, but the Tentacle source marks both DEPRECATED, so use set-group and unset-group.
The other OSD_FLAGS flags mean the following, per the docs.
| Flag | Meaning |
|---|---|
noup | These OSDs are not allowed to start |
nodown | Failure reports for these OSDs are ignored |
noin | OSDs marked out automatically after a failure are not marked in when they start |
noout | Down OSDs are not marked out automatically after the configured interval |
Be careful with noin. The docs say daemons that started while the flag was set stay that way after it clears.
[7] Silence the warning briefly only for a known maintenance window. Add a duration so it expires.
$ ceph health mute OSDMAP_FLAGS 4h$ ceph health unmute OSDMAP_FLAGSThe second line removes the mute. The flag stays on either way, so down OSDs still will not be marked out.
For health codes in general see reading ceph health detail. For an example of working on one OSD under noout, see fixing BLUEFS_SPILLOVER.