Fractional value for available CPU cores with an overcommit ratio breaks UI

Bug #2012466 reported by Nobuto Murata
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Jones Ogolo
maas-ui
Fix Released
Medium
Jones Ogolo

Bug Description

maas: 1:3.3.1-13169-g.94920eb1e-0ubuntu1~22.04.1

How to reproduce:
1. register LXD VM host
2. set an overcommit ration with a fractional value to have a factional value for available CPU cores
e.g. 16 cores * 1.1 overcommit ration -> 17.6 available CPU cores
3. goes to /MAAS/r/kvm/lxd
4. hover a mouse pointer on CPU cores

The CPU resource table gets corrupted.

Tags: ui
Revision history for this message
Nobuto Murata (nobuto) wrote :
Revision history for this message
Nobuto Murata (nobuto) wrote :

As a side note, MAAS CLI help says it's Int but both WebUI and CLI accept a float value.

> maas admin vm-host update -h
...
> :param cpu_over_commit_ratio: Optional. CPU overcommit
> ratio (0-10)
> :type cpu_over_commit_ratio: Int
>
> :param memory_over_commit_ratio: Optional. CPU overcommit
> ratio (0-10)
> :type memory_over_commit_ratio: Int

Revision history for this message
Thorsten Merten (thorsten-merten) wrote :

seems to be a minor rounding issue, maybe the values are coming from the backend like this but we need to cut them off

Changed in maas-ui:
assignee: nobody → Jones Ogolo (jonesogolo)
milestone: none → 3.3.x
status: New → Triaged
importance: Undecided → Medium
Jones Ogolo (jonesogolo)
Changed in maas-ui:
status: Triaged → In Progress
Changed in maas-ui:
status: In Progress → Fix Committed
Changed in maas:
status: New → Fix Committed
milestone: none → 3.3.3
importance: Undecided → Medium
assignee: nobody → Jones Ogolo (jonesogolo)
Changed in maas:
status: Fix Committed → Fix Released
Changed in maas-ui:
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.