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.
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": {
},
],
]
}
]