Adding EndpointNotFound exception during scale_down

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

Change-Id: I0c6d4e04891cefcc13a5f4294492cbdc76e1f3c3
changes/21/795121/3
David Vallee Delisle 1 year ago
parent c4261c4420
commit 864eae151b
  1. 3
      tripleoclient/workflows/scale.py

@ -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:

Loading…
Cancel
Save