ceph: do not change selector labels during upgrade

The selector labels used for mons cannot change during upgrade
or else the upgrade will hang when the cluster is checking
for mon status immediately after the upgrade begins.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
This commit is contained in:
Travis Nielsen committed 2020-09-14 21:43:25 -06:00
1 parent d55815d698
commit da863e4156
1 file changed
+1 -1
+1 -1
View File
@@ -52,7 +52,7 @@ func (c *Cluster) getLabels(monConfig *monConfig, canary, includeNewLabels bool)
if canary {
labels["mon_canary"] = "true"
}
if c.spec.Mon.VolumeClaimTemplate != nil {
if c.spec.Mon.VolumeClaimTemplate != nil && includeNewLabels {
labels["pvc_name"] = monConfig.ResourceName
}