Available CPU Count incorrect when creating KVM from CLI
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Alberto Donato |
Bug Description
Debian MAAS 3.1.0~beta3 installed inside LXD Container.
When creating VM from CLI the available CPU Count is incorrect which stops me from creating more VMs.
Fresh 20.04 install on bare metal.
UI Creation of KVM is OK but not from CLI.
"available": {
"cores": 80,
"memory": 772649,
},
"architectu
],
"used": {
"cores": 0,
"memory": 0,
},
"total": {
"cores": 80,
"memory": 772649,
},
Create one VM with 24 Cores and 128GB Memory through UI.
"total": {
"cores": 80,
"memory": 772649,
"used": {
"cores": 24,
"memory": 130048,
},
"available": {
"cores": 56,
"memory": 642601,
},
Create one VM with 24 Cores and 128GB Memory through CLI and Available is incorrect.
maas $PROFILE vm-host compose $VM_HOST_ID cores=24 memory=131072 architecture=
"used": {
"cores": 72,
"memory": 393216,
},
"total": {
"cores": 80,
"memory": 772649,
"available": {
"cores": 8,
"memory": 379433,
Related branches
- Christian Grabowski: Approve
- MAAS Lander: Approve
-
Diff: 63 lines (+41/-2)2 files modifiedsrc/maasserver/models/tests/test_virtualmachine.py (+33/-0)
src/maasserver/models/virtualmachine.py (+8/-2)
description: | updated |
Changed in maas: | |
status: | Incomplete → Triaged |
milestone: | none → 3.1.0 |
importance: | Undecided → High |
Changed in maas: | |
assignee: | nobody → Alberto Donato (ack) |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 3.1.0 → 3.1.0-beta4 |
status: | Fix Committed → Fix Released |
I created two VM's with the UI with the following.
8 cores
128GB
Then I see the used core count is wrong, which says available is only 16.
"used": {
"local_ storage" : 728000000000
"local_ storage" : 5952253325312
"local_ storage" : 5224253325312
"cores": 64,
"memory": 1040384,
},
"total": {
"cores": 80,
"memory": 772649,
},
"available": {
"cores": 16,
"memory": -267735,
},