Merge pull request #9290 from travisn/skip-osd-checks

osd: Honor skipUpgradeChecks for OSDs
This commit is contained in:
Satoru Takeuchi authored and GitHub committed 2021-12-02 09:47:07 +09:00
commit bdbb97470d
1 file changed
+2 -1
+2 -1
View File
@@ -79,9 +79,10 @@ func (c *updateConfig) updateExistingOSDs(errs *provisionErrors) {
var osdIDs []int
var err error
if !shouldCheckOkToStopFunc(c.cluster.context, c.cluster.clusterInfo) {
if c.cluster.spec.SkipUpgradeChecks || !shouldCheckOkToStopFunc(c.cluster.context, c.cluster.clusterInfo) {
// If we should not check ok-to-stop, then only process one OSD at a time. There are likely
// less than 3 OSDs in the cluster or the cluster is on a single node. E.g., in CI :wink:.
logger.Infof("skipping osd checks for ok-to-stop")
osdIDs = []int{osdIDQuery}
} else {
osdIDs, err = cephclient.OSDOkToStop(c.cluster.context, c.cluster.clusterInfo, osdIDQuery, maxUpdatesInParallel)