Kubectl get pods timeout with openstack-integrator
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Openstack Integrator Charm |
Fix Released
|
Medium
|
Stamatis Katsaounis |
Bug Description
Hi all,
During the last step of installation with openstack-
While everything is active and in ready state, the kube-master units are in waiting for kube-system pods to be ready.
I tried to troubleshoot and I found out that the cli call is receiving timeout because it uses /root/.kube/config explicitly. If I delete this part in file charm/lib/
This is the offending line:
command = ['kubectl', '--kubeconfig=' + kubeclientconfi
And this is my modified working line:
command = ['kubectl'] + list(args)
PS. I am using the default options of charmed-kubernetes bundle.yaml.
Kind regards,
Stamatis
Changed in charm-kubernetes-master: | |
importance: | Undecided → High |
Changed in charm-openstack-integrator: | |
importance: | Undecided → High |
Changed in charm-kubernetes-master: | |
status: | Confirmed → Triaged |
Changed in charm-openstack-integrator: | |
status: | New → Triaged |
Changed in charm-kubernetes-master: | |
importance: | High → Medium |
Changed in charm-openstack-integrator: | |
importance: | High → Medium |
tags: | added: review-needed |
Changed in charm-openstack-integrator: | |
status: | Triaged → In Progress |
Changed in charm-openstack-integrator: | |
assignee: | nobody → Stamatis Katsaounis (skatsaounis) |
tags: | removed: review-needed |
Changed in charm-openstack-integrator: | |
status: | In Progress → Fix Committed |
milestone: | none → 1.19 |
no longer affects: | charm-kubernetes-master |
Changed in charm-openstack-integrator: | |
status: | Fix Committed → Fix Released |
An update to the original report:
It seems that .kube/config does not work at all. Not only when juju runs kubectl commands but also when the user tries to use kubectl. Something inside the config is wrong. Notice that without openstack- integration (only the charmed-kubernetew bundle.yaml) everything is working as expected.