[debian][kubernetes] Kubernetes Cluster failed to deploy on debian-based images

Bug #1453585 reported by Victor Ryzhenkin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
murano-apps
Fix Committed
High
Dmytro Dovbii
Liberty
Fix Committed
High
Dmytro Dovbii
Mitaka
Fix Committed
High
Dmytro Dovbii

Bug Description

Steps:
1. Use debian-based image with k8s and docker elements
2. Add any Docker app to k8s cluster (Use default settings for k8s)
3. Deploy environment

Actual result:

Deployment fails with error:

2015-05-10 18:13:44 - [murano.engine.system.agent.AgentException]: {'errorCode': 100, 'message': u'Script setupFlannel returned error code', 'extra': None, 'details': {u'stdout': None, u'stderr': u'Error: cannot sync with the cluster using endpoints http://127.0.0.1:4001, http://127.0.0.1:2379', u'exitCode': 2}, 'time': u'2015-05-10 18:13:41.503504'}
2015-05-10 18:13:44 - Error: {'errorCode': 100, 'message': u'Script setupFlannel returned error code', 'extra': None, 'details': {u'stdout': None, u'stderr': u'Error: cannot sync with the cluster using endpoints http://127.0.0.1:4001, http://127.0.0.1:2379', u'exitCode': 2}, 'time': u'2015-05-10 18:13:43.318419'}

Trace in murano-agent:

.py:69
2015-05-10 18:13:43.317 555 DEBUG application [-] 'setupFlannelMaster.sh' execution stderr: 'Error: cannot sync with the cluster using endpoints http://127.0.0.1:4001, http://127.0.0.1:2379
' run /opt/stack/venvs/murano-agent/local/lib/python2.7/site-packages/muranoagent/executors/application/__init__.py:73
2015-05-10 18:13:43.317 555 ERROR muranoagent.app [-] Error running execution plan
2015-05-10 18:13:43.317 555 TRACE muranoagent.app Traceback (most recent call last):
2015-05-10 18:13:43.317 555 TRACE muranoagent.app File "/opt/stack/venvs/murano-agent/local/lib/python2.7/site-packages/muranoagent/app.py", line 89, in _run
2015-05-10 18:13:43.317 555 TRACE muranoagent.app result = runner.run()
2015-05-10 18:13:43.317 555 TRACE muranoagent.app File "/opt/stack/venvs/murano-agent/local/lib/python2.7/site-packages/muranoagent/execution_plan_runner.py", line 39, in run
2015-05-10 18:13:43.317 555 TRACE muranoagent.app raise script_globals['__execution_plan_exception']
2015-05-10 18:13:43.317 555 TRACE muranoagent.app CustomException: Script setupFlannel returned error code
2015-05-10 18:13:43.317 555 TRACE muranoagent.app

This happened, because command "/opt/bin/etcdctl mk /coreos.com/network/config '{"Network":"10.200.0.0/16"}'" fails with error:

Error: cannot sync with the cluster using endpoints http://127.0.0.1:4001, http://127.0.0.1:2379

This happened, because service etcd was dead.

root@murano-bbbsui9irwhai5-kube-1-plm3e4y6qhus:~# service etcd status
● etcd.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

We can use systemctl daemon-reload and get status of etcd one more time

root@murano-bbbsui9irwhai5-kube-1-plm3e4y6qhus:~# systemctl daemon-reload
root@murano-bbbsui9irwhai5-kube-1-plm3e4y6qhus:~# service etcd status
● etcd.service - LSB: Start distributed key/value pair service
   Loaded: loaded (/etc/init.d/etcd)
   Active: inactive (dead)

And start it:

root@murano-bbbsui9irwhai5-kube-1-plm3e4y6qhus:~# service etcd start
root@murano-bbbsui9irwhai5-kube-1-plm3e4y6qhus:~# service etcd status
● etcd.service - LSB: Start distributed key/value pair service
   Loaded: loaded (/etc/init.d/etcd)
   Active: active (exited) since Sun 2015-05-10 18:23:50 UTC; 2s ago
  Process: 841 ExecStart=/etc/init.d/etcd start (code=exited, status=0/SUCCESS)

But nothing happened and process not running:

root@murano-bbbsui9irwhai5-kube-1-plm3e4y6qhus:~# ps aux | grep etcd
root 871 0.0 0.0 11120 1708 pts/0 R+ 18:25 0:00 grep etcd

