Ceph OSD_UPGRADE_FINISHED: require_osd_release < tentacle fix
OSD_UPGRADE_FINISHED means all OSDs run Tentacle but require_osd_release was not raised. Check versions, then run ceph osd require-osd-release tentacle.
all OSDs are running tentacle or later but require_osd_release < tentacleThe HEALTH_WARN check OSD_UPGRADE_FINISHED means every up OSD now runs Tentacle (20.2), but require_osd_release in the OSD map is still squid or lower. The last upgrade step, ceph osd require-osd-release tentacle, was skipped; running it clears the warning. The value can never be lowered once raised, so check [2] and [3] first. The block above is not captured output; it is the message the source assembles ([OSDMap.cc L7823-L7829, v20.2.4](https://github.com/ceph/ceph/blob/v20.2.4/src/osd/OSDMap.cc#L7823-L7829)).
[1] Understand what the check looks at. pending_require_osd_release() returns "tentacle" when the feature bits shared by the up OSDs include SERVER_TENTACLE and require_osd_release < tentacle ([OSDMap.cc L8108-L8113](https://github.com/ceph/ceph/blob/v20.2.4/src/osd/OSDMap.cc#L8108-L8113)). The shared features are an AND over up OSDs only ([OSDMap.cc L1888-L1905](https://github.com/ceph/ceph/blob/v20.2.4/src/osd/OSDMap.cc#L1888-L1905)), so the warning appears even if an old OSD is still sitting there down.
This check code is not listed in the Tentacle health-checks docs. It is described in the development docs on require-osd-release, which call the warning the normal cue to run ceph osd require-osd-release <release>.
[2] On a cephadm cluster, first check whether the upgrade finished. cephadm raises this value itself when it completes the OSD stage ([upgrade.py L1289-L1321 · L1635-L1637, v20.2.4](https://github.com/ceph/ceph/blob/v20.2.4/src/pybind/mgr/cephadm/upgrade.py#L1289-L1321)). If the warning is still there, the upgrade may be paused or may not have reached that stage yet.
$ ceph orch upgrade statusIf it is still running, do not raise the value by hand; let it finish. If it is paused, deal with the cause and continue with ceph orch upgrade resume. On non-cephadm clusters, follow the manual order in the Tentacle release notes: upgrade mons, mgrs, OSDs, MDS and RGW, then run this step.
[3] Check mon and OSD versions before raising it. The conditions that make the command refuse are in the source ([OSDMonitor.cc L12078-L12157](https://github.com/ceph/ceph/blob/v20.2.4/src/mon/OSDMonitor.cc#L12078-L12157)).
| Refusal message | Meaning |
|---|---|
not all mons are tentacle | Not every mon is upgraded; no override exists |
not all up OSDs have CEPH_FEATURE_SERVER_TENTACLE feature | An up OSD is older than Tentacle |
require_osd_release cannot be lowered once it has been set | You asked for an older release than the current value |
$ ceph versions$ ceph mon dump | grep min_mon_release$ ceph osd tree | grep -w down$ ceph osd dump | grep require_osd_releaseMake sure the osd section of ceph versions lists only 20.2.x. If any OSD is down, find out which version it runs. The release notes describe this step as disallowing pre-Tentacle OSDs, so upgrade any OSD you plan to bring back on the old version first.
[4] Raise the value.
$ ceph osd require-osd-release tentacleThis cannot be undone. Repeating the current value does nothing, and a lower value is refused with the message in the table. --yes-i-really-mean-it skips some checks, such as the up OSD feature check, but never the mon check. The development docs say an OSD without the feature is still refused at boot even if you bypass the check, so do not use it.
[5] Confirm the warning is gone and see what it unlocked.
$ ceph health detail$ ceph osd dump | grep require_osd_releaseWhile the value is below tentacle, setting allow_ec_optimizations on an EC pool is refused with All OSDs must be upgraded to tentacle or later before setting allow_ec_optimizations ([OSDMonitor.cc L8385-L8390](https://github.com/ceph/ceph/blob/v20.2.4/src/mon/OSDMonitor.cc#L8385-L8390)). For the remaining conditions, see fast EC stripe_unit must be divisible by 4096.
Leaving it can block the next upgrade. The development docs say an OSD refuses to boot when it runs more than two releases ahead of require_osd_release, and v20.2.4 already refuses to boot Tentacle OSDs while require_osd_release < reef ([OSDMonitor.cc L3511-L3517](https://github.com/ceph/ceph/blob/v20.2.4/src/mon/OSDMonitor.cc#L3511-L3517)).
For the full upgrade sequence, see Ceph Squid 19.2 EOL: check ceph versions and Squid to Tentacle upgrade pre-check.