Bug 2087678

Summary: [mingw-qemu-ga-win] Frequently stop/start ‘qemu-ga service‘ get failed
Product: Red Hat Enterprise Linux 9 Reporter: dehanmeng <demeng>
Component: mingw-qemu-ga-winAssignee: Kostiantyn Kostiuk <kkostiuk>
Status: CLOSED MIGRATED QA Contact: dehanmeng <demeng>
Severity: low Docs Contact:
Priority: low    
Version: 9.1CC: demeng, jinzhao, juzhang, kkostiuk, qizhu, yvugenfi
Target Milestone: rcKeywords: MigratedToJIRA, Regression, Triaged
Target Release: ---   
Hardware: x86_64   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-16 08:58:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description dehanmeng 2022-05-18 08:29:59 UTC
Description of problem:  'The service is starting or stopping.  Please try again later.'

Complete log as follwoing.
currently, qga service stop/start operations expose an old problem: 
23:48:44 DEBUG| [stderr] INFO:root:Context: Repeat: 60/100
23:48:44 DEBUG| [stderr] INFO:root:Context: Repeat: 60/100 --> Try to stop qemu-ga service.
23:48:44 DEBUG| [stderr] DEBUG:aexpect.client:Sending command: net stop qemu-ga
23:49:04 DEBUG| [stderr] DEBUG:aexpect.client:Sending command: echo %errorlevel%
23:49:05 DEBUG| [stderr] INFO:root:Context: Repeat: 60/100 --> Try to start qemu-ga service.

23:49:05 DEBUG| [stderr] DEBUG:aexpect.client:Sending command: net start qemu-ga

23:49:05 DEBUG| [stderr] DEBUG:aexpect.client:Sending command: echo %errorlevel%

23:49:06 ERROR| 
... ...
... ...

... ...
... ...
23:49:06 ERROR|     raise exceptions.TestFail(message)
23:49:06 ERROR| avocado.core.exceptions.TestFail: Could not start qemu-ga service in VM 'avocado-vt-vm1',detail: 'The service is starting or stopping.  Please try again later.

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


How reproducible:
2/10 ~ 3/10

Steps to Reproduce:
1. boot up windows guest
2. install qga service
3. stop/start via command `net stop/start qemu-ga service`

Actual results:
service start failed.

Expected results:
service start successfully.

Additional info:
open a low priority bug here as a tracker after confirming with dev.

Comment 1 dehanmeng 2022-05-18 08:38:38 UTC
> Version-Release number of selected component (if applicable):

mingw-qemu-ga-win-104.0.2-1.el9

Comment 2 Yvugenfi@redhat.com 2022-05-19 14:45:14 UTC
(In reply to dehanmeng from comment #0)
> Description of problem:  'The service is starting or stopping.  Please try
> again later.'
> 
> Complete log as follwoing.
> currently, qga service stop/start operations expose an old problem: 
> 23:48:44 DEBUG| [stderr] INFO:root:Context: Repeat: 60/100
> 23:48:44 DEBUG| [stderr] INFO:root:Context: Repeat: 60/100 --> Try to stop
> qemu-ga service.
> 23:48:44 DEBUG| [stderr] DEBUG:aexpect.client:Sending command: net stop
> qemu-ga
> 23:49:04 DEBUG| [stderr] DEBUG:aexpect.client:Sending command: echo

Maybe it worth to enhance the script and query for the status of the service.
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-service?view=powershell-7.2

> %errorlevel%
> 23:49:05 DEBUG| [stderr] INFO:root:Context: Repeat: 60/100 --> Try to start
> qemu-ga service.
> 
> 23:49:05 DEBUG| [stderr] DEBUG:aexpect.client:Sending command: net start
> qemu-ga
> 
> 23:49:05 DEBUG| [stderr] DEBUG:aexpect.client:Sending command: echo
> %errorlevel%
> 
> 23:49:06 ERROR| 
> ... ...
> ... ...
> 
> ... ...
> ... ...
> 23:49:06 ERROR|     raise exceptions.TestFail(message)
> 23:49:06 ERROR| avocado.core.exceptions.TestFail: Could not start qemu-ga
> service in VM 'avocado-vt-vm1',detail: 'The service is starting or stopping.
> Please try again later.
> 
> Version-Release number of selected component (if applicable):
> 
> 
> How reproducible:
> 2/10 ~ 3/10
> 
> Steps to Reproduce:
> 1. boot up windows guest
> 2. install qga service
> 3. stop/start via command `net stop/start qemu-ga service`
> 
> Actual results:
> service start failed.
> 
> Expected results:
> service start successfully.
> 
> Additional info:
> open a low priority bug here as a tracker after confirming with dev.

Comment 3 dehanmeng 2022-05-19 15:33:26 UTC
recently, hit qga service stop issue: "09:31:45 ERROR| avocado.core.exceptions.TestFail: Could not stop qemu-ga service in VM 'avocado-vt-vm1', detail: 'System error 109 has occurred."

Comment 4 Yvugenfi@redhat.com 2022-11-10 09:18:01 UTC
Hi Dehan,

Please retest with latest drivers. virtio-serial should be updated and have a fix for double completion.

Thanks,
Yan.

Comment 5 dehanmeng 2022-11-15 02:15:34 UTC
Test 100 hundred times in progress. will update result when it finished.

Comment 12 RHEL Program Management 2023-08-15 15:25:07 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.