Merge "Catch APIException exceptions raised by Mistral"

This commit is contained in:
Zuul 2018-02-13 23:25:44 +00:00 committed by Gerrit Code Review
commit 1b914f8608
2 changed files with 8 additions and 1 deletions

View File

@ -38,6 +38,7 @@ from keystoneauth1 import exceptions as ks_exceptions
from keystoneclient import discover
import keystoneauth1.identity.generic as ks_auth
from mistralclient.api import client as mistralclient
from mistralclient.api import base as mistralclient_exc
from novaclient import client as novaclient
from novaclient import exceptions
import os_client_config
@ -1768,7 +1769,7 @@ def _create_mistral_config_environment(instack_env, mistral):
env_name = 'tripleo.undercloud-config'
try:
env_data = mistral.environments.get(env_name).variables
except ks_exceptions.NotFound:
except (ks_exceptions.NotFound, mistralclient_exc.APIException):
# If the environment is not created, we need to
# create it with the information in config_data
mistral.environments.create(

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fixed an incompatability with mistralclient 3.2.0, where a different
exception type was raised and thus not handled during the undercloud
install post config. See #1749186