Skip to content

Retry masakari node online check to avoid race#1421

Open
xtrusia wants to merge 1 commit into
openstack-charmers:masterfrom
xtrusia:fix-masakari-nodes-online-race
Open

Retry masakari node online check to avoid race#1421
xtrusia wants to merge 1 commit into
openstack-charmers:masterfrom
xtrusia:fix-masakari-nodes-online-race

Conversation

@xtrusia

@xtrusia xtrusia commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

test_instance_failover removes a node and then checks that all pacemaker nodes are online in a single call.
Right after remove_node the cluster has not settled, so the check intermittently failed.
it either saw a node still offline (False) or raised a ValueError when crm status was not yet complete.
Wrap the check in a tenacity retry so it waits for the cluster to settle.

test_instance_failover removes a node and then checks that all pacemaker
nodes are online in a single call. Right after remove_node the cluster
has not settled, so the check intermittently failed: it either saw a
node still offline (False) or raised a ValueError when crm status was
not yet complete. Wrap the check in a tenacity retry so it waits for the
cluster to settle.

Signed-off-by: Seyeong Kim <seyeong.kim@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant