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 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: ---Flags: pm-rhel: mirror+
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.