Skip to content

Commit

Permalink
osd: allow the AllowOsdCrushWeightUpdate 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 Sep 3, 2024
1 parent 8a05801 commit c1fa28a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/operator/ceph/cluster/osd/osd.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +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
// setting `AllowOsdCrushWeightUpdate`` true for 4.16 downstream, from 4.17 ocs operator will set this to true
c.spec.Storage.AllowOsdCrushWeightUpdate = true
if c.spec.Storage.AllowOsdCrushWeightUpdate {
_, err := cephclient.ResizeOsdCrushWeight(actualOSD, c.context, c.clusterInfo)
if err != nil {
Expand Down

0 comments on commit c1fa28a

Please sign in to comment.