Upgrade of principal charm with relation to subordinate with LXD profile fails with ERROR Error: Requested profile doesn't exist

Bug #1805567 reported by Frode Nordahl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Heather Lanigan

Bug Description

It appears that the above message always is presented to the user when upgrading a principal charm related to a subordinate charm which has a LXD profile.

As a result the machine holding the principal charm is put into a error state.

Environment:
$ juju --version
2.5-beta2-bionic-amd64

$ snap info juju | grep installed:
installed: 2.5-beta2+develop-294ca9f (5992) 70MB classic

Steps to reproduce:
$ juju bootstrap --no-gui localhost
$ charm pull ubuntu
$ juju deploy ./ubuntu
$ juju deploy neutron-openvswitch
$ juju add-relation ubuntu:juju-info neutron-openvswitch:juju-info
< wait for deployment to complete, neutron-openvswitch will be blocked on missing relations but that is not important for the test >
$ juju upgrade-charm ubuntu --path ./ubuntu
Added charm "local:bionic/ubuntu-1" to the model.
ERROR Error: Requested profile 'juju-default-ubuntu-1' doesn't exist
$ juju status
Model Controller Cloud/Region Version SLA Timestamp
default localhost-localhost localhost/localhost 2.5-beta2 unsupported 06:04:02+01:00

App Version Status Scale Charm Store Rev OS Notes
neutron-openvswitch 12.0.5 blocked 1 neutron-openvswitch jujucharms 255 ubuntu
ubuntu 18.04 active 1 ubuntu local 1 ubuntu

Unit Workload Agent Machine Public address Ports Message
ubuntu/0* active idle 0 10.130.236.177 ready
  neutron-openvswitch/0* blocked idle 10.130.236.177 Missing relations: messaging

Machine State DNS Inst id Series AZ Message
0 error 10.130.236.177 juju-7284c9-0 bionic cannot upgrade machine's lxd profile: Requested profile 'juju-default-ubuntu-1' doesn't exist

Revision history for this message
Frode Nordahl (fnordahl) wrote :

Same issue with MaaS provider:

$ juju status
Model Controller Cloud/Region Version SLA Timestamp
default maas maas 2.5-beta2 unsupported 06:47:01+01:00

App Version Status Scale Charm Store Rev OS Notes
neutron-openvswitch 12.0.5 blocked 1 neutron-openvswitch jujucharms 255 ubuntu
ubuntu 18.04 active 1 ubuntu local 0 ubuntu

Unit Workload Agent Machine Public address Ports Message
ubuntu/0* active idle 0/lxd/0 172.16.122.252 ready
  neutron-openvswitch/0* blocked idle 172.16.122.252 Missing relations: messaging

Machine State DNS Inst id Series AZ Message
0 started 172.16.122.251 rkxagy bionic default Deployed
0/lxd/0 started 172.16.122.252 juju-418942-0-lxd-0 bionic default Container started

$ juju upgrade-charm ubuntu --path ./ubuntu
Added charm "local:bionic/ubuntu-1" to the model.
ERROR Error: Profile doesn't exist: juju-default-ubuntu-1

$ juju status
Model Controller Cloud/Region Version SLA Timestamp
default maas maas 2.5-beta2 unsupported 06:48:34+01:00

App Version Status Scale Charm Store Rev OS Notes
neutron-openvswitch 12.0.5 blocked 1 neutron-openvswitch jujucharms 255 ubuntu
ubuntu 18.04 active 1 ubuntu local 1 ubuntu

Unit Workload Agent Machine Public address Ports Message
ubuntu/0* active idle 0/lxd/0 172.16.122.252 ready
  neutron-openvswitch/0* blocked idle 172.16.122.252 Missing relations: messaging

Machine State DNS Inst id Series AZ Message
0 started 172.16.122.251 rkxagy bionic default Deployed
0/lxd/0 error 172.16.122.252 juju-418942-0-lxd-0 bionic default cannot upgrade machine's lxd profile: Profile doesn't exist: juju-default-ubuntu-1

Revision history for this message
Frode Nordahl (fnordahl) wrote :
Download full text (3.2 KiB)

The lxc profiles look like this prior to upgrade:
$ juju ssh 0
$ sudo lxc profile list
+--------------------------------------+---------+
| NAME | USED BY |
+--------------------------------------+---------+
| default | 1 |
+--------------------------------------+---------+
| juju-default-neutron-openvswitch-255 | 1 |
+--------------------------------------+---------+

FTR same situation on OpenStack provider deploy:
$ juju status
Model Controller Cloud/Region Version SLA Timestamp
default fnordahl-serverstack serverstack/serverstack 2.5-beta2 unsupported 06:00:46Z

App Version Status Scale Charm Store Rev OS Notes
neutron-openvswitch 12.0.5 blocked 1 neutron-openvswitch jujucharms 255 ubuntu
ubuntu 18.04 active 1 ubuntu local 0 ubuntu

Unit Workload Agent Machine Public address Ports Message
ubuntu/0* active idle 0/lxd/0 252.0.19.53 ready
  neutron-openvswitch/0* blocked idle 252.0.19.53 Missing relations: messaging

Machine State DNS Inst id Series AZ Message
0 started 10.5.0.19 1ed152a0-ab27-4da7-a3b1-c54b206d90e5 bionic nova ACTIVE
0/lxd/0 started 252.0.19.53 juju-b20a9a-0-lxd-0 bionic nova Container started

$ juju upgrade-charm ubuntu --path ./ubuntu
Added charm "local:bionic/ubuntu-1" to the model.
ERROR Error: Profile doesn't exist: juju-default-ubuntu-1
$ juju models
Controller: fnordahl-serverstack

Model Cloud/Region Status Machines Cores Access Last connection
controller serverstack/serverstack available 1 4 admin just now
default* serverstack/serverstack available 2 2 admin 16 seconds ago
zaza-553b3e980f80 serverstack/serverstack available 11 26 admin 11 minutes ago

ubuntu@test:~$ juju status
Model Controller Cloud/Region Version SLA Timestamp
default fnordahl-serverstack serverstack/serverstack 2.5-beta2 unsupported 06:01:14Z

App Version Status Scale Charm Store Rev OS Notes
neutron-openvswitch 12.0.5 blocked 1 neutron-openvswitch jujucharms 255 ubuntu
ubuntu 18.04 active 1 ubuntu local 1 ubuntu

Unit Workload Agent Machine Public address Ports Message
ubuntu/0* active executing 0/lxd/0 252.0.19.53 (config-changed) ready
  neutron-openvswitch/0* blocked idle 252.0.19.53 Missing relations: messaging

Machine State DNS Inst id Series AZ Message
0 started 10.5.0.19 1ed152a0-ab27-4da7-a3b1-c54b206d90e5 bionic nova ACTIVE
0/lxd/0 error 252.0.19.53 juju-b20a9a-0-lxd-0 bionic nova cannot upgrade machine's lxd profile: Profi...

Read more...

Changed in juju:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Heather Lanigan (hmlanigan)
milestone: none → 2.5-beta2
Ian Booth (wallyworld)
Changed in juju:
milestone: 2.5-beta2 → 2.5-beta3
Changed in juju:
milestone: 2.5-beta3 → 2.5-rc1
Revision history for this message
Heather Lanigan (hmlanigan) wrote :
Changed in juju:
status: Triaged → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
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.