Agent is not properly initialized

Bug #1670511 reported by Stan Lagun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Medium
Kirill Zaitsev
Newton
Fix Committed
Medium
Felipe Monteiro
Ocata
Fix Released
Medium
Kirill Zaitsev

Bug Description

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano (master)

Fix proposed to branch: master
Review: https://review.openstack.org/442196

Changed in murano:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/442198

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (stable/newton)

Reviewed: https://review.openstack.org/442198
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=46df6dda54f4ad62b0a71951a6091620ac6d004f
Submitter: Jenkins
Branch: stable/newton

commit 46df6dda54f4ad62b0a71951a6091620ac6d004f
Author: Stan Lagun <email address hidden>
Date: Mon Mar 6 15:01:29 2017 -0800

    Agent initialization was fixed

    When Murano Agent is disabled Agent was not
    initialized properly which caused deployment errors
    even if no agent calls made

    Change-Id: I047b512cafe71650d6a5c7edc7863f0231292a22
    Closes-Bug: #1670511
    Co-Authored-By: Stan Lagun <email address hidden>

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/443449

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (stable/ocata)

Reviewed: https://review.openstack.org/443449
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=ee7772c2f91337f201ca18777390e2467909a05c
Submitter: Jenkins
Branch: stable/ocata

commit ee7772c2f91337f201ca18777390e2467909a05c
Author: Stan Lagun <email address hidden>
Date: Mon Mar 6 15:01:29 2017 -0800

    Agent initialization was fixed

    When Murano Agent is disabled Agent was not
    initialized properly which caused deployment errors
    even if no agent calls made

    Change-Id: I047b512cafe71650d6a5c7edc7863f0231292a22
    Closes-Bug: #1670511

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano (master)

Reviewed: https://review.openstack.org/442196
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=78ffcfbab4bf09cce9f0d0a46bf8da39beaea3d9
Submitter: Jenkins
Branch: master

commit 78ffcfbab4bf09cce9f0d0a46bf8da39beaea3d9
Author: Stan Lagun <email address hidden>
Date: Mon Mar 6 15:01:29 2017 -0800

    Agent initialization was fixed

    When Murano Agent is disabled Agent was not
    initialized properly which caused deployment errors
    even if no agent calls made

    Change-Id: I047b512cafe71650d6a5c7edc7863f0231292a22
    Closes-Bug: #1670511

Changed in murano:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/murano 4.0.0.0b1

This issue was fixed in the openstack/murano 4.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/murano ocata-eol

This issue was fixed in the openstack/murano ocata-eol release.

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

Other bug subscribers

Remote bug watches

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