Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2034959

Summary: [qemu-ga-win] Get error 'Failed to execute helper program (No such file or directory)' after executing command 'guest-exec' [rhel-8.5.0.z]
Product: Red Hat Enterprise Linux 8 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: mingw-glib2Assignee: Yvugenfi <yvugenfi>
Status: CLOSED ERRATA QA Contact: dehanmeng <demeng>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 8.5CC: demeng, jinzhao, juzhang, kkostiuk, mdean, qizhu, ymankad, yvugenfi
Target Milestone: rcKeywords: Rebase, Regression, Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Windows   
Whiteboard:
Fixed In Version: mingw-glib2-2.70.1-1.el8_5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2029674 Environment:
Last Closed: 2022-04-26 16:53:51 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: 2029674    
Bug Blocks:    

Comment 2 Yvugenfi@redhat.com 2021-12-27 00:31:54 UTC
Please test: https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=1835654

Comment 3 dehanmeng 2021-12-27 01:46:57 UTC
Hi Yan, I used two ways to start qemu-ga in windows with mingw-qemu-ga-win-102.9.0-0.el8_5&mingw-qemu-ga-win-102.8.0-0.el8_5, 

There are two kinds of results corresponding two ways of starting qemu-ga here:
1. install qemu-ga.msi and the service gonna be started directly (without intervention):
   both of above two version of mingw-qemu-ga-win I used can get the same FAIL result after executing qga command '{"execute": "guest-exec", "arguments": {"path": "PING", "arg": [ "www.redhat.com" ],"capture-output": true}}'
   [root@dell-per730-56 test-results]# nc -U /tmp/avocado_ueferioi/serial-org.qemu.guest_agent.0-20211223-121136-55o4p0NQ
   {"execute": "guest-exec", "arguments": {"path": "PING", "arg": [ "www.redhat.com" ],"capture-output": true}}
   {"error": {"class": "GenericError", "desc": "Guest agent command failed, error was 'Failed to execute helper program (No such file or directory)'"}}

2. After the installation of qemu-ga.msi, I stop the qemu-ga.service and start it manually via cmd "C:\program Files \Qemu-ga>qemu-ga.exe", both of them two version of mingw-qemu-ga-win can get the same PASS result:
   [root@dell-per730-56 test-results]# nc -U /tmp/avocado_ueferioi/serial-org.qemu.guest_agent.0-20211223-121136-55o4p0NQ
   {"execute": "guest-exec", "arguments": {"path": "PING", "arg": [ "www.redhat.com" ],"capture-output": true}}
   {"return": {"pid": 2624}}

So, We don't need to wait for the PASS result to appear when we use the first method? and further question is whether we have to fresh the whole approach that start/stop qemu-ga.exe as service in our test plan?

Comment 5 Yvugenfi@redhat.com 2021-12-27 06:39:24 UTC
(In reply to dehanmeng from comment #3)
> Hi Yan, I used two ways to start qemu-ga in windows with
> mingw-qemu-ga-win-102.9.0-0.el8_5&mingw-qemu-ga-win-102.8.0-0.el8_5, 
> 
> There are two kinds of results corresponding two ways of starting qemu-ga
> here:
> 1. install qemu-ga.msi and the service gonna be started directly (without
> intervention):
>    both of above two version of mingw-qemu-ga-win I used can get the same
> FAIL result after executing qga command '{"execute": "guest-exec",
> "arguments": {"path": "PING", "arg": [ "www.redhat.com" ],"capture-output":
> true}}'
>    [root@dell-per730-56 test-results]# nc -U
> /tmp/avocado_ueferioi/serial-org.qemu.guest_agent.0-20211223-121136-55o4p0NQ
>    {"execute": "guest-exec", "arguments": {"path": "PING", "arg": [
> "www.redhat.com" ],"capture-output": true}}
>    {"error": {"class": "GenericError", "desc": "Guest agent command failed,
> error was 'Failed to execute helper program (No such file or directory)'"}}
> 

I am checking why it is failing for both versions. This is the way that qemu-ga should be mainly tested, as this is the way customers will deploy it.

> 2. After the installation of qemu-ga.msi, I stop the qemu-ga.service and
> start it manually via cmd "C:\program Files \Qemu-ga>qemu-ga.exe", both of
> them two version of mingw-qemu-ga-win can get the same PASS result:
>    [root@dell-per730-56 test-results]# nc -U
> /tmp/avocado_ueferioi/serial-org.qemu.guest_agent.0-20211223-121136-55o4p0NQ
>    {"execute": "guest-exec", "arguments": {"path": "PING", "arg": [
> "www.redhat.com" ],"capture-output": true}}
>    {"return": {"pid": 2624}}
> 
> So, We don't need to wait for the PASS result to appear when we use the
> first method? and further question is whether we have to fresh the whole
> approach that start/stop qemu-ga.exe as service in our test plan?

This specific bug is related to the execution location of the application.
You can add test to cover it executing "guest-exec" as a test case.

Comment 6 dehanmeng 2021-12-27 06:47:13 UTC
(In reply to Yvugenfi from comment #5)

> > 1. install qemu-ga.msi and the service gonna be started directly (without
> > intervention):

> 
> I am checking why it is failing for both versions. This is the way that
> qemu-ga should be mainly tested, as this is the way customers will deploy it.
> 
okay then, I'll wait for the next update and take corresponding actions. thanks

> > So, We don't need to wait for the PASS result to appear when we use the
> > first method? and further question is whether we have to fresh the whole
> > approach that start/stop qemu-ga.exe as service in our test plan?
> 
> This specific bug is related to the execution location of the application.
> You can add test to cover it executing "guest-exec" as a test case.

you mean run qemu-ga.exe via cmd and send this command "guest-exec" to check right? if so, I'll add a new test case for this scenario and do a full test for all qga-commands to dig more whether there are other qga commands that have to be tested in this way.

Comment 7 Yvugenfi@redhat.com 2021-12-27 17:26:16 UTC
Hi Dehan, 

Please check mingw-qemu-ga-win-102.10.0-0.el8_5

Comment 8 dehanmeng 2021-12-28 01:21:47 UTC
(In reply to Yvugenfi from comment #7)
> Hi Dehan, 
> 
> Please check mingw-qemu-ga-win-102.10.0-0.el8_5

Yes, this version fixed this issue. both of those two methods that run make qemu-ga running in windows can work well. so move this bug to VERIFIED. if there are still any problems, please let me know. thanks for your effort, Yan.

Comment 16 errata-xmlrpc 2022-04-26 16:53:51 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 (mingw-glib2 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/RHBA-2022:1544