Skip to content

Commit

Permalink
Fix for backupstoragelocation name and drpolicy name(mdr) (#9241)
Browse files Browse the repository at this point in the history
* fix backupstoragelocation name and drpolicy name(mdr)
* consants



Signed-off-by: Parikshith <pbyregow@redhat.com>
  • Loading branch information
parikshithb authored Jan 30, 2024
1 parent bf2b7dc commit f835e07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ocs_ci/deployment/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions ocs_ci/ocs/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f835e07

Please sign in to comment.