And Flannel still can not sync.

root@murano-bbbsui9irwhai5-kube-1-plm3e4y6qhus:~# /opt/bin/etcdctl mk /coreos.com/network/config '{"Network":"10.200.0.0/16"}'
Error: cannot sync with the cluster using endpoints http://127.0.0.1:4001, http://127.0.0.1:2379

But if we use opts and binaries straight-forward we got working etcd service

http://paste.openstack.org/show/219143/ - etcd successful run

http://paste.openstack.org/show/219144/ - in other ssh executed ps aux | grep etcd

And after we up our services by hand, Flannel works fine:

http://paste.openstack.org/show/219149/

Changed in murano:
importance: Undecided → Critical
status: New → Confirmed
milestone: none → liberty-1
Changed in murano:
assignee: nobody → Alexey Deryugin (velovec)
Changed in murano:
status: Confirmed → Fix Released
Changed in murano:
status: Fix Released → Confirmed
affects: murano → murano-apps
Changed in murano-apps:
milestone: liberty-1 → none
milestone: none → liberty-1
Changed in murano-apps:
milestone: liberty-1 → liberty-2
Revision history for this message
smarta94 (smarta94) wrote :

Is there link to the fix for this issue anywhere?

Revision history for this message
Victor Ryzhenkin (vryzhenkin) wrote :

