Kubernetes Dashboard is not working.

Bug #1740896 reported by Syed Armani
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Magnum
New
Undecided
Unassigned

Bug Description

OpenStack release: Pike
Deployed using OpenStack-Ansible playbooks.
Host OS: Ubuntu 16.04
Glance image used for Magnum cluster: Fedora

# systemctl status kube-dash --> http://paste.openstack.org/show/629625/

# kubectl get pods --all-namespaces --> http://paste.openstack.org/show/636368/

# atomic containers list --no-trunc --> http://paste.openstack.org/show/636375/

# kubectl describe pods --namespace=kube-system kubernetes-dashboard --> http://paste.openstack.org/show/636376/

# kubectl get pods --all-namespaces --> http://paste.openstack.org/show/636378/

Syed Armani (dce3062)
description: updated
description: updated
Revision history for this message
Syed Armani (dce3062) wrote :

Update: After removing the livenessProbe as suggested by ykarel on irc, the dashboard pod has stopped crashing. This is how it looks now: http://paste.openstack.org/show/640751/

When trying to access the K8 dashboard; the browser throws this error: http://paste.openstack.org/show/639201/

# kubectl --namespace=kube-system get ep kubernetes-dashboard -- http://paste.openstack.org/show/640754/

The systemd daemon for dashboard refuse to start perhaps because of its type i.e. oneshot. The "kube-dash.service" and "kube-system-namespace.service" are in dead and inactive state.

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

I also observed that at L106[1], there is no kube-dashboard deployment, this should be changed to "kubernetes-dashboard" in /usr/local/bin/kube-dash

[1] https://github.com/openstack/magnum/blob/stable/pike/magnum/drivers/common/templates/kubernetes/fragments/kube-dashboard-service.sh#L106

Revision history for this message
Syed Armani (dce3062) wrote :
Download full text (10.3 KiB)

The following output is from a devstack Pike deployment:

[root@kubernetes-iwuczy6he3eq-master-0 log]# systemctl -a | grep kube | grep dead
  kube-dash.service loaded inactive dead kube-dash.service
  kube-system-namespace.service loaded inactive dead kube-system-namespace.service

[root@kubernetes-iwuczy6he3eq-master-0 log]# systemctl -a | grep kube | grep failed
● kube-controller-manager.service loaded failed failed kubernetes-controller-manager

[root@kubernetes-iwuczy6he3eq-master-0 log]# tail -n200 cloud-init-output.log
Cloud-init v. 0.7.9 running 'init-local' at Thu, 11 Jan 2018 13:33:52 +0000. Up 25.70 seconds.
Cloud-init v. 0.7.9 running 'init' at Thu, 11 Jan 2018 13:33:57 +0000. Up 31.43 seconds.
ci-info: +++++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++++
ci-info: +--------+------+-----------+---------------+-------+-------------------+
ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |
ci-info: +--------+------+-----------+---------------+-------+-------------------+
ci-info: | eth0: | True | 10.0.0.3 | 255.255.255.0 | . | fa:16:3e:e3:e7:76 |
ci-info: | eth0: | True | . | . | d | fa:16:3e:e3:e7:76 |
ci-info: | lo: | True | 127.0.0.1 | 255.0.0.0 | . | . |
ci-info: | lo: | True | . | . | d | . |
ci-info: +--------+------+-----------+---------------+-------+-------------------+
ci-info: ++++++++++++++++++++++++++++++Route IPv4 info+++++++++++++++++++++++++++++++
ci-info: +-------+-----------------+----------+-----------------+-----------+-------+
ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags |
ci-info: +-------+-----------------+----------+-----------------+-----------+-------+
ci-info: | 0 | 0.0.0.0 | 10.0.0.1 | 0.0.0.0 | eth0 | UG |
ci-info: | 1 | 10.0.0.0 | 0.0.0.0 | 255.255.255.0 | eth0 | U |
ci-info: | 2 | 169.254.169.254 | 10.0.0.1 | 255.255.255.255 | eth0 | UGH |
ci-info: +-------+-----------------+----------+-----------------+-----------+-------+
Cloud-init v. 0.7.9 running 'modules:config' at Thu, 11 Jan 2018 13:34:06 +0000. Up 39.97 seconds.
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 1417 100 1417 0 0 1211 0 0:00:01 0:00:01 --:--:-- 1216
Generating RSA private key, 4096 bit long modulus
..........................................................................................................................................++
...................................................................................................................................++
unable to write 'random state'
e is 65537 (0x010001)
  % Total % Received % Xferd Average Speed ...

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to magnum (stable/pike)

Related fix proposed to branch: stable/pike
Review: https://review.openstack.org/533346

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

Related fix proposed to branch: stable/pike
Review: https://review.openstack.org/533529

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on magnum (stable/pike)

Change abandoned by yatin (<email address hidden>) on branch: stable/pike
Review: https://review.openstack.org/533346
Reason: Fixed here: https://review.openstack.org/#/c/533529/

Revision history for this message
yatin (yatinkarel) wrote :

<<< Update: After removing the livenessProbe as suggested by ykarel on irc, the dashboard pod has stopped crashing
>>> This was just to check how kubectl apply behaves without liveliness.

<<< The systemd daemon for dashboard refuse to start perhaps because of its type i.e. oneshot. The "kube-dash.service" and "kube-system-namespace.service" are in dead and inactive state.

kube-dash systemd service is just to create service and deployment so it's dead state is expected.

<<< kubectl --namespace=kube-system get ep kubernetes-dashboard -- http://paste.openstack.org/show/640754/
>>> Here endpoint is missing. This is the issue that needs to be fixed.

<<< I also observed that at L106[1], there is no kube-dashboard deployment, this should be changed to "kubernetes-dashboard" in /usr/local/bin/kube-dash

[1] https://github.com/openstack/magnum/blob/stable/pike/magnum/drivers/common/templates/kubernetes/fragments/kube-dashboard-service.sh#L106

>> Yes, it's wrong

Was not able to reproduce it on devstack stable/pike. Trying to setup a osa setup to look into it.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to magnum (master)

Reviewed: https://review.openstack.org/531690
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=2a60e56d412c07317fbf3b82de691574d8e7e77b
Submitter: Zuul
Branch: master

commit 2a60e56d412c07317fbf3b82de691574d8e7e77b
Author: Syed Armani <email address hidden>
Date: Mon Jan 8 14:13:58 2018 +0530

    Change the name of kubernetes-dashboard deployment.

    Related-Bug: #1740896

    Change-Id: I467ec56cfeac34021a761dd2ebf0e7611052a352

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to magnum (stable/pike)

Reviewed: https://review.openstack.org/533529
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=798180361fb317ef478fa603a0bd310c1583b47b
Submitter: Zuul
Branch: stable/pike

commit 798180361fb317ef478fa603a0bd310c1583b47b
Author: Syed Armani <email address hidden>
Date: Mon Jan 8 14:13:58 2018 +0530

    Change the name of kubernetes-dashboard deployment in Pike.

    Related-Bug: #1740896

    Change-Id: I467ec56cfeac34021a761dd2ebf0e7611052a352
    (cherry picked from commit 2a60e56d412c07317fbf3b82de691574d8e7e77b)

tags: added: in-stable-pike
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.