Bug 2077008 - guest cpu count not working for RHEL8 guests
Summary: guest cpu count not working for RHEL8 guests
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: vdsm
Version: 4.4.10
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.5.1
: ---
Assignee: Tomáš Golembiovský
QA Contact: Qin Yuan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-20 12:41 UTC by Marian Jankular
Modified: 2022-08-01 16:53 UTC (History)
7 users (show)

Fixed In Version: vdsm-4.50.1
Doc Type: Bug Fix
Doc Text:
The QEMU guest agent now reports the correct guest CPU count.
Clone Of:
Environment:
Last Closed: 2022-07-14 12:41:13 UTC
oVirt Team: Virt
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt vdsm pull 156 0 None Merged qemuguestagent: store CPU count reported by guest 2022-05-17 18:48:39 UTC
Red Hat Issue Tracker RHV-45820 0 None None None 2022-04-20 12:52:22 UTC
Red Hat Product Errata RHBA-2022:5583 0 None None None 2022-07-14 12:41:29 UTC

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


Note You need to log in before you can comment on or make changes to this bug.