LXD vm compose fails with - This "instances" entry already exists
Bug #2028284 reported by
Marian Gasparovic
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Committed
|
High
|
Alexsander de Souza | ||
3.3 |
Fix Committed
|
High
|
Alexsander de Souza | ||
3.4 |
Fix Committed
|
High
|
Alexsander de Souza |
Bug Description
Using LXD VMs, we are hitting
2023-07-19-22:17:36 root DEBUG [localhost]: maas root vm-host compose 1 hostname=
2023-07-19-22:17:42 root ERROR [localhost] Command failed: maas root vm-host compose 1 hostname=
2023-07-19-22:17:42 root ERROR 1[localhost] STDOUT follows:
Unable to compose machine because: Failed talking to pod: Failed creating instance record: Add instance info to the database: This "instances" entry already exists
MAAS logs
Related branches
~alexsander-souza/maas:lp2028284_to_3_4
- Alberto Donato: Approve
- MAAS Lander: Approve
-
Diff: 130 lines (+63/-15)3 files modifiedsrc/maasserver/models/bmc.py (+23/-11)
src/maasserver/models/tests/test_bmc.py (+34/-0)
src/provisioningserver/drivers/pod/__init__.py (+6/-4)
~alexsander-souza/maas:lp2028284_to_3_3
- Adam Collard (community): Approve
- MAAS Lander: Approve
-
Diff: 130 lines (+63/-15)3 files modifiedsrc/maasserver/models/bmc.py (+23/-11)
src/maasserver/models/tests/test_bmc.py (+34/-0)
src/provisioningserver/drivers/pod/__init__.py (+6/-4)
~alexsander-souza/maas:lp2028284_smart_sync_hints
Merged
into
maas:master
- Björn Tillenius: Approve
- MAAS Lander: Approve
-
Diff: 130 lines (+63/-15)3 files modifiedsrc/maasserver/models/bmc.py (+23/-11)
src/maasserver/models/tests/test_bmc.py (+34/-0)
src/provisioningserver/drivers/pod/__init__.py (+6/-4)
Changed in maas: | |
status: | New → Incomplete |
summary: |
- vm compose fails with - This "instances" entry already exists + LXD vm compose fails with - This "instances" entry already exists |
Changed in maas: | |
assignee: | nobody → Alexsander de Souza (alexsander-souza) |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
That error comes from LXD, when you try to create an instance with a name that already exists.
for i in 1 2; do lxc launch --empty foo; done