Bug 2182000

Summary: VM metrics graphs are render incorrectly
Product: Container Native Virtualization (CNV) Reporter: Fabian Deutsch <fdeutsch>
Component: User ExperienceAssignee: Hilda Stastna <hstastna>
Status: CLOSED ERRATA QA Contact: Leon Kladnitsky <lkladnit>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.12.0CC: gouyang, hstastna, lkladnit
Target Milestone: ---Flags: gouyang: needinfo-
Target Release: 4.14.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2186767 (view as bug list) Environment:
Last Closed: 2023-08-16 14:09:56 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:
Bug Depends On:    
Bug Blocks: 2186767    
Attachments:
Description Flags
Good: pod metrics
none
VM metrics on 4.13
none
metrics tab page on 4.13 none

Description Fabian Deutsch 2023-03-27 08:15:04 UTC
Created attachment 1953899 [details]
Good: pod metrics

Description of problem:
The metrics graphs of VMs are rendered incorrectly, i.e. the axis lines are not displayed, the axis description is truncated

Version-Release number of selected component (if applicable):
4.12

How reproducible:
ALways

Steps to Reproduce:
1. Use Firefox and access cnv2
2. Look at a VM's metrics, compared to the launcher pod's metrics.
3.

Actual results:
Graphs are rendered differently.
VM graphs seem to be broken

Expected results:
VM graphs are rendered as nicely as pod graphs.

Additional info:
The attached screenshot shows the good pod and bad vm graphs.

Comment 2 Hilda Stastna 2023-03-27 12:44:04 UTC
Hi Fabian,

this seems to me like a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=2177961
which has been already fixed for 4.13. Can you please, take a look? Or can you check if it is reproducible in 4.13?
Thanks!

Comment 3 Fabian Deutsch 2023-03-27 12:51:27 UTC
Hey Hilda,

yes, the truncation seems to be fixed as part of rhbz #2177961, however, the axis issue is still seen in the screenshot of https://github.com/kubevirt-ui/kubevirt-plugin/pull/1156

I odn't have a 4.13 env at hand right now to check this status.

Comment 4 Hilda Stastna 2023-03-27 13:24:15 UTC
See also the PR https://github.com/kubevirt-ui/kubevirt-plugin/pull/1180 for the BZ https://bugzilla.redhat.com/show_bug.cgi?id=2147582
It seems to me that all mentioned in this BZ is already fixed in 4.13. 
Also dates were added: https://github.com/kubevirt-ui/kubevirt-plugin/pull/1171

Guohua, can you, please, help us and to test in 4.13 and eventually to close this bug if it's a dup? Thanks!

Comment 5 Guohua Ouyang 2023-03-27 23:20:35 UTC
Hi Leon,
Could you help test it completely in 4.13?

Thanks

Comment 6 Guohua Ouyang 2023-04-04 02:15:17 UTC
Created attachment 1955648 [details]
VM metrics on 4.13

Hi Fabian,
Could you please review the screenshot to see if it looks good to you?

Thanks,

Comment 7 Leon Kladnitsky 2023-04-09 02:06:40 UTC
(In reply to Guohua Ouyang from comment #5)
> Hi Leon,
> Could you help test it completely in 4.13?
> 
> Thanks

Hi
I will add tests to cover this.

Comment 8 Fabian Deutsch 2023-04-11 12:15:05 UTC
> Could you please review the screenshot to see if it looks good to you?

It's a different page than where I reported this bug on.
However, the graphs look ... unclean .. the y-axis is missing and no graph at all is shown in the screenshot.

Is it the correct screenshot?

Comment 9 Guohua Ouyang 2023-04-11 23:33:40 UTC
Created attachment 1957019 [details]
metrics tab page on 4.13

Hi Fabian,
Would you please review this page one more time?

Thanks,

Comment 10 Fabian Deutsch 2023-04-12 06:57:17 UTC
Hi Guohua,

attachment 1957019 [details] looks better, but it's still inconsistent, is it?
Memory+CPU are missing the Y-Axis.
Storage r/w + iops have an Y-Axis
Network seems (but the screenshot is truncated) to not have an Y-Axis.

But in all cases (compute, storage, network) the axis description is as expected - not truncated.

Comment 11 Guohua Ouyang 2023-04-14 03:00:17 UTC
Hilda,
The Y-Axis is still missing on CPU and Memory graph, could you confirm it and fix it?

Comment 14 Guohua Ouyang 2023-04-28 07:08:39 UTC
verified on kubevirt-console-plugin-rhel9-container-v4.14.0-1047

Comment 25 errata-xmlrpc 2023-08-16 14:09:56 UTC
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 (Important: OpenShift Virtualization 4.13.3 Images security and bug fix update), 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/RHSA-2023:4664