Merge pull request #17325 from rook/mergify/bp/release-1.19/pr-17320

osd: Add logging when detecting osd versions (backport #17320)
This commit is contained in:
Travis Nielsen authored and GitHub committed 2026-04-08 12:00:44 -06:00
commit d25f34310b
1 file changed
+2
+2
View File
@@ -1007,6 +1007,7 @@ func (c *Cluster) applyUpgradeOSDFunctionality() {
// On an initial OSD bootstrap, by the time we reach this code, the OSDs haven't registered yet
// Basically, this task is happening too quickly and OSD pods are not running yet.
// That's not an issue since it's an initial bootstrap and not an update.
log.NamespacedInfo(c.clusterInfo.Namespace, logger, "osd versions detected: %+v", versions.Osd)
if len(versions.Osd) == 1 {
for v := range versions.Osd {
osdVersion, err = cephver.ExtractCephVersion(v)
@@ -1017,6 +1018,7 @@ func (c *Cluster) applyUpgradeOSDFunctionality() {
// Ensure the required version of OSDs is set to the current consistent version,
// enabling the latest osd functionality and also preventing downgrades to a
// previous major ceph version.
log.NamespacedInfo(c.clusterInfo.Namespace, logger, "detected single osd version %q, setting require-osd-release %s", osdVersion, osdVersion.ReleaseName())
err = cephclient.EnableReleaseOSDFunctionality(c.context, c.clusterInfo, osdVersion.ReleaseName())
if err != nil {
log.NamespacedWarning(c.clusterInfo.Namespace, logger, "failed to enable new osd functionality. %v", err)