Skip to content

Commit

Permalink
osd: enable quincy osd release version
Browse files Browse the repository at this point in the history
After all OSDs are updated to each major release of Ceph, the
require-osd-release version is set to that release so all the latest
functionality for osds can be enabled by Ceph. In Quincy there is
a warning if all osds are on Quincy and this flag is not set, so
this will resolve the health warning.

Signed-off-by: Travis Nielsen <[email protected]>
  • Loading branch information
travisn committed Apr 14, 2022
1 parent 35427f9 commit 03b0546
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pkg/operator/ceph/cluster/osd/osd.go
Original file line number Diff line number Diff line change
Expand Up @@ -735,13 +735,13 @@ func (c *Cluster) applyUpgradeOSDFunctionality() {
logger.Warningf("failed to extract ceph version. %v", err)
return
}
// if the version of these OSDs is Octopus then we run the command
if osdVersion.IsOctopus() {
err = cephclient.EnableReleaseOSDFunctionality(c.context, c.clusterInfo, "octopus")
if err != nil {
logger.Warningf("failed to enable new osd functionality. %v", err)
return
}
// 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.
err = cephclient.EnableReleaseOSDFunctionality(c.context, c.clusterInfo, osdVersion.ReleaseName())
if err != nil {
logger.Warningf("failed to enable new osd functionality. %v", err)
return
}
}
}
Expand Down

0 comments on commit 03b0546

Please sign in to comment.