[murano-apps][kubernetes]Sometimes updatePod fails with [spec.containers[0].env[0].name: required value, spec.containers[0].env[0].name: invalid value \'\': must match regex [A-Za-z_][A-Za-z0-9_]*]'

Bug #1447948 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 to it (1 minion, 1 gataway, replicas=0)
3. Add kubernetes pod to env (pod name = "pod", no labels)
4. Add some kubernetes app to the env
5. Send env to deploy

Observed result:
Deploy fails with following error:
[murano.engine.system.agent.AgentException]: {'errorCode': 100, 'message': u'Script updatePod returned error code', 'extra': None, 'details': {u'stdout': None, u'stderr': u'Error: Pod "pod" is invalid: [spec.containers[0].env[0].name: required value, spec.containers[0].env[0].name: invalid value \'\': must match regex [A-Za-z_][A-Za-z0-9_]*]', u'exitCode': 1}, 'time': u'2015-04-23 17:42:45.837383'}

Part of agent log will be attached.

Revision history for this message
Anastasia Kuznetsova (akuznetsova) wrote :
Changed in murano:
importance: Undecided → High
assignee: nobody → Stan Lagun (slagun)
milestone: none → kilo-rc2
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/177238

Changed in murano:
status: New → In Progress
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/177243

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

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

commit b94627d3b5740f010768a017df1ee44b3ea4cef0
Author: Stan Lagun <email address hidden>
Date: Fri Apr 24 16:03:27 2015 +0300

    Fixes env validation in k8s 0.15/API v1beta3

    for ENV variables parameter name was renamed from "key" to "name"

    Closes Bug: #1447948

    Change-Id: I2977800eaa8606c934ee33b907a68981753696c7

Changed in murano:
status: In Progress → Fix Committed
tags: added: in-stable-kilo
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to murano-apps (stable/kilo)

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

commit 3d4ebc43b07b242fdbba671221cc9f73e35fa69e
Author: Stan Lagun <email address hidden>
Date: Fri Apr 24 16:03:27 2015 +0300

    Fixes env validation in k8s 0.15/API v1beta3

    for ENV variables parameter name was renamed from "key" to "name"

    Closes Bug: #1447948

    Change-Id: I2977800eaa8606c934ee33b907a68981753696c7

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

Bug attachments

Remote bug watches

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