When Murano Agent is disabled Agent instance is not get initialized properly which causes exceptions like
2017-03-06 14:24:01.870 28884 ERROR murano.common.engine [-]
AttributeError: 'Agent' object has no attribute '_queue'
Traceback (most recent call last):
File "/tmp/murano-packages-cache/io.murano/0.0.0/3317e706ecd1417bb748361a6a3385d2/Classes/Environment.yaml", line 120:9 in method deploy of type io.murano.Environment
$.applications.pselect($.deploy())
File "/tmp/murano-packages-cache/wrs.titanium.murano.examples.VmFip_NoAppDeploy/0.0.0/829a861c408a4516b0589d04cce23248/Classes/VmFip_NoAppDeploy.yaml", line 41:13 in method deploy of type wrs.titanium.murano.examples.VmFip_NoAppDeploy
$.instance.deploy()
File "/tmp/murano-packages-cache/io.murano/0.0.0/3317e706ecd1417bb748361a6a3385d2/Classes/resources/Instance.yaml", line 193:9 in method deploy of type io.murano.resources.Instance
$this.beginDeploy()
File "/tmp/murano-packages-cache/io.murano/0.0.0/3317e706ecd1417bb748361a6a3385d2/Classes/resources/Instance.yaml", line 131:28 in method beginDeploy of type io.murano.resources.Instance
$.prepareUserData()
File "/tmp/murano-packages-cache/io.murano/0.0.0/3317e706ecd1417bb748361a6a3385d2/Classes/resources/LinuxMuranoInstance.yaml", line 14:19 in method prepareUserData of type io.murano.resources.LinuxMuranoInstance
$.generateUserData()
File "/tmp/murano-packages-cache/io.murano/0.0.0/3317e706ecd1417bb748361a6a3385d2/Classes/resources/LinuxMuranoInstance.yaml", line 80:39 in method generateUserData of type io.murano.resources.LinuxMuranoInstance
$.agent.queueName()
File "/usr/lib/python2.7/site-packages/murano/dsl/helpers.py", line 58 in method evaluate
for d_key, d_value in six.iteritems(value))
File "/usr/lib/python2.7/site-packages/yaql/language/utils.py", line 122 in method __init__
self._d = dict(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/murano/dsl/helpers.py", line 58 in method <genexpr>
for d_key, d_value in six.iteritems(value))
File "/usr/lib/python2.7/site-packages/murano/dsl/helpers.py", line 53 in method evaluate
return value(context)
File "/usr/lib/python2.7/site-packages/murano/dsl/yaql_expression.py", line 85 in method __call__
return self._parsed_expression.evaluate(context=context)
File "/usr/lib/python2.7/site-packages/yaql/language/expressions.py", line 165 in method evaluate
return self(utils.NO_VALUE, context, self.engine)
File "/usr/lib/python2.7/site-packages/yaql/language/expressions.py", line 156 in method __call__
return super(Statement, self).__call__(receiver, context, engine)
File "/usr/lib/python2.7/site-packages/yaql/language/expressions.py", line 37 in method __call__
return context(self.name, engine, receiver, context)(*self.args)
File "/usr/lib/python2.7/site-packages/yaql/language/contexts.py", line 65 in method <lambda>
data_context, use_convention, function_filter)
File "/usr/lib/python2.7/site-packages/yaql/language/runner.py", line 49 in method call
name, all_overloads, engine, receiver, data_context, args, kwargs)
File "/usr/lib/python2.7/site-packages/yaql/language/runner.py", line 117 in method choose_overload
args = tuple(arg_evaluator(i, arg) for i, arg in enumerate(args))
File "/usr/lib/python2.7/site-packages/yaql/language/runner.py", line 117 in method <genexpr>
args = tuple(arg_evaluator(i, arg) for i, arg in enumerate(args))
File "/usr/lib/python2.7/site-packages/yaql/language/runner.py", line 113 in method <lambda>
and not isinstance(arg, expressions.Constant))
File "/usr/lib/python2.7/site-packages/yaql/language/expressions.py", line 37 in method __call__
return context(self.name, engine, receiver, context)(*self.args)
File "/usr/lib/python2.7/site-packages/yaql/language/contexts.py", line 65 in method <lambda>
data_context, use_convention, function_filter)
File "/usr/lib/python2.7/site-packages/yaql/language/runner.py", line 51 in method call
result = delegate()
File "/usr/lib/python2.7/site-packages/yaql/language/runner.py", line 142 in method <lambda>
return lambda: delegate()
File "/usr/lib/python2.7/site-packages/yaql/language/specs.py", line 341 in method func
six.iteritems(keyword_args)))
File "/usr/lib/python2.7/site-packages/murano/dsl/yaql_functions.py", line 183 in method op_dot
return operator(ctx2, receiver, expr)
File "/usr/lib/python2.7/site-packages/yaql/language/yaqltypes.py", line 323 in method func
new_name, engine, new_receiver, new_context)(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/yaql/language/contexts.py", line 65 in method <lambda>
data_context, use_convention, function_filter)
File "/usr/lib/python2.7/site-packages/yaql/language/runner.py", line 51 in method call
result = delegate()
File "/usr/lib/python2.7/site-packages/yaql/language/runner.py", line 142 in method <lambda>
return lambda: delegate()
File "/usr/lib/python2.7/site-packages/yaql/language/specs.py", line 341 in method func
six.iteritems(keyword_args)))
File "/usr/lib/python2.7/site-packages/murano/dsl/yaql_functions.py", line 183 in method op_dot
return operator(ctx2, receiver, expr)
File "/usr/lib/python2.7/site-packages/yaql/language/yaqltypes.py", line 323 in method func
new_name, engine, new_receiver, new_context)(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/yaql/language/contexts.py", line 65 in method <lambda>
data_context, use_convention, function_filter)
File "/usr/lib/python2.7/site-packages/yaql/language/runner.py", line 51 in method call
result = delegate()
File "/usr/lib/python2.7/site-packages/yaql/language/runner.py", line 142 in method <lambda>
return lambda: delegate()
File "/usr/lib/python2.7/site-packages/yaql/language/specs.py", line 341 in method func
six.iteritems(keyword_args)))
File "/usr/lib/python2.7/site-packages/yaql/standard_library/system.py", line 34 in method op_dot
return expr(receiver)
File "/usr/lib/python2.7/site-packages/yaql/language/yaqltypes.py", line 269 in method func
engine, args, kwargs)
File "/usr/lib/python2.7/site-packages/yaql/language/yaqltypes.py", line 236 in method _call
result = value(receiver, context, engine)
File "/usr/lib/python2.7/site-packages/yaql/language/expressions.py", line 37 in method __call__
return context(self.name, engine, receiver, context)(*self.args)
File "/usr/lib/python2.7/site-packages/yaql/language/contexts.py", line 65 in method <lambda>
data_context, use_convention, function_filter)
File "/usr/lib/python2.7/site-packages/yaql/language/runner.py", line 51 in method call
result = delegate()
File "/usr/lib/python2.7/site-packages/yaql/language/runner.py", line 142 in method <lambda>
return lambda: delegate()
File "/usr/lib/python2.7/site-packages/yaql/language/specs.py", line 341 in method func
six.iteritems(keyword_args)))
File "/usr/lib/python2.7/site-packages/murano/dsl/yaql_integration.py", line 246 in method payload
__receiver, args, kwargs, __context, True), __context)
File "/usr/lib/python2.7/site-packages/murano/dsl/murano_method.py", line 230 in method invoke
self, this, context, args, kwargs, skip_stub)
File "/usr/lib/python2.7/site-packages/murano/dsl/executor.py", line 163 in method invoke_method
result = call()
File "/usr/lib/python2.7/site-packages/murano/dsl/executor.py", line 153 in method call
yaql_engine, context, native_this)(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/yaql/language/specs.py", line 60 in method func
return self.get_delegate(receiver, engine, context, args, kwargs)()
File "/usr/lib/python2.7/site-packages/yaql/language/specs.py", line 341 in method func
six.iteritems(keyword_args)))
File "/usr/lib/python2.7/site-packages/murano/dsl/yaql_integration.py", line 192 in method payload
return body(__self.extension, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/murano/engine/system/agent.py", line 71 in method queue_name
return self._queue
Fix proposed to branch: master /review. openstack. org/442196
Review: https:/