Skip to content

Commit

Permalink
osd: allow the allowDeviceClassUpdate flag always true
Browse files Browse the repository at this point in the history
Signed-off-by: parth-gr <[email protected]>
  • Loading branch information
parth-gr committed Aug 22, 2024
1 parent f8c3a69 commit 255e01a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/operator/ceph/cluster/osd/osd.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ func (c *Cluster) postReconcileUpdateOSDProperties(desiredOSDs map[int]*OSDInfo)
}
logger.Debugf("post processing osd properties with %d actual osds from ceph osd df and %d existing osds found during reconcile", len(osdUsage.OSDNodes), len(desiredOSDs))
for _, actualOSD := range osdUsage.OSDNodes {
// setting this true for 4.16 downstream, from 4.17 ocs operator will set this to true
c.spec.Storage.AllowDeviceClassUpdate = true
if c.spec.Storage.AllowOsdCrushWeightUpdate {
_, err := cephclient.ResizeOsdCrushWeight(actualOSD, c.context, c.clusterInfo)
if err != nil {
Expand Down

0 comments on commit 255e01a

Please sign in to comment.