Skip to content

Commit

Permalink
Merge pull request #716 from parth-gr/reweight-down-update1
Browse files Browse the repository at this point in the history
Bug 2295778: osd: allow the AllowOsdCrushWeightUpdate flag always true
  • Loading branch information
travisn authored Sep 3, 2024
2 parents 8a05801 + c1fa28a commit 2cd7c35
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 2cd7c35

Please sign in to comment.