Bug 1652422

Summary: [virtio-win][vioscsi+viostor] Flush test failed with error "Caught std::exception: invalid stoi argument" -- win2019 guest
Product: Red Hat Enterprise Linux 8 Reporter: Peixiu Hou <phou>
Component: virtio-winAssignee: Vadim Rozenfeld <vrozenfe>
virtio-win sub component: virtio-win-prewhql QA Contact: lijin <lijin>
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: high    
Priority: medium CC: ailan, bruce.chen, knoel, lijin, phou, virt-bugs, xiagao, yvugenfi
Version: 8.0Keywords: TestBlocker
Target Milestone: rc   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-14 01:20:23 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:
Bug Depends On:    
Bug Blocks: 1659244    
Attachments:
Description Flags
win2019 flush test failed package
none
Flush test steps on HLK 1803 controller
none
Flush test steps on HLK 1809 controller none

Description Peixiu Hou 2018-11-22 03:42:46 UTC
Description of problem:
On RHEL8 host, Whql job "Flush Test" failed with error "Caught std::exception: invalid stoi argument", used latest HLK 1809, tested on win2019 guest.

Version-Release number of selected component (if applicable):
kernel-4.18.0-40.el8.x86_64
qemu-kvm-3.0.0-2.module+el8+2208+e41b12e0.x86_64
virtio-win-prewhql-162

How reproducible:
100%

Steps to Reproduce:
1. Boot guest up:
/usr/libexec/qemu-kvm -name 162SCS201964HML -enable-kvm -m 6G -smp 8 -uuid 1f207c1b-0607-4e70-ba15-f5a73b747f6c -nodefconfig -nodefaults -cpu host,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff -chardev socket,id=charmonitor,path=/tmp/162SCS201964HML,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime,driftfix=slew -boot order=cd,menu=on -device piix3-usb-uhci,id=usb -drive file=162SCS201964HML,if=none,id=drive-ide0-0-0,format=raw,cache=none -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -drive file=/home/kvm_autotest_root/iso/ISO/Win2019/en_windows_server_2019_x64_dvd_4cb967d8.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -drive file=162SCS201964HML.vfd,if=floppy,id=drive-fdc0-0-0,format=raw,cache=none -netdev tap,script=/etc/qemu-ifup,downscript=no,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=00:52:24:3b:cc:9a -device usb-tablet,id=input0 -vnc 0.0.0.0:0 -vga std -M q35 -device pcie-root-port,bus=pcie.0,id=root1.0,slot=1 -device virtio-scsi-pci,id=scsi0,bus=root1.0,num_queues=8 -drive file=162SCS201964HML_test.raw,if=none,id=drive-scsi-disk0,format=raw,serial=mike_cao,cache=none -device scsi-hd,bus=scsi0.0,drive=drive-scsi-disk0,id=scsi-disk0
2. On HLK studio submit the job "Flush Test" 
3. Check the result.

Actual results:
Failed

Expected results:
Passed

Additional info:
Tested on rhel7.6 released virtio-win scsi driver(virtio-win-prewhql-160), also hit this issue.

Comment 1 Peixiu Hou 2018-11-22 03:49:24 UTC
Created attachment 1507869 [details]
win2019 flush test failed package

Comment 2 xiagao 2018-11-22 05:26:02 UTC
viostor driver hit the same issue on win2019.

Comment 3 Vadim Rozenfeld 2018-12-06 08:49:07 UTC
do we fully copy with the flush test requirements (I mostly mean PDU controlled over SNMP) as described at https://docs.microsoft.com/en-us/windows-hardware/test/hlk/testref/2dec1f67-b506-4434-8bdf-763147ad8f0b ?

Thanks,
Vadim.

