lxd profile written to wrong machine

Bug #1958464 reported by Heather Lanigan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
High
Unassigned

Bug Description

With the LXD provider, an LXD profile is written to the wrong machine when deploying inside an lxd container on an lxd juju machine.

$ juju add-model ovncentral
$ juju deploy cs:ovn-central -n 2 --to lxd,lxd
$ lxc profile list | grep ovncentral
| juju-ovncentral | | 5 | |
| juju-ovncentral-ovn-central-15 | | 0 |

$ juju ssh 0 -- sudo lxc profile list
+--------------------------------+---------------------+---------+
| NAME | DESCRIPTION | USED BY |
+--------------------------------+---------------------+---------+
| default | Default LXD profile | 1 |
+--------------------------------+---------------------+---------+
| juju-ovncentral-ovn-central-15 | | 1 |
+--------------------------------+---------------------+---------+
$ juju ssh 1 -- sudo lxc profile list
+--------------------------------+---------------------+---------+
| NAME | DESCRIPTION | USED BY |
+--------------------------------+---------------------+---------+
| default | Default LXD profile | 1 |
+--------------------------------+---------------------+---------+
| juju-ovncentral-ovn-central-15 | | 1 |
+--------------------------------+---------------------+---------+

When attempting to recreate 1957942 bootstrapped to localhost:
4/lxd/9 down pending focal cannot write lxd profiles: Error inserting "juju-seven-ovn-central-15" into database: The profile already exists

There was a lock and checks to prevent the above from happening. Not sure if it's related.

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.