diff --git a/ocs_ci/utility/ibmcloud.py b/ocs_ci/utility/ibmcloud.py index 62a2e5f7685..82bc1b54ec8 100644 --- a/ocs_ci/utility/ibmcloud.py +++ b/ocs_ci/utility/ibmcloud.py @@ -522,12 +522,14 @@ def delete_volume_id(self, volume): def label_nodes_region(): """ - Apply the region label to the worker nodes. + Apply the region label to the worker and master nodes. Necessary for IBM COS-backed backingstore support. """ - logger.info("Applying region label to worker nodes") + logger.info("Applying region label to worker and master nodes") region = config.ENV_DATA.get("region") worker_nodes = get_nodes(node_type=constants.WORKER_MACHINE) - for node in worker_nodes: + master_nodes = get_nodes(node_type=constants.MASTER_MACHINE) + all_nodes = worker_nodes + master_nodes + for node in all_nodes: node.add_label(rf"ibm-cloud\.kubernetes\.io/region={region}")