Comment 4 Peixiu Hou 2018-12-06 10:07:29 UTC
(In reply to Vadim Rozenfeld from comment #3)
> do we fully copy with the flush test requirements (I mostly mean PDU
> controlled over SNMP) as described at
> https://docs.microsoft.com/en-us/windows-hardware/test/hlk/testref/2dec1f67-
> b506-4434-8bdf-763147ad8f0b ?
> 

Hi vadim,

We do not set any configuration for other guest as well, only hit this issue on HLK 1809 version. 
And I checked the link your pasted, it seems Flush Test for win10-1809 and win2019 have not been updated, shows supported latest release is win10-1803. 
As we tested before, the flush test step in HLK 1809 is different with in HLK 1803, I saved the pictures for both controller, please refer to attachments.

Thanks~
Peixiu

> Thanks,
> Vadim.

Comment 5 Peixiu Hou 2018-12-06 10:08:49 UTC
Created attachment 1512024 [details]
Flush test steps on HLK 1803 controller

Comment 6 Peixiu Hou 2018-12-06 10:09:26 UTC
Created attachment 1512025 [details]
Flush test steps on HLK 1809 controller

Comment 7 Vadim Rozenfeld 2018-12-11 08:21:34 UTC
(In reply to Peixiu Hou from comment #5)
> Created attachment 1512024 [details]
> Flush test steps on HLK 1803 controller

could you please post hlkx file?

Thanks,
Vadim.

Comment 9 Yvugenfi@redhat.com 2018-12-27 16:12:24 UTC
Support case opened with MS:

Incident Title "Flush Test" is failing on Windows 10 1809 and Windows Server 2019 for paravirtualized storage adapters
Support Request Number:118122719493805

Comment 10 Yvugenfi@redhat.com 2019-01-02 09:22:35 UTC
MS answer:

Hello Yan Vugenfirer,
 
To pass “Flush Test” for Windows server 2019, please reference manual errata# 41719.
 
And I’ll confirm with our product team if you can use this errata for Windows 10 1809 submission. Thanks very much!
 
Best Regards,
Tianwei Yang

Comment 14 xiagao 2019-03-29 04:39:51 UTC
(In reply to Yan Vugenfirer from comment #10)
> MS answer:
> 
> Hello Yan Vugenfirer,
>  
> To pass “Flush Test” for Windows server 2019, please reference manual
> errata# 41719.
>  
> And I’ll confirm with our product team if you can use this errata for
> Windows 10 1809 submission. Thanks very much!
>  
> Best Regards,
> Tianwei Yang

Hi,Yan

We hit the same issue on Windows10-32/64 1809, can we use the errata# 41719 ?

Thanks,
xiaoling

Comment 15 Yvugenfi@redhat.com 2019-03-31 06:45:11 UTC
(In reply to xiagao from comment #14)
> (In reply to Yan Vugenfirer from comment #10)
> > MS answer:
> > 
> > Hello Yan Vugenfirer,
> >  
> > To pass “Flush Test” for Windows server 2019, please reference manual
> > errata# 41719.
> >  
> > And I’ll confirm with our product team if you can use this errata for
> > Windows 10 1809 submission. Thanks very much!
> >  
> > Best Regards,
> > Tianwei Yang
> 
> Hi,Yan
> 
> We hit the same issue on Windows10-32/64 1809, can we use the errata# 41719 ?
> 
> Thanks,
> xiaoling

Yes. When I asked for Windows Server 2019 erratum, I also asked them for Windows 10 1809.

Comment 17 xiagao 2019-10-31 06:26:42 UTC
Hi,Yan

We also hit the same issue on Win10-32/64 1909, can we use the manual errata# 41719 ?

Thanks,
xiaoling

Comment 18 Yvugenfi@redhat.com 2019-10-31 08:14:29 UTC
(In reply to xiagao from comment #17)
> Hi,Yan
> 
> We also hit the same issue on Win10-32/64 1909, can we use the manual
> errata# 41719 ?
> 
> Thanks,
> xiaoling

Yes.

Comment 19 Bruce 2020-06-02 03:59:15 UTC
Hi, Yan

We also hit the same issue on Windows 10 1809 or later. Could you tell us How to use errata# 41719 to pass the HLK"?

Best Wishes,
Bruce Chen

Comment 20 Vadim Rozenfeld 2020-06-02 04:20:46 UTC
(In reply to Bruce from comment #19)
> Hi, Yan
> 
> We also hit the same issue on Windows 10 1809 or later. Could you tell us
> How to use errata# 41719 to pass the HLK"?
> 
> Best Wishes,
> Bruce Chen

IIRC it was a manual errata. You need to apply for it. 
There is some guideline how to do it at 
https://github.com/virtio-win/kvm-guest-drivers-windows/issues/216

Comment 21 Yvugenfi@redhat.com 2020-06-02 07:18:20 UTC
As far as I remember it is applicable for the next versions as well.

I suggest to make a submission and reference the manual errata as usual. If the submission will fail, please tell me and I will open a support case with MS.

Best regards,
Yan.

Comment 22 Yvugenfi@redhat.com 2020-06-02 07:22:20 UTC
(In reply to Bruce from comment #19)
> Hi, Yan
> 
> We also hit the same issue on Windows 10 1809 or later. Could you tell us
> How to use errata# 41719 to pass the HLK"?
> 
> Best Wishes,
> Bruce Chen

Sorry, my mistake. Each company needs to apply for the manual errata. 
You should open support ticket with MS: https://support.microsoft.com/en-us/getsupport?wf=0&tenant=ClassicCommercial&oaspworkflow=start_1.0.0.0&locale=en-us&supportregion=en-us&pesid=15720&ccsid=636045111834205065

Comment 23 Peixiu Hou 2021-06-05 14:47:44 UTC
Hi,Yan

We also hit the same issue on Windows 2022, can we use the manual errata# 41719 ?

Thanks,
Peixiu

Comment 24 Yvugenfi@redhat.com 2021-06-06 06:15:12 UTC
(In reply to Peixiu Hou from comment #23)
> Hi,Yan
> 
> We also hit the same issue on Windows 2022, can we use the manual errata#
> 41719 ?
> 
> Thanks,
> Peixiu

Hi Peixiu,

I think it is better to ask for the new errata for Windows 2022.

Please write the exact build you are using for Windows 2022 and the HLK Kit version.

Also, please open a new BZ.

Thanks,
Yan.

Comment 25 Peixiu Hou 2021-06-07 02:15:51 UTC
(In reply to Yvugenfi from comment #24)
> (In reply to Peixiu Hou from comment #23)
> > Hi,Yan
> > 
> > We also hit the same issue on Windows 2022, can we use the manual errata#
> > 41719 ?
> > 
> > Thanks,
> > Peixiu
> 
> Hi Peixiu,
> 
> I think it is better to ask for the new errata for Windows 2022.
> 
> Please write the exact build you are using for Windows 2022 and the HLK Kit
> version.
> 
> Also, please open a new BZ.
> 

Hi Yan,

I Filed a new bz for this issue: https://bugzilla.redhat.com/show_bug.cgi?id=1968234

Thanks a lot~
Peixiu

> Thanks,
> Yan.