magnum create k8s cluster success but can't access dashboard

Bug #1700039 reported by Chiawei Xie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Invalid
Undecided
Unassigned

Bug Description

I follow this documentation to install magnum in OpenStack ocata.
https://docs.openstack.org/project-install-guide/container-infrastructure-management/ocata/install-ubuntu.html

I create k8s cluster success, and use "kubectl -n kube-system get pod" command,
this is output.

NAME READY STATUS RESTARTS AGE
kube-controller-manager-192.168.0.7 1/1 Running 0 23h
kube-proxy-192.168.0.7 1/1 Running 0 23h
kube-proxy-k8-avkls3iuyj-0-vm6imx37ihe5-kube-minion-7yoe5onyp7ef 1/1 Running 0 23h
kube-scheduler-192.168.0.7 1/1 Running 0 23h
kube-ui-v4-69ls1 1/1 Running 0 23h

we can see kube-ui not kube-dashboard.
I found this blueprint (Add kube dashboard and remove kube ui) https://review.openstack.org/#/c/441046/
But in Ocata don't have this change.

So I follow this change to update code ,and create cluster again.
But cluster create failed, I check magnum-conductor log , It has ERROR message(In attachment)
Does anybody know How can I do?

Revision history for this message
Chiawei Xie (dommgifer) wrote :
description: updated
Revision history for this message
Spyros Trigazis (strigazi) wrote :

You picket also the change to add docker_volume_type. That is the reason the conductor fails.

You have two options:
Option 1: Revert the code to ocata without the cherry-picked change and then create the kubernetes dashboard manually. You can either take the manifests from here [1] or here [2].

Option 2: To fix you modified ocata version you could remove these lines [3][4] and add default: "" in [5].

[1] http://git.openstack.org/cgit/openstack/magnum/tree/magnum/drivers/common/templates/kubernetes/fragments/kube-dashboard-service.sh
[2] https://github.com/kubernetes/dashboard
[3] http://git.openstack.org/cgit/openstack/magnum/tree/magnum/drivers/k8s_fedora_atomic_v1/templates/kubemaster.yaml#n558
[4] http://git.openstack.org/cgit/openstack/magnum/tree/magnum/drivers/k8s_fedora_atomic_v1/templates/kubeminion.yaml#n443
[5] http://git.openstack.org/cgit/openstack/magnum/tree/magnum/drivers/k8s_fedora_atomic_v1/templates/kubecluster.yaml#n144

Revision history for this message
Spyros Trigazis (strigazi) wrote :

Closing as invalid, the reporter modified the stable branch unsuccessfully. Ocata is working properly.

@dommgifer Feel free to ask more questions on #openstack-containers on Freenode or the OpenStack ML using [magnum] in the subject.

Changed in magnum:
status: New → Invalid
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.