Retry on "Transport endpoint is not connected"

The crm node delete already handles some expected failure modes. Add
"Transport endpoint is not connected" so that it retries the node
delete.

Change-Id: I9727e7b5babcfed1444f6d4821498fbc16e69297
Closes-Bug: #1931588
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
This commit is contained in:
David Ames 2021-06-23 13:13:21 -07:00 committed by Aurelien Lourot
parent 221d4e71d4
commit 3b872ff4d2

View File

@ -234,6 +234,13 @@ def delete_node(node_name, failure_is_fatal=True):
if attempt > 0:
log('Retrying...', WARNING)
continue
if 'Transport endpoint is not connected' in output:
# NOTE(lourot): happens more often with corosync >= 3.1.0
# (hirsute), see lp:1931588
log('Transport endpoint not connected.', WARNING)
if attempt > 0:
log('Retrying...', WARNING)
continue
raise