It seems like juju implicitly retried creating an lxd machine after a failed configuration, leading to `machine 5/lxd/6 failed to start: UNIQUE constraint failed: containers.name`.
We expected the LXD container to boot up and proceed with the layer deployment, however it failed to start and blocked the rest of the process.
Crashdump:
```
672078e3-269d-4513-a881-57e30b79a8f3/bcache-tuning_5/var/log/juju/machine-5.log
116:2021-10-01 05:21:50 INFO juju.container-setup container_initialisation.go:110 initial container setup with ids: [5/lxd/6 5/lxd/0 5/lxd/1 5/lxd/2 5/lxd/3 5/lxd/4 5/lxd/5]
204:2021-10-01 05:22:06 INFO juju.worker.provisioner provisioner_task.go:405 found machine pending provisioning id:5/lxd/6, details:5/lxd/6
368:2021-10-01 05:29:58 DEBUG juju.container.broker.lxd broker.go:45 using multi-bridge networking for container "5/lxd/6"
675:2021-10-01 05:35:30 WARNING juju.worker.provisioner provisioner_task.go:1114 machine 5/lxd/6 failed to start: UNIQUE constraint failed: containers.name
676:2021-10-01 05:35:30 WARNING juju.worker.provisioner provisioner_task.go:1153 failed to start machine 5/lxd/6 (UNIQUE constraint failed: containers.name), retrying in 10s (10 more attempts)
794:2021-10-01 05:48:34 DEBUG juju.container.broker.lxd broker.go:45 using multi-bridge networking for container "5/lxd/6"
826:2021-10-01 05:48:56 WARNING juju.worker.provisioner provisioner_task.go:1114 machine 5/lxd/6 failed to start: Container 'juju-5bcbde-5-lxd-6' already exists
827:2021-10-01 05:48:56 WARNING juju.worker.provisioner provisioner_task.go:1153 failed to start machine 5/lxd/6 (Container 'juju-5bcbde-5-lxd-6' already exists), retrying in 10s (9 more attempts)
940:2021-10-01 05:54:15 DEBUG juju.container.broker.lxd broker.go:45 using multi-bridge networking for container "5/lxd/6"
971:2021-10-01 05:54:25 WARNING juju.worker.provisioner provisioner_task.go:1114 machine 5/lxd/6 failed to start: Container 'juju-5bcbde-5-lxd-6' already exists
972:2021-10-01 05:54:25 WARNING juju.worker.provisioner provisioner_task.go:1153 failed to start machine 5/lxd/6 (Container 'juju-5bcbde-5-lxd-6' already exists), retrying in 10s (8 more attempts)
1036:2021-10-01 05:56:00 DEBUG juju.container.broker.lxd broker.go:45 using multi-bridge networking for container "5/lxd/6"
1078:2021-10-01 05:56:22 WARNING juju.worker.provisioner provisioner_task.go:1114 machine 5/lxd/6 failed to start: Container 'juju-5bcbde-5-lxd-6' already exists
1079:2021-10-01 05:56:22 WARNING juju.worker.provisioner provisioner_task.go:1153 failed to start machine 5/lxd/6 (Container 'juju-5bcbde-5-lxd-6' already exists), retrying in 10s (7 more attempts)
1137:2021-10-01 05:57:45 DEBUG juju.container.broker.lxd broker.go:45 using multi-bridge networking for container "5/lxd/6"
1200:2021-10-01 05:57:58 WARNING juju.worker.provisioner provisioner_task.go:1114 machine 5/lxd/6 failed to start: Container 'juju-5bcbde-5-lxd-6' already exists
1201:2021-10-01 05:57:58 WARNING juju.worker.provisioner provisioner_task.go:1153 failed to start machine 5/lxd/6 (Container 'juju-5bcbde-5-lxd-6' already exists), retrying in 10s (6 more attempts)
1339:2021-10-01 05:59:13 DEBUG juju.container.broker.lxd broker.go:45 using multi-bridge networking for container "5/lxd/6"
1390:2021-10-01 05:59:32 WARNING juju.worker.provisioner provisioner_task.go:1114 machine 5/lxd/6 failed to start: Container 'juju-5bcbde-5-lxd-6' already exists
1391:2021-10-01 05:59:32 WARNING juju.worker.provisioner provisioner_task.go:1153 failed to start machine 5/lxd/6 (Container 'juju-5bcbde-5-lxd-6' already exists), retrying in 10s (5 more attempts)
1495:2021-10-01 06:00:48 DEBUG juju.container.broker.lxd broker.go:45 using multi-bridge networking for container "5/lxd/6"
1560:2021-10-01 06:01:04 WARNING juju.worker.provisioner provisioner_task.go:1114 machine 5/lxd/6 failed to start: Container 'juju-5bcbde-5-lxd-6' already exists
1561:2021-10-01 06:01:04 WARNING juju.worker.provisioner provisioner_task.go:1153 failed to start machine 5/lxd/6 (Container 'juju-5bcbde-5-lxd-6' already exists), retrying in 10s (4 more attempts)
1666:2021-10-01 06:02:11 DEBUG juju.container.broker.lxd broker.go:45 using multi-bridge networking for container "5/lxd/6"
1725:2021-10-01 06:02:25 WARNING juju.worker.provisioner provisioner_task.go:1114 machine 5/lxd/6 failed to start: Container 'juju-5bcbde-5-lxd-6' already exists
1726:2021-10-01 06:02:25 WARNING juju.worker.provisioner provisioner_task.go:1153 failed to start machine 5/lxd/6 (Container 'juju-5bcbde-5-lxd-6' already exists), retrying in 10s (3 more attempts)
1866:2021-10-01 06:03:39 DEBUG juju.container.broker.lxd broker.go:45 using multi-bridge networking for container "5/lxd/6"
1912:2021-10-01 06:03:58 WARNING juju.worker.provisioner provisioner_task.go:1114 machine 5/lxd/6 failed to start: Container 'juju-5bcbde-5-lxd-6' already exists
1913:2021-10-01 06:03:58 WARNING juju.worker.provisioner provisioner_task.go:1153 failed to start machine 5/lxd/6 (Container 'juju-5bcbde-5-lxd-6' already exists), retrying in 10s (2 more attempts)
2165:2021-10-01 06:05:47 DEBUG juju.container.broker.lxd broker.go:45 using multi-bridge networking for container "5/lxd/6"
2271:2021-10-01 06:06:11 WARNING juju.worker.provisioner provisioner_task.go:1114 machine 5/lxd/6 failed to start: Container 'juju-5bcbde-5-lxd-6' already exists
2272:2021-10-01 06:06:11 WARNING juju.worker.provisioner provisioner_task.go:1153 failed to start machine 5/lxd/6 (Container 'juju-5bcbde-5-lxd-6' already exists), retrying in 10s (1 more attempts)
2520:2021-10-01 06:08:44 DEBUG juju.container.broker.lxd broker.go:45 using multi-bridge networking for container "5/lxd/6"
2595:2021-10-01 06:09:07 ERROR juju.worker.provisioner provisioner_task.go:977 cannot start instance for machine "5/lxd/6": Container 'juju-5bcbde-5-lxd-6' already exists
```
Path to the run: https://solutions.qa.canonical.com/testruns/testRun/7ba33504-e4a3-4970-9071-c4968b0f3407
Path to the artifacts: https://oil-jenkins.canonical.com/artifacts/7ba33504-e4a3-4970-9071-c4968b0f3407/generated/generated/openstack/juju-crashdump-openstack-2021-10-01-06.39.57.tar.gz
Path to build: https://oil-jenkins.canonical.com/job/fce_build/12561//console
Failed LXD machine: Machine5/lxd/6
All occurrences can be found here:
https://solutions.qa.canonical.com/bugs/bugs/bug/1945813
LXD appears to have been left in a dirty state since its trying to either create a container when one was already created (but perhaps LXD error'd on the first attempt) or there was a container leftover that wasn't cleaned up from a previous run. Will have to dig deeper.