MAAS LXD VM creation issue (Ensure this value is less than or equal to 0)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Stamatis Katsaounis | ||
3.3 |
Fix Released
|
High
|
Stamatis Katsaounis | ||
3.4 |
Fix Released
|
High
|
Stamatis Katsaounis | ||
lxd |
Fix Released
|
Unknown
|
Bug Description
Hi All,
In summary - I have an issue creating VM’s through MAAS and LXD.
The error:
Ensure this value is less than or equal to 0 for CPU and RAM.
I have the latest version of MAAS running: 3.4.0-14319-
I decided to setup an LXD host to see the integration between the two…
I installed LXD (5.19) with no issues.
Within LXD I enabled the UI and added a vm. again with no issues.
To help, I deleted this VM before the next steps.
I then went into MAAS and added an LXD host.
No issues.
With MAAs I then try to add a vm but get errors for both CPU and RAM:
Error: Ensure this value is less than or equal to 0.
It doesn’t matter what I put in here, it won’t create.
regiond.log
2024-01-05 13:58:19 maasserver.
Traceback (most recent call last):
File “/usr/lib/
self._startRunC
File “/usr/lib/
self._runCallba
File “/usr/lib/
current.result = callback( # type: ignore[misc]
File “/usr/lib/
current_
— —
File “/usr/lib/
result = current_
File “/usr/lib/
return g.throw(self.type, self.value, self.tb)
File “/usr/lib/
form = await deferToDatabase
File “/usr/lib/
result = inContext.theWork() # type: ignore[
File “/usr/lib/
inContext.theWork = lambda: context.call( # type: ignore[
File “/usr/lib/
return self.currentCon
File “/usr/lib/
return func(*args, **kw)
File “/usr/lib/
return func(*args, **kwargs)
File “/usr/lib/
result = func(*args, **kwargs)
File “/usr/lib/
return func_outside_
File “/usr/lib/
return func(*args, **kwargs)
File “/usr/lib/
return func(*args, **kwds)
File “/usr/lib/
raise HandlerValidati
maasserver.
I then added a new VM via the LXD ui and it worked fine (still).
After refreshing host, the vm I created shows as commissioning, but this never occurs.
I can however delete this VM from MAAS, it can also see all the info correctly…
Any help would be great.
Thanks,
Related branches
- MAAS Lander: Approve
- Stamatis Katsaounis: Approve
-
Diff: 30 lines (+4/-4)2 files modifiedsrc/metadataserver/tests/test_vendor_data.py (+2/-2)
src/metadataserver/vendor_data.py (+2/-2)
- MAAS Lander: Approve
- Stamatis Katsaounis: Approve
-
Diff: 30 lines (+4/-4)2 files modifiedsrc/metadataserver/tests/test_vendor_data.py (+2/-2)
src/metadataserver/vendor_data.py (+2/-2)
- MAAS Lander: Approve
- Adam Collard (community): Approve
-
Diff: 30 lines (+4/-4)2 files modifiedsrc/metadataserver/tests/test_vendor_data.py (+2/-2)
src/metadataserver/vendor_data.py (+2/-2)
- MAAS Lander: Approve
- Stamatis Katsaounis: Approve
-
Diff: 30 lines (+4/-4)2 files modifiedsrc/metadataserver/tests/test_vendor_data.py (+2/-2)
src/metadataserver/vendor_data.py (+2/-2)
- MAAS Lander: Approve
- Stamatis Katsaounis: Approve
-
Diff: 30 lines (+4/-4)2 files modifiedsrc/metadataserver/tests/test_vendor_data.py (+2/-2)
src/metadataserver/vendor_data.py (+2/-2)
- MAAS Lander: Approve
- Eline Maaike De Weerd: Approve
-
Diff: 30 lines (+4/-4)2 files modifiedsrc/metadataserver/tests/test_vendor_data.py (+2/-2)
src/metadataserver/vendor_data.py (+2/-2)
Changed in maas: | |
status: | Incomplete → Triaged |
Changed in maas: | |
importance: | Undecided → High |
assignee: | nobody → Stamatis Katsaounis (skatsaounis) |
status: | Triaged → In Progress |
milestone: | none → 3.5.0 |
Changed in lxd: | |
status: | Unknown → New |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in lxd: | |
status: | New → Fix Released |
Changed in maas: | |
milestone: | 3.5.0 → 3.5.0-beta1 |
status: | Fix Committed → Fix Released |
Hi Dan,
Regarding your first issue (validation error): can you please check if MAAS UI displays any values for your LXD host and try clicking "Refresh host" button?
Regarding issue with a stuck commissioning: is there anything interesting in the VM console? `lxc console {your-vm-name} --project {maas-kvm-project}`