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:
parent
c4261c4420
commit
864eae151b
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user