[2.5] Storage pools inconsistent usage in backend vs api
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
High
|
Blake Rouse |
Bug Description
API reports:
{
}
],
But the storage pool reports:
ubuntu@node04:~$ virsh pool-list --all --details
Name State Autostart Persistent Capacity Allocation Available
-------
maas running yes yes 109.04 GiB 5.88 GiB 103.16 GiB
ubuntu@node04:~$ virsh pool-info maas
Name: maas
UUID: ff63cd04-
State: running
Persistent: yes
Autostart: yes
Capacity: 109.04 GiB
Allocation: 5.88 GiB
Available: 103.16 GiB
ubuntu@node04:~$ virsh pool-dumpxml maas
<pool type='dir'>
<name>maas</name>
<uuid>
<capacity unit='bytes'
<allocation unit='bytes'
<available unit='bytes'
<source>
</source>
<target>
<path>
<permissions>
<
<
<
</permissions>
</target>
</pool>
Looking at this, I can determine this:
* dumpxml seems to be showing the capacity of the disk itself where this storage pool leaves.
* pool-info - shows teh actual usage stats in the disk.
Changed in maas: | |
milestone: | none → 2.5.0rc1 |
importance: | Undecided → High |
status: | New → Triaged |
tags: | added: pod |
description: | updated |
Changed in maas: | |
milestone: | 2.5.0rc1 → 2.5.0 |
Changed in maas: | |
milestone: | 2.5.0 → 2.5.0rc1 |
assignee: | nobody → Blake Rouse (blake-rouse) |
Changed in maas: | |
milestone: | 2.5.0rc1 → 2.5.0rc2 |
Changed in maas: | |
milestone: | 2.5.0rc2 → 2.6.0 |
I am confused it on the bug. It seems that the size of 117082529792 is correct for the storage pool. The used/available is what MAAS knows about, meaning MAAS uses the block devices in MAAS to calculate the used/available. MAAS does not store the used in the model, that is calculated based on the block devices created in the pool in MAAS.