Skip to content

Commit

Permalink
Revert "Bug 2234735:[release-4.14] Revert "support osd migration in R…
Browse files Browse the repository at this point in the history
…DR customers""

Signed-off-by: Mudit Agarwal <[email protected]>
  • Loading branch information
agarwal-mudit authored and Mudit Agarwal committed Sep 15, 2023
1 parent 9b75627 commit e810e05
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions controllers/storagecluster/cephcluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,12 @@ func (obj *ocsCephCluster) ensureCreated(r *StorageClusterReconciler, sc *ocsv1.
// Prevent removal of any RDR optimizations if they are already applied to the existing cluster spec.
cephCluster.Spec.Storage.Store = determineOSDStore(cephCluster.Spec.Storage.Store, found.Spec.Storage.Store)

// Use bluestore-rdr if mirrioring is enabled
if sc.Spec.Mirroring.Enabled && !sc.Spec.ExternalStorage.Enable {
cephCluster.Spec.Storage.Store.Type = string(rookCephv1.StoreTypeBlueStoreRDR)
cephCluster.Spec.Storage.Store.UpdateStore = "yes-really-update-store"
}

// Add it to the list of RelatedObjects if found
objectRef, err := reference.GetReference(r.Scheme, found)
if err != nil {
Expand Down

0 comments on commit e810e05

Please sign in to comment.