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:
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user