Problem to deploy instance networks in multi-region

Bug #1633096 reported by Henar Muñoz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
High
Stan Lagun
Newton
Fix Committed
High
Stan Lagun
Ocata
Fix Released
High
Stan Lagun

Bug Description

Deploying instance network in multi-region testbeds gives an error, both specifying the region or without specifying anything.

2016-10-11 14:28:05.654 809 WARNING murano.dsl.murano_method [-] "Usage: Action" is deprecated, use "Scope: Public" instead
2016-10-11 14:28:05.695 809 ERROR murano.common.engine [-]
  KeyError: u'Spain2'
  Traceback (most recent call last):
    File <unknown> in method None
        None
    File "/tmp/murano-packages-cache/io.murano/0.0.0/38319c964b5943949d0ad86188056878/Classes/resources/NeutronNetworkBase.yaml", line 26:20 in method .init of type io.murano.resources.NeutronNetworkBase
        $.getRegion()
    File "/tmp/murano-packages-cache/io.murano/0.0.0/38319c964b5943949d0ad86188056878/Classes/CloudResource.yaml", line 29:24 in method getRegion of type io.murano.CloudResource
        $env.regions[$regionName]

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/386073

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/386099

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

Reviewed: https://review.openstack.org/386073
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=753c8cb4222a25c560a108aa65fa274b5007c0eb
Submitter: Jenkins
Branch: master

commit 753c8cb4222a25c560a108aa65fa274b5007c0eb
Author: Stan Lagun <email address hidden>
Date: Thu Oct 13 09:25:58 2016 -0700

    Remove getRegion() calls from network initializers

    .init methods of the components are called before
    the environment is initialized. Thus regions are not
    configured at this point. Thus if the object is not
    directly or indirectly owned by the CloudRegion
    it cannot call getRegion() from the initializer.

    Normally networks do belong to CloudRegion
    so there is no problem. However a Network instance
    such as ExistingNetwork might be passed to the Instance
    class which is not owned by the ClouydRegion and in this
    case an exception will be thrown.

    Change-Id: I1f3c4f53d4ebc92772c79c9991b19840aa0b0ed7
    Closes-Bug: #1633096

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/386099
Committed: https://git.openstack.org/cgit/openstack/murano/commit/?id=adab86feb487694b729090969ab8607f73fa307a
Submitter: Jenkins
Branch: stable/newton

commit adab86feb487694b729090969ab8607f73fa307a
Author: Stan Lagun <email address hidden>
Date: Thu Oct 13 09:25:58 2016 -0700

    Remove getRegion() calls from network initializers

    .init methods of the components are called before
    the environment is initialized. Thus regions are not
    configured at this point. Thus if the object is not
    directly or indirectly owned by the CloudRegion
    it cannot call getRegion() from the initializer.

    Normally networks do belong to CloudRegion
    so there is no problem. However a Network instance
    such as ExistingNetwork might be passed to the Instance
    class which is not owned by the ClouydRegion and in this
    case an exception will be thrown.

    Change-Id: I1f3c4f53d4ebc92772c79c9991b19840aa0b0ed7
    Closes-Bug: #1633096

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.