From f835e0791cddf5f2bcf0f378a9195bf08de9c829 Mon Sep 17 00:00:00 2001 From: Parikshith Date: Tue, 30 Jan 2024 16:54:09 +0530 Subject: [PATCH] Fix for backupstoragelocation name and drpolicy name(mdr) (#9241) * fix backupstoragelocation name and drpolicy name(mdr) * consants Signed-off-by: Parikshith --- ocs_ci/deployment/deployment.py | 3 ++- ocs_ci/ocs/constants.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ocs_ci/deployment/deployment.py b/ocs_ci/deployment/deployment.py index 4fb5ee1bec1..11ceea457f1 100644 --- a/ocs_ci/deployment/deployment.py +++ b/ocs_ci/deployment/deployment.py @@ -2629,6 +2629,7 @@ def deploy_dr_policy(self): ] if config.MULTICLUSTER["multicluster_mode"] == "metro-dr": + dr_policy_hub_data["metadata"]["name"] = constants.MDR_DR_POLICY dr_policy_hub_data["spec"]["schedulingInterval"] = "0m" dr_policy_hub_yaml = tempfile.NamedTemporaryFile( @@ -2932,7 +2933,7 @@ def validate_dpa(self): # Check backupstoragelocation resource in "Available" phase backupstorage = ocp.OCP( kind="BackupStorageLocation", - resource_name=constants.MDR_DPA, + resource_name="default", namespace=constants.ACM_HUB_BACKUP_NAMESPACE, ) resource = backupstorage.get() diff --git a/ocs_ci/ocs/constants.py b/ocs_ci/ocs/constants.py index 2a5786e596e..70be245ac15 100644 --- a/ocs_ci/ocs/constants.py +++ b/ocs_ci/ocs/constants.py @@ -884,6 +884,7 @@ ODF_MULTICLUSTER_ORCHESTRATOR_CONTROLLER_MANAGER = "odfmo-controller-manager" RDR_MODE = "regional-dr" MDR_MODE = "metro-dr" +MDR_DR_POLICY = "odr-policy-mdr" MDR_RESTIC_POD_COUNT = 3 MDR_VELERO_POD_COUNT = 1 MDR_DPA = "dpa-1"