[murano-apps] Deployment of Kubernetes Cluster fails with [murano.engine.system.agent.AgentException]: {'errorCode': 1, 'message': u"'id'", 'extra': None, 'details': None]

Bug #1447594 reported by Anastasia Kuznetsova
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
High
Stan Lagun
murano-apps
Fix Released
High
Stan Lagun

Bug Description

Steps to reproduce:
1. Create environment
2. Add kubernetes cluster application to the env (1 minion, 1 gateway, replicas = 0), add 1 kubernetes pod
3. Add some docker application
4. Send environment to deploy

Observer result:
2015-04-23 12:37:16 - Kubernetes cluster is up and running
2015-04-23 12:37:17 - Error: {'errorCode': 1, 'message': u"'id'", 'extra': None, 'details': None, 'time': u'2015-04-23 12:37:16.477897'}
2015-04-23 12:37:17 - Deployment finished with errors
2015-04-23 12:37:17 - [murano.engine.system.agent.AgentException]: {'errorCode': 1, 'message': u"'id'", 'extra': None, 'details': None, 'time': u'2015-04-23 12:37:16.477897'}

Traceback (most recent call last):
    File "/tmp/murano-packages-cache/bff51515-1e0d-4e1b-b65c-aa0a45bad180/io.murano/Classes/Environment.yaml", line 66:13 in method deploy of class io.murano.Environment
        $.applications.pselect($.deploy())
    File "/tmp/murano-packages-cache/bff51515-1e0d-4e1b-b65c-aa0a45bad180/io.murano.apps.docker.Interfaces/Classes/DockerApplication.yaml", line 50:37 in method deploy of class io.murano.apps.docker.DockerApplication
        $.host.hostContainer($container)
    File "/tmp/murano-packages-cache/bff51515-1e0d-4e1b-b65c-aa0a45bad180/io.murano.apps.docker.kubernetes.KubernetesPod/Classes/KubernetesPod.yaml", line 107:9 in method hostContainer of class io.murano.apps.docker.kubernetes.KubernetesPod
        $.deploy()
    File "/tmp/murano-packages-cache/bff51515-1e0d-4e1b-b65c-aa0a45bad180/io.murano.apps.docker.kubernetes.KubernetesPod/Classes/KubernetesPod.yaml", line 222:17 in method deploy of class io.murano.apps.docker.kubernetes.KubernetesPod
        $.kubernetesCluster.createPod(definition => $podDefinition, isNew => true)
    File "/tmp/murano-packages-cache/bff51515-1e0d-4e1b-b65c-aa0a45bad180/io.murano.apps.docker.kubernetes.KubernetesCluster/Classes/KubernetesCluster.yaml", line 151:9 in method createPod of class io.murano.apps.docker.kubernetes.KubernetesCluster
        $.masterNode.instance.agent.call($template, $resources)
    File "/usr/lib/python2.7/dist-packages/murano/engine/system/agent.py", line 123 in method call
        return self._send(plan, True, _context, timeout)
    File "/usr/lib/python2.7/dist-packages/murano/engine/system/agent.py", line 115 in method _send
        return self._process_v2_result(result)
    File "/usr/lib/python2.7/dist-packages/murano/engine/system/agent.py", line 182 in method _process_v2_result
        raise AgentException(err)

Changed in murano:
importance: Undecided → High
assignee: nobody → Stan Lagun (slagun)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano-apps (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/176780

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

Reviewed: https://review.openstack.org/176780
Committed: https://git.openstack.org/cgit/openstack/murano-apps/commit/?id=a680bf5899e006ff1e3ecf1ee3e3c7cce4a9bebb
Submitter: Jenkins
Branch: stable/kilo

commit a680bf5899e006ff1e3ecf1ee3e3c7cce4a9bebb
Author: Stan Lagun <email address hidden>
Date: Thu Apr 23 17:45:58 2015 +0300

    Fixes k8s deployment without Replication Controller

    UpdatePod execution plan was using field from Pod
    definition that was present in v1beta1 API but is no
    longer used in v1beta3

    Change-Id: Ib57a0e5cc7104d5e1fa39b07644eab182a7fdf45
    Closes-Bug: #1447594

tags: added: in-stable-kilo
Changed in murano:
milestone: none → kilo-rc2
status: New → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano-apps (master)

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

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

Reviewed: https://review.openstack.org/177228
Committed: https://git.openstack.org/cgit/openstack/murano-apps/commit/?id=083ec59ab0d10bb0f96c1a6ded0cfba9fd65f870
Submitter: Jenkins
Branch: master

commit 083ec59ab0d10bb0f96c1a6ded0cfba9fd65f870
Author: Stan Lagun <email address hidden>
Date: Thu Apr 23 17:45:58 2015 +0300

    Fixes k8s deployment without Replication Controller

    UpdatePod execution plan was using field from Pod
    definition that was present in v1beta1 API but is no
    longer used in v1beta3

    Change-Id: Ib57a0e5cc7104d5e1fa39b07644eab182a7fdf45
    Closes-Bug: #1447594
    (cherry picked from commit a680bf5899e006ff1e3ecf1ee3e3c7cce4a9bebb)

Revision history for this message
Stan Lagun (slagun) wrote :

This depends on node capacity. K8s may decide to schedule replicas to a single node or to a different nodes.
With https://review.openstack.org/#/c/176548/ correct node capacity is reported to k8s

Changed in murano:
status: Fix Committed → Fix Released
Changed in murano:
milestone: kilo-rc2 → 2015.1.0
Changed in murano-apps:
status: New → Fix Released
importance: Undecided → High
assignee: nobody → Stan Lagun (slagun)
milestone: none → liberty-1
no longer affects: murano/liberty
no longer affects: murano/kilo
Changed in murano-apps:
milestone: liberty-1 → 1.0.0
Changed in murano-apps:
milestone: 1.0.0 → 1.0.1
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.