During the deploy of a bundle with 3 kubernetes-master one unit goes to error state when trying to execute the upgrade-charm hook
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Incomplete
|
Undecided
|
Unassigned | ||
Kubernetes Control Plane Charm |
Fix Released
|
Medium
|
Robert Gildein |
Bug Description
kubernetes-master revision: 700
juju version 2.6.5 xenial
When deploying a bundle with 3 kubernetes master the installation of one of the three units fails with the following error:
2019-07-10 12:08:41 DEBUG upgrade-charm Traceback (most recent call last):
2019-07-10 12:08:41 DEBUG upgrade-charm File "/var/lib/
2019-07-10 12:08:41 DEBUG upgrade-charm main()
2019-07-10 12:08:41 DEBUG upgrade-charm File "/var/lib/
2019-07-10 12:08:41 DEBUG upgrade-charm bus.dispatch(
2019-07-10 12:08:41 DEBUG upgrade-charm File "/var/lib/
2019-07-10 12:08:41 DEBUG upgrade-charm _invoke(
2019-07-10 12:08:41 DEBUG upgrade-charm File "/var/lib/
2019-07-10 12:08:41 DEBUG upgrade-charm handler.invoke()
2019-07-10 12:08:41 DEBUG upgrade-charm File "/var/lib/
2019-07-10 12:08:41 DEBUG upgrade-charm self._action(*args)
2019-07-10 12:08:41 DEBUG upgrade-charm File "/var/lib/
2019-07-10 12:08:41 DEBUG upgrade-charm update_
2019-07-10 12:08:41 DEBUG upgrade-charm File "/var/lib/
2019-07-10 12:08:41 DEBUG upgrade-charm send_data()
2019-07-10 12:08:41 DEBUG upgrade-charm File "/var/lib/
2019-07-10 12:08:41 DEBUG upgrade-charm ingress_ip = get_ingress_
2019-07-10 12:08:41 DEBUG upgrade-charm AttributeError: 'NoneType' object has no attribute 'endpoint_name'
2019-07-10 12:08:41 ERROR juju.worker.
It is trying to execute the upgrade-charm hook that is never executed on the other two units.
Changed in charm-kubernetes-master: | |
importance: | Undecided → Medium |
status: | Confirmed → Triaged |
Changed in charm-kubernetes-master: | |
status: | Triaged → In Progress |
assignee: | nobody → Robert Gildein (rgildein) |
Changed in charm-kubernetes-master: | |
milestone: | none → 1.20+ck1 |
milestone: | 1.20+ck1 → none |
Changed in charm-kubernetes-master: | |
status: | In Progress → Fix Committed |
milestone: | none → 1.20+ck1 |
tags: | removed: review-needed |
Changed in charm-kubernetes-master: | |
status: | Fix Committed → Fix Released |
Adding juju to get their input.
We have the following situation: one of the kubernetes-master units fail with upgrade-charm hook failed. That hook is called right after install on that unit.
None of the units run that hook.
Looking more deeper with debug-hooks, we've found out that .unit-state.db never gets populated on this unit, whereas other 2 units get all their relation info into kv table. That causes this specific unit to fail.