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-glib2 | Assignee: | Yvugenfi <yvugenfi> |
| Status: | CLOSED ERRATA | QA Contact: | dehanmeng <demeng> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 8.5 | CC: | demeng, jinzhao, juzhang, kkostiuk, mdean, qizhu, ymankad, yvugenfi |
| Target Milestone: | rc | Keywords: | 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
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?
(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. (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. Hi Dehan, Please check mingw-qemu-ga-win-102.10.0-0.el8_5 (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. 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 |