Error while deploying Cinder Volumes

Bug #1626048 reported by Jose Phillips
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Critical
omar
Newton
Fix Released
Critical
Kirill Zaitsev
Ocata
Fix Released
Critical
omar

Bug Description

With the last Region update is imposible to deploy Cinder volumes.

Traceback (most recent call last):
    File <unknown> in method None
        None
    File "/tmp/murano-packages-cache/io.murano/0.0.0/46304d6083074c1d91e88b87e0b8c681/Classes/resources/CinderVolume.yaml", line 55:18 in method .init of type io.murano.resources.CinderVolume
        $.getRegion()
    File "/tmp/murano-packages-cache/io.murano/0.0.0/46304d6083074c1d91e88b87e0b8c681/Classes/CloudResource.yaml", line 29:24 in method getRegion of type io.murano.CloudResource
        $env.regions[$regionName]
    File "/opt/stack/murano/murano/dsl/helpers.py", line 53 in method evaluate
        return value(context)
    File "/opt/stack/murano/murano/dsl/yaql_expression.py", line 85 in method __call__
        return self._parsed_expression.evaluate(context=context)
    File "/usr/local/lib/python2.7/dist-packages/yaql/language/expressions.py", line 165 in method evaluate
        return self(utils.NO_VALUE, context, self.engine)
    File "/usr/local/lib/python2.7/dist-packages/yaql/language/expressions.py", line 156 in method __call__
        return super(Statement, self).__call__(receiver, context, engine)
    File "/usr/local/lib/python2.7/dist-packages/yaql/language/expressions.py", line 37 in method __call__
        return context(self.name, engine, receiver, context)(*self.args)
    File "/usr/local/lib/python2.7/dist-packages/yaql/language/contexts.py", line 65 in method <lambda>
        data_context, use_convention, function_filter)
    File "/usr/local/lib/python2.7/dist-packages/yaql/language/runner.py", line 49 in method call
        name, all_overloads, engine, receiver, data_context, args, kwargs)
    File "/usr/local/lib/python2.7/dist-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/local/lib/python2.7/dist-packages/yaql/language/runner.py", line 117 in method <genexpr>
        args = tuple(arg_evaluator(i, arg) for i, arg in enumerate(args))
    File "/usr/local/lib/python2.7/dist-packages/yaql/language/runner.py", line 113 in method <lambda>
        and not isinstance(arg, expressions.Constant))
    File "/usr/local/lib/python2.7/dist-packages/yaql/language/expressions.py", line 37 in method __call__
        return context(self.name, engine, receiver, context)(*self.args)
    File "/usr/local/lib/python2.7/dist-packages/yaql/language/contexts.py", line 65 in method <lambda>
        data_context, use_convention, function_filter)
    File "/usr/local/lib/python2.7/dist-packages/yaql/language/runner.py", line 51 in method call
        result = delegate()
    File "/usr/local/lib/python2.7/dist-packages/yaql/language/runner.py", line 142 in method <lambda>
        return lambda: delegate()
    File "/usr/local/lib/python2.7/dist-packages/yaql/language/specs.py", line 341 in method func
        six.iteritems(keyword_args)))
    File "/usr/local/lib/python2.7/dist-packages/yaql/standard_library/collections.py", line 108 in method dict_indexer
        return d[key]
    File "/usr/local/lib/python2.7/dist-packages/yaql/language/utils.py", line 132 in method __getitem__
        return self._d[key]

Oleh Baran (obaran)
Changed in murano:
status: New → Confirmed
Changed in murano:
importance: Undecided → Critical
milestone: none → ocata-1
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/374313

Changed in murano:
status: Confirmed → 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/374316

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

Reviewed: https://review.openstack.org/374313
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=7cd1b70a66d602111430874a90f05df486d4f9cf
Submitter: Jenkins
Branch: master

commit 7cd1b70a66d602111430874a90f05df486d4f9cf
Author: Omar Shykhkerimov <email address hidden>
Date: Wed Sep 21 20:39:56 2016 +0300

    Move getRegion() in CinderVolume to deploy() method

    getRegion() method in CinderVolume class was called before
    the region was created in Environment class.

    This patch moves usage of this function to deploy() method to
    have region already created.

    Change-Id: I542e5e7bf85bbf8dd83ac746e203e2e7e6b6f111
    Closes-Bug: #1626048

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

Reviewed: https://review.openstack.org/374316
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=34aa88cb61c32a1d78cfb48a24783c31cd6a0abd
Submitter: Jenkins
Branch: stable/newton

commit 34aa88cb61c32a1d78cfb48a24783c31cd6a0abd
Author: Omar Shykhkerimov <email address hidden>
Date: Wed Sep 21 20:39:56 2016 +0300

    Move getRegion() in CinderVolume to deploy() method

    getRegion() method in CinderVolume class was called before
    the region was created in Environment class.

    This patch moves usage of this function to deploy() method to
    have region already created.

    Change-Id: I542e5e7bf85bbf8dd83ac746e203e2e7e6b6f111
    Closes-Bug: #1626048

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

This issue was fixed in the openstack/murano 3.0.0.0rc2 release candidate.

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

This issue was fixed in the openstack/murano 3.0.0 release.

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

This issue was fixed in the openstack/murano 3.1.0 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.