Total pod resources not matching used pod resources
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Newell Jensen | ||
MAAS RSD |
Fix Released
|
Critical
|
Newell Jensen |
Bug Description
Total pod resources are not matching used pod resources:
# maas admin pods read
Success.
Machine-readable output follows:
[
{
"total": {
},
"used": {
},
},
"id": 213,
],
"name": "hot-gecko",
],
"type": "rsd"
}
]
Related branches
- Blake Rouse (community): Approve
-
Diff: 24 lines (+2/-1)2 files modifiedsrc/provisioningserver/drivers/pod/rsd.py (+1/-1)
src/provisioningserver/drivers/pod/tests/test_rsd.py (+1/-0)
summary: |
- Total resources not matching used resources + Total pod resources not matching used pod resources |
Changed in maasrsd: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | New → In Progress |
assignee: | nobody → Newell Jensen (newell-jensen) |
importance: | Undecided → Critical |
milestone: | none → 2.2.0 |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maasrsd: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Changed in maasrsd: | |
status: | Fix Committed → Fix Released |
With some investigation it was found that this bug is a result of the commissioning process that MAAS performs (related to bug #1659917). To test this, I pre-composed all the machines (eight) in the RSD Pod. I then created the pod via the MAAS API, which at the end prints out the pod information. Since commissioning hasn't been completed at this point, we can see that there is not an issue with the information that is presented. However, I then commissioned all the nodes and on completion, I read the pod information from the MAAS API again. This time, the information is out of sync and doesn't match.
root@maas-dev:~# maas admin pods create type="rsd" power_address= "10.3.0. 1:8443" power_user="admin" power_pass="admin"
"local_ storage" : 959999999999,
"local_ disks": 8
"local_ storage" : 959999999992,
"local_ disks": 8 api/2.0/ pods/219/ ",
"local_ storage" : 7,
"local_ disks": 0 res": [
"amd64/ generic"
"composable" ,
"fixed_ local_storage"
"available" : {
"local_ disks": 0,
"local_ storage" : -272990209,
"cores" : 0,
"memory" : -12160
"resource_ uri": "/MAAS/ api/2.0/ pods/219/ ",
"local_ disks": 8,
"cores" : 352,
"local_ storage" : 959999999999,
"memory" : 249984
"local_ disks": 8,
"cores" : 352,
"local_ storage" : 960272990208,
"memory" : 262144
"capabilities" : [
"composabl e",
"fixed_ local_storage"
"architectures ": [
"amd64/ generic"
Success.
Machine-readable output follows:
{
"total": {
"memory": 249984,
"cores": 352,
},
"used": {
"memory": 249984,
"cores": 352,
},
"resource_uri": "/MAAS/
"available": {
"memory": 0,
"cores": 0,
},
"id": 219,
"architectu
],
"name": "model-lemur",
"capabilities": [
],
"type": "rsd"
}
root@maas-dev:~# maas admin pods read
Success.
Machine-readable output follows:
[
{
},
"name": "model-lemur",
"id": 219,
"total": {
},
"type": "rsd",
"used": {
},
],
]
}
]