Skip to content

Commit

Permalink
Address review comments: To add doctext
Browse files Browse the repository at this point in the history
Signed-off-by: Akarsha-rai <[email protected]>
  • Loading branch information
Akarsha-rai committed Aug 13, 2024
1 parent 0cd8861 commit 7796e9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ocs_ci/helpers/dr_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,8 @@ def get_nodes_from_active_zone(namespace):

def create_klusterlet_config():
"""
Create klusterlet config only on new hub or present active hub
Create klusterletconfig after hub recovery to avoid eviction
of resources by adding "AppliedManifestWork" eviction grace period
"""
old_ctx = config.cur_index
Expand Down Expand Up @@ -1208,6 +1209,9 @@ def remove_parameter_klusterlet_config():

def add_label_to_appsub(workloads, label="test", value="test1"):
"""
Function to add new label with any value to the AppSub on the hub.
This is needed as WA for sub app pods to show up after failover in ACM 2.11 post hub recovery (bz: 2295782)
Args:
workloads (list): List of workloads created
label (str): Name of label to be added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def test_application_failover_and_relocate(
ceph_node_ips,
) = get_nodes_from_active_zone(self.namespace)

# Shutdown one zones
# Shutdown one zone
logger.info("Shutting down all the nodes from active hub zone")
nodes_multicluster[self.managed_cluster_index].stop_nodes(
self.managed_cluster_node_objs
Expand Down

0 comments on commit 7796e9d

Please sign in to comment.