Bug 2172414
| Summary: | [virtiofs][virtio-win] Give some hint when start virtiofs service with device is disabled detached | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | xiagao | |
| Component: | virtio-win | Assignee: | Yvugenfi <yvugenfi> | |
| virtio-win sub component: | virtio-win-prewhql | QA Contact: | xiagao | |
| Status: | CLOSED ERRATA | Docs Contact: | ||
| Severity: | medium | |||
| Priority: | medium | CC: | coli, jinzhao, juzhang, lijin, qizhu, viktor, virt-maint, vrozenfe, ymankad, yvugenfi | |
| Version: | 9.2 | Keywords: | Triaged, ZStream | |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
|
| Target Release: | --- | |||
| Hardware: | All | |||
| OS: | Windows | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2211912 (view as bug list) | Environment: | ||
| Last Closed: | 2023-11-07 08:29:32 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: | ||||
| Bug Blocks: | 2211912 | |||
|
Description
xiagao
2023-02-22 10:39:31 UTC
Upstream fix addressing the case when service stated without a device: https://github.com/virtio-win/kvm-guest-drivers-windows/pull/883 (In reply to Yvugenfi from comment #1) > Upstream fix addressing the case when service stated without a device: > https://github.com/virtio-win/kvm-guest-drivers-windows/pull/883 I saw this patch is included in prewhql 235 version. And I have a try with it, but there is no return output when starting virtiofs service without virtiofs attached. Is there any special steps to get the message? (In reply to xiagao from comment #3) > (In reply to Yvugenfi from comment #1) > > Upstream fix addressing the case when service stated without a device: > > https://github.com/virtio-win/kvm-guest-drivers-windows/pull/883 > > I saw this patch is included in prewhql 235 version. And I have a try with > it, but there is no return output when starting virtiofs service without > virtiofs attached. > Is there any special steps to get the message? Sorry, can you please provide the exact steps for starting the service you are using? (In reply to Yvugenfi from comment #4) > > Sorry, can you please provide the exact steps for starting the service you > are using? Sure, I list the steps below. 1. start virtiofsd and ws2022 guest. 2. create virtiofs service. sc create VirtioFsSvc binpath=C:\virtiofs.exe start=auto depend="WinFsp.Launcher/VirtioFsDrv" DisplayName="Virtio FS Service" 3. Stop VirtioFsSvc service 4. disable virtiofs device in device manager 5. try to start VirtioFsSvc service in service manager The service is started successfully and no any message output. (In reply to xiagao from comment #5) > (In reply to Yvugenfi from comment #4) > > > > > Sorry, can you please provide the exact steps for starting the service you > > are using? > > Sure, I list the steps below. > 1. start virtiofsd and ws2022 guest. > 2. create virtiofs service. > sc create VirtioFsSvc binpath=C:\virtiofs.exe start=auto > depend="WinFsp.Launcher/VirtioFsDrv" DisplayName="Virtio FS Service" > 3. Stop VirtioFsSvc service > 4. disable virtiofs device in device manager > 5. try to start VirtioFsSvc service in service manager > > The service is started successfully and no any message output. When the service started as a Windows service, it has no console. So either there should be a log file configured through the registry or to test start the service as an application from the console. (In reply to Yvugenfi from comment #6) > (In reply to xiagao from comment #5) > > (In reply to Yvugenfi from comment #4) > > > > > > > > Sorry, can you please provide the exact steps for starting the service you > > > are using? > > > > Sure, I list the steps below. > > 1. start virtiofsd and ws2022 guest. > > 2. create virtiofs service. > > sc create VirtioFsSvc binpath=C:\virtiofs.exe start=auto > > depend="WinFsp.Launcher/VirtioFsDrv" DisplayName="Virtio FS Service" > > 3. Stop VirtioFsSvc service > > 4. disable virtiofs device in device manager > > 5. try to start VirtioFsSvc service in service manager > > > > The service is started successfully and no any message output. > > When the service started as a Windows service, it has no console. So either > there should be a log file configured through the registry or to test start > the service as an application from the console. I tested with the service way and start virtiofs.exe via cmd line, but there is still no error output. 1. Disable the virtiofs device in device manager 2. f:\viofs\2k22\amd64>virtiofs.exe -d -1 -D - The VirtIO-FS service will start and wait for the device. The service VirtIO-FS has been started. -----> no debug log, and no shared disk shown. 3. add DebugFlags (DWORD) param with C:\virtiofs.log value on the registry, reboot guest, and start virtiofs service. ----> there is no any log in C:\virtiofs.log. Hi
> The VirtIO-FS service will start and wait for the device.
This is the line.
In case of service, it should be printed to event log. (In reply to Viktor Prutyanov from comment #9) > In case of service, it should be printed to event log. I just had a try and saw there were two 'information' level messages shown, one is 'The VirtIO-FS service will start and wait for the device' and the other is 'The service VirtIO-FS has been started'. I think the return message is good. I remember Yan mentioned before in virtio-win meeting, the service will be started successfully even though the device is disabled. But I still want to ask if there is some way to let the service fail to start if the driver is disabled. Thanks. (In reply to xiagao from comment #10) > (In reply to Viktor Prutyanov from comment #9) > > In case of service, it should be printed to event log. > > I just had a try and saw there were two 'information' level messages shown, > one is 'The VirtIO-FS service will start and wait for the device' and the > other is 'The service VirtIO-FS has been started'. > > I think the return message is good. > > I remember Yan mentioned before in virtio-win meeting, the service will be > started successfully even though the device is disabled. But I still want to > ask if there is some way to let the service fail to start if the driver is > disabled. There is no such way now. > > Thanks. G(In reply to Yvugenfi from comment #11) > (In reply to xiagao from comment #10) > > (In reply to Viktor Prutyanov from comment #9) > > > In case of service, it should be printed to event log. > > > > I just had a try and saw there were two 'information' level messages shown, > > one is 'The VirtIO-FS service will start and wait for the device' and the > > other is 'The service VirtIO-FS has been started'. > > > > I think the return message is good. > > > > I remember Yan mentioned before in virtio-win meeting, the service will be > > started successfully even though the device is disabled. But I still want to > > ask if there is some way to let the service fail to start if the driver is > > disabled. > > There is no such way now. Get it, then it's ok for QE. Btw, could you change the bug status regarding it already included in prewhql-0.1-235. > > > > > Thanks. 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 (virtio-win 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-2023:6388 |