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 2029674 - [qemu-ga-win] Get error 'Failed to execute helper program (No such file or directory)' after executing command 'guest-exec' [rhel-8.6.0]
Summary: [qemu-ga-win] Get error 'Failed to execute helper program (No such file or di...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: mingw-glib2
Version: 8.5
Hardware: x86_64
OS: Windows
urgent
urgent
Target Milestone: rc
: 8.6
Assignee: Yvugenfi@redhat.com
QA Contact: dehanmeng
URL:
Whiteboard:
Depends On:
Blocks: 2034959
TreeView+ depends on / blocked
 
Reported: 2021-12-07 02:19 UTC by dehanmeng
Modified: 2022-05-16 09:55 UTC (History)
8 users (show)

Fixed In Version: mingw-glib2-2.70.1-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2034959 (view as bug list)
Environment:
Last Closed: 2022-05-16 09:53:37 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-104935 0 None None None 2021-12-07 02:34:16 UTC

Description dehanmeng 2021-12-07 02:19:35 UTC
Description of problem:
when I executed qga command "{"execute": "guest-exec", "arguments": {"path": "PING", "arg": [ "www.redhat.com" ],"capture-output": true}}", will get error info {"error": {"class": "GenericError", "desc": "Guest agent command failed, error was 'Failed to execute helper program (No such file or directory)'"}}, tested win2022/win11 on RHEL9 btw.


Version-Release number of selected component (if applicable):
mingw-qemu-ga-win-102.8.0-0.el8_5
qemu-kvm-6.1.0-6.el9.x86_64
kernel-5.14.0-15.el9.x86_64
edk2-ovmf-20210527gite1999b264f1f-7.el9.noarch



How reproducible:
100%

Steps to Reproduce:
1. bootup win11/win2022 VM with mingw-qemu-ga-win-102.8.0-0.el8_5
2. connect qga to send command
3. execute command {"execute": "guest-exec", "arguments": {"path": "PING", "arg": [ "www.redhat.com" ],"capture-output": true}}

Actual results:
{"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)'"}}

Expected results:
{"execute": "guest-exec", "arguments": {"path": "PING", "arg": [ "www.redhat.com" ],"capture-output": true}}
{"return": {"pid": 6236}}

Additional info:
Test on the same guests with mingw-qemu-ga-win-102.7.0-0.el8 would not hit this issue.

Comment 1 Yvugenfi@redhat.com 2021-12-07 10:19:01 UTC
Looks like glib but. Unfortunately mingw-glib2 was updated between the mingw-qemu-ga builds: https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=1701423

Comment 2 Kostiantyn Kostiuk 2021-12-07 10:32:53 UTC
Guest Agent uses Glib to run the child process. On Windows OS Glib uses gspawn helpers for this. For some reason, Glib can't find this helper, but it presents and works.

If you open "C:\Program Files (x86)\Qemu-ga" and run Guest Agent manually everything will work.

Current Guest Agent v102.8 was built with Glib v2.66.7-2
Previous Guest Agent v102.7 was built with Glib v2.56.1-2

Comment 3 dehanmeng 2021-12-08 02:48:15 UTC
qga command "guest-fstrim" still hit this issue. just update this result here.

{"execute":"guest-fstrim"}
{"return": {"paths": [{"path": "F:\\", "error": "Failed to execute helper program (No such file or directory)"}, {"path": "C:\\", "error": "Failed to execute helper program (No such file or directory)"}]}}

Comment 9 dehanmeng 2022-02-28 08:54:18 UTC
Hi all, this bug is related with mingw-qemu-ga's build, so actually, we just need to test mingw-qemu-ga-win-102.11.0-0.el8 to verify this issue.

Reproduce:
Steps to Reproduce:
1. bootup win11/win2022 VM with mingw-qemu-ga-win-102.8.0-0.el8_5
2. connect qga to send command
3. execute command {"execute": "guest-exec", "arguments": {"path": "PING", "arg": [ "www.redhat.com" ],"capture-output": true}}

Actual results:
{"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)'"}}

Expected results:
{"execute": "guest-exec", "arguments": {"path": "PING", "arg": [ "www.redhat.com" ],"capture-output": true}}
{"return": {"pid": 1264}}


Verify this issue:
step as above

Actual results is same as expected result:
{"execute": "guest-exec", "arguments": {"path": "PING", "arg": [ "www.redhat.com" ],"capture-output": true}}
{"return": {"pid": 1264}}

and I tested this fixed version of mingw-qemu-ga for whole qga test loop. no further issue were detected. 
so move this bug to VERIFIED. thanks.


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