Bug 1978859

Summary: The qemu-ga-win build version in MSI is different between checking inside guest and qga command.
Product: Red Hat Enterprise Linux 8 Reporter: dehanmeng <demeng>
Component: virtio-winAssignee: Yvugenfi <yvugenfi>
virtio-win sub component: qemu-ga-win QA Contact: dehanmeng <demeng>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: high CC: demeng, lijin, menli, yvugenfi
Version: 8.5Keywords: Regression, Triaged
Target Milestone: beta   
Target Release: ---   
Hardware: x86_64   
OS: Windows   
Whiteboard:
Fixed In Version: mingw-qemu-ga-win-102.6.0-0.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 18:52:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1981302    

Description dehanmeng 2021-07-03 04:29:58 UTC
Description of problem:
Check the build version of qemu-ga-win in windows guest, Found the build version were checked from guest is not same with qga command 'guest-info'.

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


How reproducible:
100%

Steps to Reproduce:
1. boot up windows guest.
2. check qga program build version in guest via following two methods:
    (1). click 'control panel' --> 'Program' --> 'Program and features' --> click 'QEMU guest agent' and check the bottom you can see the "RedHat product version 102.0.0"
    (2) open cmd and run command "wmic product where Name="QEMU guest agent" get Version | findstr /v Version", the result is 102.0.0
3.connect guest on host to send qga command "guest-info"
[root@dell-per440-01 qemu-ga-win]# nc -U /tmp/avocado_w_eopcls/serial-org.qemu.guest_agent.0-20210702-055050-jUUACj8M
{"execute":"guest-info"}
{"return": {"version": "102.0.1" ....}}

And I also tried other 102.0.0 above build of qemu-ga-win, all of them have this issue.

Actual results:

Expected results:

Additional info:

Comment 1 dehanmeng 2021-07-03 04:44:32 UTC
The reason why I set a regression tag because I tried to use an original build of qga rpm 'qemu-ga-win-101.2.0-1.el7ev.noarch.rpm' but there is no that issue. so set a regression flag.

Comment 2 dehanmeng 2021-07-07 08:17:41 UTC
Recently I hit another issue that the qga upgrade operation needs uninstall the previous version of qga ahead. but the original design doesn't need to uninstall the old one, just upgrade the latest qga directly. After confirmation with Yan, this issue seems to be caused by this one, so update this info here as a tracker: upgrade between minor versions is now broken.

Comment 7 dehanmeng 2021-07-14 02:40:24 UTC
Reproduce this issue with 
mingw-qemu-ga-win-102.5.0-0.el8

Steps to Reproduce:
1. boot up windows guest.
2. check qga program build version in guest via the following two methods:
    (1). click 'control panel' --> 'Program' --> 'Program and features' --> click 'QEMU guest agent' and check the bottom you can see the "RedHat product version 102.0.0"
    (2) open cmd and run command "wmic product where Name="QEMU guest agent" get Version | findstr /v Version", the result is 102.0.0
3.connect guest on the host to send qga command "guest-info"
[root@dell-per440-01 qemu-ga-win]# nc -U /tmp/avocado_w_eopcls/serial-org.qemu.guest_agent.0-20210702-055050-jUUACj8M
{"execute":"guest-info"}
{"return": {"version": "102.5.1" ....}}

Verify this issue with
mingw-qemu-ga-win-102.6.0-0.el8

Steps to verify as above

Actual result:
host:
{"execute":"guest-info"}
{"return": {"version": "102.6.0"

on guest:
102.6.0

Expected result:
qga build version are the same between guest and host.

Comment 10 errata-xmlrpc 2021-11-09 18:52:47 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 (virtio-win bug fix and enhancement 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/RHEA-2021:4341