Bug 2077008

Summary: guest cpu count not working for RHEL8 guests
Product: Red Hat Enterprise Virtualization Manager Reporter: Marian Jankular <mjankula>
Component: vdsmAssignee: Tomáš Golembiovský <tgolembi>
Status: CLOSED ERRATA QA Contact: Qin Yuan <qiyuan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.4.10CC: ahadas, apinnick, lsurette, mavital, michal.skrivanek, srevivo, ycui
Target Milestone: ovirt-4.5.1Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: vdsm-4.50.1 Doc Type: Bug Fix
Doc Text:
The QEMU guest agent now reports the correct guest CPU count.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-14 12:41:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marian Jankular 2022-04-20 12:41:19 UTC
Description of problem:
guest cpu count not working for RHEL8 guests

Version-Release number of selected component (if applicable):
vdsm-4.40.100.2-1.el8ev.x86_64
rhv 4.4.10

How reproducible:
everytime

Steps to Reproduce:
1. vdsm-client VM getStats vmID=<RHEL*_VM_UUID> | grep -e version -e qemu-guest-agent -e CPU -e vmName


Actual results:
        "guestCPUCount": -1,



Expected results:
the correct number of guest vcpus

Additional info:
I am opening this against vdsm as it looks like qemu-guest-agent does provide correct info

Comment 2 Tomáš Golembiovský 2022-04-21 17:18:46 UTC
It appears this property was missed when switching to qemu-ga in VDSM. It is possible to implement using the "guest-get-vcpus" qemu-ga command.

Comment 6 Qin Yuan 2022-06-14 14:38:39 UTC
Verified with:
vdsm-4.50.1.1-1.el8ev.x86_64

Steps:
1. Create a VM with RHEL8.6 OS installed, set vCPUs to 4.
2. Run the VM, check guest cpu count.

Results:
1. Guest cpu count on UI is 4.
2. guestCPUCount is 4 in the results of vdsm-client command:
# vdsm-client VM getStats vmID=a3c4c8c2-cb63-4451-8a13-c1f0277815eb|grep -e version -e qemu-guest-agent -e CPU -e test
            "qemu-guest-agent-6.2.0"
        "guestCPUCount": 4,
            "version": "8.6"
        "vmName": "test",

Comment 10 errata-xmlrpc 2022-07-14 12:41:13 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 (RHV RHEL Host (ovirt-host) [ovirt-4.5.1] 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:5583

Comment 11 meital avital 2022-08-01 16:53:43 UTC
Due to QE capacity, we are not going to cover this issue in our automation