Adding EndpointNotFound exception during scale_down

In I24612700bcbd3e17685ae7a33a27f38a2055a0fb we added specific
exceptions but in novaless deployment, we hit a EndpointNotFound
exception

Change-Id: I0c6d4e04891cefcc13a5f4294492cbdc76e1f3c3
This commit is contained in:
David Vallee Delisle 2021-06-07 10:54:02 -04:00
parent c4261c4420
commit 864eae151b
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ import shutil
import tempfile
from heatclient.common import event_utils
from keystoneauth1.exceptions.catalog import EndpointNotFound
from tripleoclient import constants
from tripleoclient import utils
@ -195,7 +196,7 @@ def scale_down(log, clients, stack, nodes, timeout=None, verbosity=0,
try:
_node = clients.compute.servers.get(node)
limit_list.append(_node.name)
except (KeyError, ValueError, AttributeError):
except (KeyError, ValueError, AttributeError, EndpointNotFound):
limit_list.append(node)
if limit_list: