lxd profile failure during upgrade-charm with more than 1 unit on a machine.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Medium
|
Heather Lanigan | ||
2.9 |
Fix Released
|
Medium
|
Heather Lanigan |
Bug Description
Using Juju 2.8.6
Deploy CK 1.18+ck2 [1] where kubernetes-master goes on a container. I did -n 3 with 3 different bare metal machines for kubernetes-master.
Check your lxd profile on the metal nodes hosting kubernetes-master (I deployed from a local charm, hense profile is -0):
$ sudo lxc profile list
+------
| NAME | USED BY |
+------
| default | 6 |
+------
| juju-kubernetes
+------
ubuntu@node02:~$ sudo lxc profile show juju-kubernetes
config:
linux.
raw.lxc: |
lxc.
lxc.
lxc.
lxc.cap.drop=
security.nesting: "true"
security.
description: ""
devices:
aadisable:
path: /dev/kmsg
source: /dev/kmsg
type: unix-char
name: juju-kubernetes
used_by:
- /1.0/containers
Upgrade the charm:
$ juju upgrade-charm kubernetes-master --switch cs:~containers/
When upgrade has been completed, look at the lxd-profile again:
ubuntu@node02:~$ sudo lxc profile list
+------
| NAME | USED BY |
+------
| default | 6 |
+------
| juju-kubernetes
+------
ubuntu@node02:~$ sudo lxc profile show juju-kubernetes
config: {}
description: ""
devices: {}
name: juju-kubernetes
used_by:
- /1.0/containers
[1] https:/
tags: | added: sts |
Changed in juju: | |
milestone: | none → 3.0.0 |
milestone: | 3.0.0 → none |
importance: | High → Medium |
Changed in juju: | |
assignee: | nobody → Heather Lanigan (hmlanigan) |
status: | Triaged → In Progress |
summary: |
- kubernetes-master charm lxc profile not getting updated with the correct - configuration + lxd profile failure during upgrade-charm with more than 1 unit on a + machine. |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Confirmed.
I can reproduce with the charmed- kubernetes- 485 bundle and upgrading the kubernetes-master or kubernetes-worker charms.
I cannot reproduce with a local lxd profile test charm. Including the charm upgrade part. Nor can I reproduce with the cs:~juju- qa/bionic/ lxd-profile- subordinate charm. I started with revision 0 and upgraded to the current revision, 2.