Undercloud install fails because of API exception in mistral client

Bug #1749186 reported by Sagi (Sergey) Shnaidman
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Dougal Matthews

Bug Description

Undercloud installation fails with:
APIException: Environment not found [name=tripleo.undercloud-config]

2018-02-13 11:46:00 | 2018-02-13 11:46:00,874 INFO: Mistral workbooks configured successfully
2018-02-13 11:46:01 | 2018-02-13 11:46:01,990 DEBUG: An exception occurred
2018-02-13 11:46:01 | Traceback (most recent call last):
2018-02-13 11:46:01 | File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 2309, in install
2018-02-13 11:46:01 | _post_config(instack_env, upgrade)
2018-02-13 11:46:01 | File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 2011, in _post_config
2018-02-13 11:46:01 | _post_config_mistral(instack_env, mistral, swift)
2018-02-13 11:46:01 | File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 1946, in _post_config_mistral
2018-02-13 11:46:01 | _create_mistral_config_environment(instack_env, mistral)
2018-02-13 11:46:01 | File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 1765, in _create_mistral_config_environment
2018-02-13 11:46:01 | env_data = mistral.environments.get(env_name).variables
2018-02-13 11:46:01 | File "/usr/lib/python2.7/site-packages/mistralclient/api/v2/environments.py", line 80, in get
2018-02-13 11:46:01 | return self._get('/environments/%s' % name)
2018-02-13 11:46:01 | File "/usr/lib/python2.7/site-packages/mistralclient/api/base.py", line 134, in _get
2018-02-13 11:46:01 | self._raise_api_exception(ex.response)
2018-02-13 11:46:01 | File "/usr/lib/python2.7/site-packages/mistralclient/api/base.py", line 160, in _raise_api_exception
2018-02-13 11:46:01 | error_message=error_data)
2018-02-13 11:46:01 | APIException: Environment not found [name=tripleo.undercloud-config]
2018-02-13 11:46:01 | 2018-02-13 11:46:01,993 ERROR:
2018-02-13 11:46:01 | #############################################################################
2018-02-13 11:46:01 | Undercloud install failed.
2018-02-13 11:46:01 |
2018-02-13 11:46:01 | Reason: Environment not found [name=tripleo.undercloud-config]
2018-02-13 11:46:01 |
2018-02-13 11:46:01 | See the previous output for details about what went wrong. The full install
2018-02-13 11:46:01 | log can be found at /home/zuul/.instack/install-undercloud.log.

http://logs.openstack.org/47/543447/3/check/tripleo-ci-centos-7-scenario003-multinode-oooq-container/7857e17/logs/undercloud/home/zuul/undercloud_install.log.txt.gz#_2018-02-13_11_46_01

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :
Changed in tripleo:
assignee: nobody → Dougal Matthews (d0ugal)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to instack-undercloud (master)

Reviewed: https://review.openstack.org/543916
Committed: https://git.openstack.org/cgit/openstack/instack-undercloud/commit/?id=aabd6e639e81fdf56a4967098a8c0e0c0fe2fa50
Submitter: Zuul
Branch: master

commit aabd6e639e81fdf56a4967098a8c0e0c0fe2fa50
Author: Dougal Matthews <email address hidden>
Date: Tue Feb 13 12:27:51 2018 +0000

    Catch APIException exceptions raised by Mistral

    In the change to keystone sessions and Mistral client 3.2.0 the
    exception raised when fetching an environment that doesn't exist
    changed. This adds the new exception but continues to catch the previous
    one.

    Closes-Bug: #1749186
    Change-Id: I304547b9ecabe4e387339c8561bbae8651cd9db6

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
Alan Pevec (apevec) wrote :

> is it a dup of https://bugs.launchpad.net/tripleo/+bug/1747800 ?

and in that one: "Likely a dupe of https://bugs.launchpad.net/tripleo/+bug/1748751"

There were two issues, in mistralclient, fixed in 3.3.0 and instack-undercloud which was uncovered after fixing first one.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to instack-undercloud (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/544607

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on instack-undercloud (stable/queens)

Change abandoned by Emilien Macchi (<email address hidden>) on branch: stable/queens
Review: https://review.openstack.org/544607

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/instack-undercloud 8.3.0

This issue was fixed in the openstack/instack-undercloud 8.3.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.