Barchart does not draw correctly when quota equals zero

Bug #1640434 reported by Mateusz Kowalski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Confirmed
Low
Unassigned

Bug Description

When using custom Volume Types and trying to draw custom bars showing available/used quota for each type it blows up when quota for certain volume type is equal to zero, at the same moment having general quota for volumes non-zero.

Example:
- Total gigabytes available: 1000
- Gigabytes available for type standard: 500
- Gigabytes available for type io1: 0

Barchart for "total gigabytes" and "total gbs for standard" will be drawn correctly. Barchart for "total gbs for io1" will blow up -- unexpected zeros will be printed on screen and barchart will be drawn for "total gigabytes" values.

At the same time changing the for with volume size makes all the bars update, but the "used quota" part is not redrawn -- it makes the bar for io1 half-red half-blue what is not an expected behaviour.

(clearly visible on screenshots)

Just in case it makes a difference how do I generate additional bars in the panel -- https://gitlab.cern.ch/cloud-infrastructure/horizon/commit/d7d7a471fc117e8024648dbbf002a516926adb34

Revision history for this message
Mateusz Kowalski (makowals) wrote :
Revision history for this message
Mateusz Kowalski (makowals) wrote :
Revision history for this message
Mateusz Kowalski (makowals) wrote :
Timur Sufiev (tsufiev-x)
Changed in horizon:
assignee: nobody → Timur Sufiev (tsufiev-x)
Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

Unassigning due to inactivity

Changed in horizon:
assignee: Timur Sufiev (tsufiev-x) → nobody
importance: Undecided → Low
status: New → Confirmed
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.