Bug 1850438
Summary: | No "Not available" for VM network Utilization | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Guohua Ouyang <gouyang> |
Component: | Console Kubevirt Plugin | Assignee: | Yaacov Zamir <yzamir> |
Status: | CLOSED ERRATA | QA Contact: | Guohua Ouyang <gouyang> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.5 | CC: | aos-bugs, gouyang, yzamir |
Target Milestone: | --- | ||
Target Release: | 4.6.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause:
network utilization data is an array of arrays, when no data available we get an empty array of arrays.
Consequence:
the component see an empty array of arrays as valid data.
Fix:
check for empty array of arrays in this case.
Result:
empty array of arrays is interpreted as no data.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2020-10-27 16:09:25 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Guohua Ouyang
2020-06-24 10:19:45 UTC
Ref: https://github.com/openshift/console/blob/master/frontend/packages/console-shared/src/components/dashboard/utilization-card/UtilizationItem.tsx#L84 the check: `data.every((datum) => datum.length)` return true for `data.length === 0` but we actually want also to cover `length === 0` as no data (e.g. false) verified on upstream 4.6 branch. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Container Platform 4.6 GA Images), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:4196 |