Merge "Adding EndpointNotFound exception during scale_down"

This commit is contained in:
Zuul 2021-06-15 01:54:38 +00:00 committed by Gerrit Code Review
commit 69988a27e5

View File

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