Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-4.17] [ROSA HCP] test_nodereplacement_proactive - fixed #11066

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions ocs_ci/ocs/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1031,9 +1031,15 @@ def delete_and_create_osd_node_managed_cp(osd_node_name):
target_replicas=node_num_before_delete, timeout=machine_start_timeout
)

node_names_after_delete = get_node_names()
new_node_names = list(set(node_names_after_delete) - set(node_names_before_delete))
new_node_name = new_node_names[0]
new_node_names = None
new_node_name = None
for sample in TimeoutSampler(
timeout=node_start_timeout, sleep=30, func=get_node_names
):
if new_node_names := list(set(sample) - set(node_names_before_delete)):
new_node_name = new_node_names[0]
break

wait_for_nodes_status(
node_names=new_node_names,
status=constants.NODE_READY,
Expand Down
Loading