UI is presenting wrong storage pool sizes in clusters

Bug #1949410 reported by Alexsander de Souza
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Alexsander de Souza
maas-ui
Incomplete
Undecided
Unassigned

Bug Description

the UI is calculating storage pool sizes wrongly when CEPH pools are involved.

when shared pools are present in a cluster the UI should not stack their sizes, as every VMHost will report that pool but they all point to the same storage capacity.

the vmcluster endpoint has the correct pool sizes and aggregated storage capacity:

{
    "name": "CEPH-LAB",
    "project": "cluster-lab",
    "id": 3,
    "total": {
        "cores": 2,
        "memory": 4294967296,
        "local_storage": 216409694208
    },
    "available": {
        "cores": 2,
        "memory": 4294967296,
        "local_storage": 216409694208
    },
    "vm_count": 0,
    "vmhost_count": 2,
    "version": "4.19",
    "storage_pools": {
        "local": {
            "free": 14555799552,
            "total": 14555799552
        },
        "remote": {
            "free": 201853894656,
            "total": 201853894656
        }
    },
    "used": {
        "cores": 0,
        "memory": 0,
        "local_storage": 0
    },
    "resource_uri": "/MAAS/api/2.0/vm-clusters/3"
}

Related branches

Revision history for this message
Alexsander de Souza (alexsander-souza) wrote :
Revision history for this message
Alexsander de Souza (alexsander-souza) wrote :
Revision history for this message
Caleb Ellis (caleb-ellis) wrote :

Just relaying what was said in Mattermost - we can switch over to using the vmcluster endpoint once it includes each pool's type and path.

Changed in maas:
assignee: nobody → Alexsander de Souza (alexsander-souza)
importance: Undecided → Critical
Changed in maas:
status: New → In Progress
Changed in maas:
milestone: none → 3.1.0
status: In Progress → Fix Committed
Bill Wear (billwear)
Changed in maas:
milestone: 3.1.0 → 3.1.0-beta5
Changed in maas:
status: Fix Committed → Fix Released
Revision history for this message
Thorsten Merten (thorsten-merten) wrote :

Due to the fix in the MAAS API this should no more be an issue in MAAS UI

Changed in maas-ui:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.