Bug 2154411

Summary: qemuAgentGetDisks cannot parse response from a guest agent running in Windows VM [rhel-9.0.0.z]
Product: Red Hat Enterprise Linux 9 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: libvirtAssignee: Peter Krempa <pkrempa>
libvirt sub component: CLI & API QA Contact: Lili Zhu <lizhu>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: chhu, jdenemar, jspanko, lmen, pkrempa, virt-maint, yalzhang, ymankad
Version: 9.2Keywords: Triaged, ZStream
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libvirt-8.0.0-8.5.el9_0 Doc Type: Bug Fix
Doc Text:
Cause: The reply from the guest agent doesn't contain one of the fields when running on windows. The code reports a spurious log entry in such case. Consequence: A safe-to-ignore error log entry is produced, in many times repeatedly. Fix: The code was modified to avoid reporting the error.
Story Points: ---
Clone Of: 2150455 Environment:
Last Closed: 2023-01-30 15:46:01 UTC Type: ---
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: 2150455    
Bug Blocks:    

Comment 4 Lili Zhu 2023-01-09 05:29:09 UTC
Verify this bug with:
libvirt-8.0.0-8.5.el9_0.x86_64

1. prepare a win guest with guest agent device
# virsh domtime win2k19 
Time: 1673195231

2. config the virtqemud conf file
# grep -v ^# /etc/libvirt/virtqemud.conf 
log_outputs = "3:file:/var/log/libvirt/libvirtd.log"

3. restart virtqemud

4. monitor the log in one terminal
# tail -f /var/log/libvirt/libvirtd.log 

5. Get guest disk info in another terminal
# virsh guestinfo win2k19 --disk 
disk.count          : 1
disk.0.name         : \\.\PhysicalDrive0
disk.0.partition    : no
disk.0.serial       : QM00001

6. check the log
# tail -f /var/log/libvirt/libvirtd.log 
(no more output)

As the testing result matches with the expected result, mark the bug as verified.

Comment 9 errata-xmlrpc 2023-01-30 15:46:01 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 (libvirt 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-2023:0521