[Murano] Murano can't deploy environment with default network parameter (Create New)

Bug #1477265 reported by Victor Ryzhenkin
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
Critical
Alexander Tivelkov

Bug Description

Bug was found in custom iso with Murano.

Steps:
1. Upload app
2. Create environment without existing network (Leave the field with network dafault)
3. Add app
4. Deploy environment

Actual result:
Deploy failed with error
"exceptions.StopIteration:"

Trace in murano-engine:
2015-07-22 18:43:08.534 24727 ERROR murano.common.engine [-]
  exceptions.StopIteration:
  Traceback (most recent call last):
    File "/tmp/murano-packages-cache/34c0b923-d225-4752-a1f5-31f8849b31ce/io.murano/Classes/Environment.yaml", line 74:9 in method deploy of class io.murano.Environment
        $.applications.pselect($.deploy())
    File "/tmp/murano-packages-cache/34c0b923-d225-4752-a1f5-31f8849b31ce/io.murano.apps.Simple/Classes/Simple.yaml", line 28:13 in method deploy of class io.murano.apps.Simple
        $.instance.deploy()
    File "/tmp/murano-packages-cache/34c0b923-d225-4752-a1f5-31f8849b31ce/io.murano/Classes/resources/Instance.yaml", line 90:9 in method deploy of class io.murano.resources.Instance
        $.ensureNetworksDeployed()
    File "/tmp/murano-packages-cache/34c0b923-d225-4752-a1f5-31f8849b31ce/io.murano/Classes/resources/Instance.yaml", line 154:13 in method ensureNetworksDeployed of class io.murano.resources.Instance
        $.environment.defaultNetworks.environment.deploy()
    File "/tmp/murano-packages-cache/34c0b923-d225-4752-a1f5-31f8849b31ce/io.murano/Classes/resources/ExistingNeutronNetwork.yaml", line 45:33 in method deploy of class io.murano.resources.ExistingNeutronNetwork
        $._getNetworks().where( $.name = $this.internalNetworkName or $.id = $this.internalNetworkName).first().id
    File "/usr/lib/python2.7/dist-packages/murano/dsl/helpers.py", line 66 in method evaluate
        return execute_instruction(value, func, context)
    File "/usr/lib/python2.7/dist-packages/murano/dsl/helpers.py", line 52 in method execute_instruction
        result = action()
    File "/usr/lib/python2.7/dist-packages/murano/dsl/helpers.py", line 62 in method <lambda>
        func = lambda: evaluate(value.evaluate(context), context, 1)
    File "/usr/lib/python2.7/dist-packages/murano/dsl/yaql_expression.py", line 75 in method evaluate
        return self._parsed_expression.evaluate(context=context)
    File "/usr/lib/python2.7/dist-packages/yaql/expressions.py", line 35 in method evaluate
        return f()
    File "/usr/lib/python2.7/dist-packages/yaql/expressions.py", line 73 in method __call__
        this = self.obj_wrapper()
    File "/usr/lib/python2.7/dist-packages/yaql/expressions.py", line 100 in method __call__
        return self._try_invoke(fs, args_to_pass, context)
    File "/usr/lib/python2.7/dist-packages/yaql/expressions.py", line 112 in method _try_invoke
        return func(*args_to_pass)
    File "/usr/lib/python2.7/dist-packages/murano/engine/system/yaql_functions.py", line 327 in method _first
        return iter(collection).next()

There is one more concern about this bug.
The exception non-informative for user.
Also, this bug will blocks swarm job and all deployment tests.

Tags: murano
Revision history for this message
Anastasia Kuznetsova (akuznetsova) wrote :

@Victor, could you please add info about environment configuration, iso version and attach logs snapshot if it is possible ?

Changed in mos:
assignee: MOS Murano (mos-murano) → Alexander Tivelkov (ativelkov)
Revision history for this message
Alexander Tivelkov (ativelkov) wrote :

Seems like this deployment has got netconfig.yaml in the /etc/murano folder of the controllers. It should not be there by default, and its contents are invalid anyway.

Changed in mos:
status: Confirmed → In Progress
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to openstack-build/murano-build (openstack-ci/fuel-7.0/2015.1.0)

Fix proposed to branch: openstack-ci/fuel-7.0/2015.1.0
Change author: Igor Yozhikov <email address hidden>
Review: https://review.fuel-infra.org/9818

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack-build/murano-build (openstack-ci/fuel-7.0/2015.1.0)

Reviewed: https://review.fuel-infra.org/9818
Submitter: Igor Yozhikov <email address hidden>
Branch: openstack-ci/fuel-7.0/2015.1.0

Commit: ab78f97dc9316b0e2b74525f2cc555fd6d7f4321
Author: Igor Yozhikov <email address hidden>
Date: Thu Jul 23 14:41:21 2015

netconfig should be disabled by default

Change-Id: I9d8866a25b02789189e6f54e68504c4e4d6c79e9
Closes-Bug: #1477265

Changed in mos:
status: In Progress → Fix Committed
Revision history for this message
Victor Ryzhenkin (vryzhenkin) wrote :

Verified on:
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "7.0"
  openstack_version: "2015.1.0-7.0"
  api: "1.0"
  build_number: "96"
  build_id: "2015-07-26_21-59-39"
  nailgun_sha: "d5c19f6afc66b5efe3c61ecb49025c1002ccbdc6"
  python-fuelclient_sha: "58c411d87a7eaf0fd6892eae2b5cb1eff4190c98"
  fuel-agent_sha: "2a65f11c10b0aeb5184247635a19740fc3edde21"
  astute_sha: "34e0493afa22999c4a07d3198ceb945116ab7932"
  fuel-library_sha: "84bacbae15136c0d0f23689e3c729f5dec6649a5"
  fuel-ostf_sha: "94a483c8aba639be3b96616c1396ef290dcc00cd"
  fuelmain_sha: "921918a3bd3d278431f35ad917989e46b0c24100"

Changed in mos:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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