@smarta94, Unfortunately, we are not fixed this issue yet. =(
But you still can use ubuntu-based image, which hosted on apps.openstack.org

Changed in murano-apps:
milestone: liberty-2 → liberty-3
Changed in murano-apps:
milestone: liberty-3 → liberty-rc1
no longer affects: murano-apps/mitaka
Changed in murano-apps:
status: Confirmed → Won't Fix
no longer affects: murano-apps/liberty
no longer affects: murano-apps/mitaka
Changed in murano-apps:
milestone: liberty-rc1 → none
no longer affects: murano-apps/liberty
no longer affects: murano-apps/mitaka
Changed in murano-apps:
status: Won't Fix → Confirmed
Changed in murano-apps:
milestone: mitaka-2 → mitaka-3
Changed in murano-apps:
milestone: mitaka-3 → mitaka-rc1
Changed in murano-apps:
milestone: mitaka-rc1 → newton-1
Dmytro Dovbii (ddovbii)
Changed in murano-apps:
assignee: nobody → Dmytro Dovbii (ddovbii)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to murano-apps (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/344617

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/344618

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/344619

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/344620

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

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

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

commit 9e9ea1aeef4944306124552f911f2e37965a2f03
Author: Dmytro Dovbii <email address hidden>
Date: Tue Jul 5 18:11:57 2016 +0300

    [K8s] Add units to make k8s working on debian

    Partial-Bug: #1453585
    Change-Id: Iec45db413f0e88a68b435a13aa7a4b4a6fdfd818

tags: added: in-stable-kilo
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

commit 31210f3b900d993cae782ca2ac37695158fc688d
Author: Dmytro Dovbii <email address hidden>
Date: Mon Jul 11 11:00:22 2016 +0300

    [K8s] Update dib elements to support debian image

    Partial-Bug: #1453585
    Change-Id: I1a2eee8c163cc8c54b81d9ca5bad4b22f9ad41b6

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

commit 698680551c0e4864115b88ebbac91c53879652b6
Author: Dmytro Dovbii <email address hidden>
Date: Wed Jul 13 15:10:58 2016 +0300

    Add info about Debian image building to elements readme

    Partial-Bug: #1453585
    Change-Id: Ia0039aac4237a43d9c3e395319952f5ebde50e7a

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

commit 55e184c46638fad63ac45a008d447f3d16becf80
Author: Dmytro Dovbii <email address hidden>
Date: Fri Jul 15 13:59:31 2016 +0300

    [K8s] Delete hardcoded name of image

    Closes-Bug: #1453585
    Now app can use two images: debian 8 and ubuntu 14.04

    Change-Id: I360c2d02ad1ea726448a2338852d3c190cf1f3bb

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

Reviewed: https://review.openstack.org/344617
Committed: https://git.openstack.org/cgit/openstack/murano-apps/commit/?id=d34f93dbdbe4bf9b869dece4b19a93466719d2a4
Submitter: Jenkins
Branch: stable/liberty

commit d34f93dbdbe4bf9b869dece4b19a93466719d2a4
Author: Dmytro Dovbii <email address hidden>
Date: Tue Jul 5 18:11:57 2016 +0300

    [K8s] Add units to make k8s working on debian

    Partial-Bug: #1453585
    Change-Id: Iec45db413f0e88a68b435a13aa7a4b4a6fdfd818

tags: added: in-stable-liberty
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/344618
Committed: https://git.openstack.org/cgit/openstack/murano-apps/commit/?id=3acde4bd6f7ce41b68abe6ae48bdae95d31d913e
Submitter: Jenkins
Branch: stable/liberty

commit 3acde4bd6f7ce41b68abe6ae48bdae95d31d913e
Author: Dmytro Dovbii <email address hidden>
Date: Mon Jul 11 11:00:22 2016 +0300

    [K8s] Update dib elements to support debian image

    Partial-Bug: #1453585
    Change-Id: I1a2eee8c163cc8c54b81d9ca5bad4b22f9ad41b6

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/344619
Committed: https://git.openstack.org/cgit/openstack/murano-apps/commit/?id=fbe3605e32a940db22efa4c1a0ff2bb69f7e0c6f
Submitter: Jenkins
Branch: stable/liberty

commit fbe3605e32a940db22efa4c1a0ff2bb69f7e0c6f
Author: Dmytro Dovbii <email address hidden>
Date: Wed Jul 13 15:10:58 2016 +0300

    Add info about Debian image building to elements readme

    Partial-Bug: #1453585
    Change-Id: Ia0039aac4237a43d9c3e395319952f5ebde50e7a

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/344620
Committed: https://git.openstack.org/cgit/openstack/murano-apps/commit/?id=40d381f572909cce79ea50ed101c9fa0da7a2540
Submitter: Jenkins
Branch: stable/liberty

commit 40d381f572909cce79ea50ed101c9fa0da7a2540
Author: Dmytro Dovbii <email address hidden>
Date: Fri Jul 15 13:59:31 2016 +0300

    [K8s] Delete hardcoded name of image

    Closes-Bug: #1453585
    Now app can use two images: debian 8 and ubuntu 14.04

    Change-Id: I360c2d02ad1ea726448a2338852d3c190cf1f3bb

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

Reviewed: https://review.openstack.org/344606
Committed: https://git.openstack.org/cgit/openstack/murano-apps/commit/?id=cf7c3a3dfa8f9e893438ed0765488a0e808306c2
Submitter: Jenkins
Branch: stable/mitaka

commit cf7c3a3dfa8f9e893438ed0765488a0e808306c2
Author: Dmytro Dovbii <email address hidden>
Date: Mon Jul 11 11:00:22 2016 +0300

    [K8s] Update dib elements to support debian image

    Partial-Bug: #1453585
    Change-Id: I1a2eee8c163cc8c54b81d9ca5bad4b22f9ad41b6

tags: added: in-stable-mitaka
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/344607
Committed: https://git.openstack.org/cgit/openstack/murano-apps/commit/?id=2d98ccc1a4e3349877e95a90eb93cdafd7a41c49
Submitter: Jenkins
Branch: stable/mitaka

commit 2d98ccc1a4e3349877e95a90eb93cdafd7a41c49
Author: Dmytro Dovbii <email address hidden>
Date: Wed Jul 13 15:10:58 2016 +0300

    Add info about Debian image building to elements readme

    Partial-Bug: #1453585
    Change-Id: Ia0039aac4237a43d9c3e395319952f5ebde50e7a

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/344608
Committed: https://git.openstack.org/cgit/openstack/murano-apps/commit/?id=09122b1e229ff5aeb2403f3e3cb7045096801e27
Submitter: Jenkins
Branch: stable/mitaka

commit 09122b1e229ff5aeb2403f3e3cb7045096801e27
Author: Dmytro Dovbii <email address hidden>
Date: Fri Jul 15 13:59:31 2016 +0300

    [K8s] Delete hardcoded name of image

    Now app can use two images: debian 8 and ubuntu 14.04

    Closes-Bug: #1453585
    Change-Id: I360c2d02ad1ea726448a2338852d3c190cf1f3bb

Revision history for this message
Dmytro Dovbii (ddovbii) wrote :
Changed in murano-apps:
status: Confirmed → Fix Committed
tags: added: k8s
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.