Skip to content

Commit

Permalink
Remove Unused RDR code
Browse files Browse the repository at this point in the history
Signed-off-by: prsurve <[email protected]>
  • Loading branch information
prsurve committed Jul 22, 2024
1 parent cd4ff37 commit b9dbf20
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions ocs_ci/deployment/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,6 @@ def get_rdr_conf(self):
"""
dr_conf = dict()
dr_conf["rbd_dr_scenario"] = config.ENV_DATA.get("rbd_dr_scenario", False)
dr_conf["dr_metadata_store"] = config.ENV_DATA.get("dr_metadata_store", "awss3")
return dr_conf

Expand Down Expand Up @@ -3332,10 +3331,6 @@ class RDRMultiClusterDROperatorsDeploy(MultiClusterDROperatorsDeploy):

def __init__(self, dr_conf):
super().__init__(dr_conf)
# DR use case could be RBD or CephFS or Both
self.rbd = dr_conf.get("rbd_dr_scenario", False)
# CephFS For future usecase
self.cephfs = dr_conf.get("cephfs_dr_scenario", False)

def deploy(self):
"""
Expand All @@ -3345,11 +3340,9 @@ def deploy(self):
acm_indexes = get_all_acm_indexes()
config.switch_acm_ctx()
super().deploy()
# RBD specific dr deployment
if self.rbd:
rbddops = RBDDRDeployOps()
self.configure_mirror_peer()
rbddops.deploy()
rbddops = RBDDRDeployOps()
self.configure_mirror_peer()
rbddops.deploy()
self.deploy_dr_policy()

# Enable cluster backup on both ACMs
Expand Down

0 comments on commit b9dbf20

Please sign in to comment.