[2.2.0rc3] Pod remaining cores can go below zero
Bug #1698766 reported by
Данило Шеган
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Anthony Dillon | ||
2.2 |
Won't Fix
|
High
|
Unassigned |
Bug Description
As noted in bug #1687305, number of available pod cores can go below zero (https:/
It seems to be as simple as overcommitting the pod would do that (which is quite expected with VMs).
We should probably instead display core utilisation for the pod, eg. percentage if number of used cores is less than the number of actual cores, and factor of utilisation if it's more.
Eg. 5/8 (VMs with 5 cores total, 8 available on the pod) would display "63%", and 17/8 would display "2.25x" as core utilisation.
This might be a breaking API change, though pods are a new feature in 2.2, so no big harm imo.
Related branches
~ya-bo-ng/maas:kvm-single-pod-view
Merged
into
maas:master
- Blake Rouse (community): Approve
- Kit Randel (community): Approve
- MAAS Lander: Needs Fixing
-
Diff: 934 lines (+611/-87)16 files modifiedsrc/maasserver/static/js/angular/controllers/pod_details.js (+12/-1)
src/maasserver/static/js/angular/filters/range.js (+14/-0)
src/maasserver/static/js/angular/filters/tests/test_range.js (+28/-0)
src/maasserver/static/partials/nodes-list.html (+0/-1)
src/maasserver/static/partials/pod-details.html (+132/-47)
src/maasserver/static/scss/_base_forms.scss (+5/-0)
src/maasserver/static/scss/_base_typography.scss (+5/-1)
src/maasserver/static/scss/_maas.scss (+2/-0)
src/maasserver/static/scss/_patterns_button.scss (+16/-3)
src/maasserver/static/scss/_patterns_icons.scss (+30/-0)
src/maasserver/static/scss/_patterns_meter.scss (+140/-11)
src/maasserver/static/scss/_patterns_pod-summary.scss (+191/-0)
src/maasserver/static/scss/_patterns_slider.scss (+28/-0)
src/maasserver/static/scss/_utils.scss (+5/-0)
src/maasserver/static/scss/build.scss (+3/-0)
src/maasserver/templates/maasserver/index.html (+0/-23)
summary: |
- Pod remaining cores can go below zero + [2.2.0rc3] Pod remaining cores can go below zero |
Changed in maas: | |
milestone: | 2.3.0 → 2.3.x |
Changed in maas: | |
milestone: | 2.3.x → 2.4.x |
Changed in maas: | |
milestone: | 2.4.x → 2.5.x |
Changed in maas: | |
milestone: | 2.5.0beta2 → 2.5.0rc1 |
Changed in maas: | |
assignee: | Lilyana Videnova (lilyanavidenova) → Anthony Dillon (ya-bo-ng) |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Instead of using a CPU percentage we may want to show the load[1] of the system. We can say something like this Pod has 8 CPU Cores with a load of 9.7. This will require the user understand the concept of load but its a pretty universal computing concept which most MAAS users should already understand.
[1] https:/ /en.wikipedia. org/wiki/ Load_(computing )