[2.5, UI] maas 2.5 pods webUI used memory calculation is incorrect

Bug #1797659 reported by Craig Bender
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Anthony Dillon

Bug Description

2.5.0~beta2 (7291-gd0345ced5-0ubuntu1~18.04.1)
maas admin pod read 91
Success.
Machine-readable output follows:
{
    "id": 91,
    "memory_over_commit_ratio": 1.2,
    "used": {
        "cores": 40,
        "memory": 19090,
        "local_storage": 100000000000
    },
    "type": "virsh",
    "host": {
        "system_id": "43fg4x",
        "__incomplete__": true
    },
    "tags": [
        "virtual"
    ],
    "total": {
        "cores": 4,
        "memory": 15910,
        "local_storage": 117082529792
    },
    "available": {
        "cores": -36,
        "memory": -3180,
        "local_storage": 17082529792
    },
    "capabilities": [
        "composable",
        "dynamic_local_storage",
        "over_commit",
        "storage_pools"
    ],
    "default_macvlan_mode": "",
    "name": "node01ob20",
    "zone": {
        "name": "default",
        "description": "",
        "id": 1,
        "resource_uri": "/MAAS/api/2.0/zones/default/"
    },
    "storage_pools": [
        {
            "id": "938e9162-16b7-4e51-9c70-40b7396b2413",
            "name": "maas",
            "type": "dir",
            "path": "/var/lib/libvirt/maas-images",
            "total": 117082529792,
            "used": 100000000000,
            "available": 17082529792,
            "default": true
        }
    ],
    "cpu_over_commit_ratio": 10.0,
    "architectures": [
        "amd64/generic"
    ],
    "pool": {
        "name": "default",
        "description": "Default pool",
        "id": 0,
        "resource_uri": "/MAAS/api/2.0/resourcepool/0/"
    },
    "resource_uri": "/MAAS/api/2.0/pods/91/"
}

10 VMs created with 1909 MiB RAM = 19090 MiB or 18.6 GiB (2^10)

Memory available should show 0

Web UI (/usr/share/maas/web/static/partials/pod-details.html) shows:

18.6 GiB used -3.552713678800501e-15 GiB available

Tags: ui

Related branches

Revision history for this message
Craig Bender (craig-bender) wrote :
Changed in maas:
milestone: none → 2.5.0rc1
importance: Undecided → High
status: New → Triaged
summary: - maas 2.5 pods webUI used memory calculation is incorrect
+ [2.5] maas 2.5 pods webUI used memory calculation is incorrect
summary: - [2.5] maas 2.5 pods webUI used memory calculation is incorrect
+ [2.5, UI] maas 2.5 pods webUI used memory calculation is incorrect
tags: added: ui
Revision history for this message
Mike Pontillo (mpontillo) wrote :

See also...

Changed in maas:
assignee: nobody → Anthony Dillon (ya-bo-ng)
Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
milestone: 2.5.0rc1 → 2.5.0beta4
status: Fix Committed → Fix Released
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.