Bug description:
After deployment of the latest devstack from master with not enable congress deployments of some apps from a.o.o. will fail. If you have congress client and if you don't you will see different messages in the murano-engine.log
Steps to reproduce:
1) Deploy devstack from master, do not enable congress
2) Make sure you do not have congress client
3) Log in to the Horizon
4) Import and deploy some app from a.o.o.
Expected results:
app is deployed
Actual results:
deployment is failed with next error
No module named congressclient.v1.client
part of the murano-engine.log:
murano:connected+("821c19f8-e2ec-40b2-bf5e-55ea147598c8", "7444aa56-7910-4e22-93f0-1b0a7d0c7db7") ESC[00m ESC[00;33mfrom (pid=22304) _execute
_simulation /opt/stack/murano/murano/policy/model_policy_enforcer.py:140ESC[00m
2016-08-30 19:27:18.823 ESC[01;31mERROR murano.common.engine [ESC[00;36m-ESC[01;31m] ESC[01;35mESC[01;31mException No module named congressclie
nt.v1.client occurred during invocation of <validate>ESC[00m
ESC[01;31m2016-08-30 19:27:18.823 TRACE murano.common.engine ESC[01;35mESC[00mTraceback (most recent call last):
ESC[01;31m2016-08-30 19:27:18.823 TRACE murano.common.engine ESC[01;35mESC[00m File "/opt/stack/murano/murano/common/engine.py", line 228, in
_execute
ESC[01;31m2016-08-30 19:27:18.823 TRACE murano.common.engine ESC[01;35mESC[00m self._validate_model(obj.object, pkg_loader, executor)
ESC[01;31m2016-08-30 19:27:18.823 TRACE murano.common.engine ESC[01;35mESC[00m File "/opt/stack/murano/murano/common/engine.py", line 305, in
_validate_model
ESC[01;31m2016-08-30 19:27:18.823 TRACE murano.common.engine ESC[01;35mESC[00m self._model_policy_enforcer.modify(obj, pkg_loader)
ESC[01;31m2016-08-30 19:27:18.823 TRACE murano.common.engine ESC[01;35mESC[00m File "/opt/stack/murano/murano/policy/model_policy_enforcer.py"
, line 88, in modify
ESC[01;31m2016-08-30 19:27:18.823 TRACE murano.common.engine ESC[01;35mESC[00m 'predeploy_modify(eid, oid, action)')
ESC[01;31m2016-08-30 19:27:18.823 TRACE murano.common.engine ESC[01;35mESC[00m File "/opt/stack/murano/murano/policy/model_policy_enforcer.py", line 142, in _execute_simulation
ESC[01;31m2016-08-30 19:27:18.823 TRACE murano.common.engine ESC[01;35mESC[00m validation_result = self.client.execute_policy_action(
ESC[01;31m2016-08-30 19:27:18.823 TRACE murano.common.engine ESC[01;35mESC[00m File "/opt/stack/murano/murano/policy/model_policy_enforcer.py", line 66, in client
ESC[01;31m2016-08-30 19:27:18.823 TRACE murano.common.engine ESC[01;35mESC[00m self._client = self._create_client()
ESC[01;31m2016-08-30 19:27:18.823 TRACE murano.common.engine ESC[01;35mESC[00m File "/opt/stack/murano/murano/policy/model_policy_enforcer.py", line 57, in _create_client
ESC[01;31m2016-08-30 19:27:18.823 TRACE murano.common.engine ESC[01;35mESC[00m raise congress_client_import_error
ESC[01;31m2016-08-30 19:27:18.823 TRACE murano.common.engine ESC[01;35mESC[00mImportError: No module named congressclient.v1.client
ESC[01;31m2016-08-30 19:27:18.823 TRACE murano.common.engine ESC[01;35mESC[00m
If you will install congressclient you will have next message in the murano-engine.log:
stack/murano/murano/policy/model_policy_enforcer.py:140
2016-08-30 18:54:21.395 ERROR murano.common.engine [-] Exception public endpoint for policy service in RegionOne region not found occurred during invocation of <validate>
2016-08-30 18:54:21.395 TRACE murano.common.engine Traceback (most recent call last):
2016-08-30 18:54:21.395 TRACE murano.common.engine File "/opt/stack/murano/murano/common/engine.py", line 228, in _execute
2016-08-30 18:54:21.395 TRACE murano.common.engine self._validate_model(obj.object, pkg_loader, executor)
2016-08-30 18:54:21.395 TRACE murano.common.engine File "/opt/stack/murano/murano/common/engine.py", line 305, in _validate_model
2016-08-30 18:54:21.395 TRACE murano.common.engine self._model_policy_enforcer.modify(obj, pkg_loader)
2016-08-30 18:54:21.395 TRACE murano.common.engine File "/opt/stack/murano/murano/policy/model_policy_enforcer.py", line 88, in modify
2016-08-30 18:54:21.395 TRACE murano.common.engine 'predeploy_modify(eid, oid, action)')
2016-08-30 18:54:21.395 TRACE murano.common.engine File "/opt/stack/murano/murano/policy/model_policy_enforcer.py", line 149, in _execute_simulation
2016-08-30 18:54:21.395 TRACE murano.common.engine 'sequence': rules_line})
2016-08-30 18:54:21.395 TRACE murano.common.engine File "/usr/local/lib/python2.7/dist-packages/congressclient/v1/client.py", line 118, in execute_policy_action
2016-08-30 18:54:21.395 TRACE murano.common.engine (self.policy_path % policy_name) + str(uri), body=body)
2016-08-30 18:54:21.395 TRACE murano.common.engine File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 193, in post
2016-08-30 18:54:21.395 TRACE murano.common.engine return self.request(url, 'POST', **kwargs)
2016-08-30 18:54:21.395 TRACE murano.common.engine File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 344, in request
2016-08-30 18:54:21.395 TRACE murano.common.engine resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
2016-08-30 18:54:21.395 TRACE murano.common.engine File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 112, in request
2016-08-30 18:54:21.395 TRACE murano.common.engine return self.session.request(url, method, **kwargs)
2016-08-30 18:54:21.395 TRACE murano.common.engine File "/usr/local/lib/python2.7/dist-packages/positional/__init__.py", line 101, in inner
2016-08-30 18:54:21.395 TRACE murano.common.engine return wrapped(*args, **kwargs)
2016-08-30 18:54:21.395 TRACE murano.common.engine File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 484, in request
2016-08-30 18:54:21.395 TRACE murano.common.engine **endpoint_filter)
2016-08-30 18:54:21.395 TRACE murano.common.engine File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/session.py", line 765, in get_endpoint
2016-08-30 18:54:21.395 TRACE murano.common.engine return auth.get_endpoint(self, **kwargs)
2016-08-30 18:54:21.395 TRACE murano.common.engine File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/identity/base.py", line 216, in get_endpoint
2016-08-30 18:54:21.395 TRACE murano.common.engine service_name=service_name)
2016-08-30 18:54:21.395 TRACE murano.common.engine File "/usr/local/lib/python2.7/dist-packages/positional/__init__.py", line 101, in inner
2016-08-30 18:54:21.395 TRACE murano.common.engine return wrapped(*args, **kwargs)
2016-08-30 18:54:21.395 TRACE murano.common.engine File "/usr/local/lib/python2.7/dist-packages/