do not apply lxd profiles to (lxd) manual machine in a lxdcloud model
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
Undecided
|
Unassigned |
Bug Description
After adding manual machines to a model in a LXD cloud, it tries to upgrade their profile:
~$ juju status
Model Controller Cloud/Region Version SLA Timestamp
maas localhost-localhost localhost/localhost 2.8.0 unsupported 11:12:14+02:00
App Version Status Scale Charm Store Rev OS Notes
postgresql 12.2 active 1 postgresql jujucharms 207 ubuntu
rackd 20.04 active 2 ubuntu jujucharms 15 ubuntu
regiond 20.04 active 2 ubuntu jujucharms 15 ubuntu
Unit Workload Agent Machine Public address Ports Message
postgresql/0* active idle 0 10.169.193.155 5432/tcp Live master (12.2)
rackd/0 active idle 3 192.168.122.2 ready
rackd/1* active idle 4 192.168.122.3 ready
regiond/0 active idle 1 192.168.2.52 ready
regiond/1* active idle 2 192.168.2.53 ready
Machine State DNS Inst id Series AZ Message
0 started 10.169.193.155 juju-73e0a6-0 focal Running
1 error 192.168.2.52 manual:192.168.2.52 focal cannot upgrade machine's lxd profile: 1: not found
2 error 192.168.2.53 manual:192.168.2.53 focal cannot upgrade machine's lxd profile: 2: not found
3 error 192.168.122.2 manual:
4 error 192.168.122.3 manual:
These are LXDs, but manually added to be able to use a specific LXD profile.
Machine 0 is using the default profile, the others use custom profiles to manage network connections.
afaik, there is no way to specify profiles to deploy charms (except very specific cases as described in https:/
A similar issue was reported in lp:1883178. Juju was fixed to not update profiles for KVM manual machines, I'd find it sensible to not try to update the profile for any manual machine.
The fix for 1883178 was to disallow profiles for any manual machine. It was in 2.7.7 and will be released with 2.8.1.
@rillettes, please check if this issue still occurs with 2.7.7 or the 2.8/candidate snap (2.8.1)