commit 1e9a625f9c3e050fd3478df5b066304cba4cda69
Author: Felipe Monteiro <email address hidden>
Date: Wed Feb 1 13:41:46 2017 -0500
Fixes various Cfapi bugs.
Currently, murano.cfapi.cfapi throws 2 bugs, when certain
branches are reached.
1) An AttributeError is thrown by _get_muranoclient, because
CONF.cfapi is accessed; however, cfapi is not a defined
group in murano.common.conf. The group should instead be
CONF.engine, where packages_service is located.
2) A NameError can be thrown by get_last_operation, in the
unlikely situation when m_environment.status is not contained
in any of the cases enumerated in the if/elif branches;
when this happens, 'resp' is returned without being defined,
resulting in this error.
3) Not a bug per se, but a LOG.warning statement is not formatted
correctly in get_last_operation. It does not specify the
instance_id in the error message.
Reviewed: https:/ /review. openstack. org/427860 /git.openstack. org/cgit/ openstack/ murano/ commit/ ?id=1e9a625f9c3 e050fd3478df5b0 66304cba4cda69
Committed: https:/
Submitter: Jenkins
Branch: master
commit 1e9a625f9c3e050 fd3478df5b06630 4cba4cda69
Author: Felipe Monteiro <email address hidden>
Date: Wed Feb 1 13:41:46 2017 -0500
Fixes various Cfapi bugs.
Currently, murano.cfapi.cfapi throws 2 bugs, when certain
branches are reached.
1) An AttributeError is thrown by _get_muranoclient, because
CONF.cfapi is accessed; however, cfapi is not a defined
group in murano.common.conf. The group should instead be
CONF.engine, where packages_service is located.
2) A NameError can be thrown by get_last_operation, in the status is not contained
unlikely situation when m_environment.
in any of the cases enumerated in the if/elif branches;
when this happens, 'resp' is returned without being defined,
resulting in this error.
3) Not a bug per se, but a LOG.warning statement is not formatted
correctly in get_last_operation. It does not specify the
instance_id in the error message.
Change-Id: If91a0f8f700a9c 0cda0ea85a1d379 38f5ef8f98c
Closes-Bug: #1661065