Bug 2071517

Summary: Swap usage in console Overview of VMs is wrong
Product: OpenShift Container Platform Reporter: Germano Veit Michel <gveitmic>
Component: Console Kubevirt PluginAssignee: Phillip Bailey <phbailey>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.10CC: aos-bugs, gouyang, phbailey, sradco
Target Milestone: ---   
Target Release: 4.10.z   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-09 10:51:02 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: 2102302    
Bug Blocks:    

Description Germano Veit Michel 2022-04-04 05:44:03 UTC
Description of problem:

Get some Windows and Linux VMs with swap, ensure qemu guest agent is installed.

Go to Virtualization -> Overview and check "Memory swap". There are 2 problems:

1. Linux VMs are missing (QEMU Guest Agent installed and running)
2. Windows ones have wrong values reported (QEMU Guest Agent installed and running)
3. Increase memory usage inside the VM to make it use more swap (i.e. stress-ng or configure windows with little RAM)

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

How reproducible:
Always

Steps to Reproduce:
1. Install VM, ensure QGA is running
2. Check "Memory Swap"

Actual results:
* Linux VMs missing
* Windows VMs wrong value (i.e. 2PB of swap on a 20G disk)

Expected results:
* If VM is using swap, show there and with the right value

Comment 2 Guohua Ouyang 2022-04-06 02:16:41 UTC
I usually enable swap disk in Linux VMs and then it shows in memory swap.

Comment 8 Guohua Ouyang 2022-11-03 01:49:46 UTC
verified on 4.10.0-0.nightly-2022-11-01-183141

Comment 10 errata-xmlrpc 2022-11-09 10:51:02 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 (OpenShift Container Platform 4.10.40 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/RHBA-2022:7298