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)
Fix proposed to branch: stable/kilo /review. openstack. org/176780
Review: https:/