duplicate tag results in failed deployment for KVM host
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Alberto Donato |
Bug Description
I'm using maas snap version/build 3.2.2-12005-
Server: Dell R630
Prior to 3.2.2 I had several servers enlisted & deployed. I've was having trouble with some LXD VM's (no logs on that, sorry - essentially my LXD VM's would intermittently lose network connection between LXD VM's on the same host) so I released the host hoping to re-deploy the LXD host and fix what ever issues might have been host related. I ended up deleting the server and re-commissioning it.
After much debugging, I found that re-deploying my server would fail anytime I selected it as either a LXD or virsh KVM host with the error below from the regiond.log
```
2022-08-09 19:07:20 metadataserver.
Traceback (most recent call last):
File "/snap/
return func_outside_
File "/snap/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwds)
File "/snap/
_create_
--- <exception caught here> ---
File "/snap/
pod = pod_form.save()
File "/snap/
tag, _ = Tag.objects.
File "/snap/
return getattr(
File "/snap/
return self._create_
File "/snap/
obj = self.create(
File "/snap/
obj.
File "/snap/
super(
File "/snap/
self.
File "/snap/
raise ValidationError
django.
```
I released the machine and attempted to re-deploy again as an LXD host and it fails with the same error as above. I cycled and tried several times with the same results today. Essentially, I can:
- deploy without being a KVM host or
- fail deployment trying to be a KVM host.
Pass Deployment options:
Ubuntu 20.04 with hwe-20.04-edge kernel
Fail Deployment options:
Ubuntu 20.04 with hwe-20.04-edge kernel
KVM Host - both LXD or Virsh
Related branches
- Alexsander de Souza: Approve
- MAAS Lander: Approve
-
Diff: 150 lines (+64/-14)4 files modifiedsrc/maasserver/forms/pods.py (+6/-9)
src/maasserver/forms/tests/test_pods.py (+12/-0)
src/maasserver/tests/test_vmhost.py (+37/-0)
src/maasserver/vmhost.py (+9/-5)
Changed in maas: | |
status: | Incomplete → Triaged |
importance: | Undecided → Medium |
milestone: | none → 3.3.0 |
Changed in maas: | |
assignee: | nobody → Alberto Donato (ack) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 3.3.0 → 3.3.0-beta1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Can you show us the output of "maas $ADMIN tags read"?