Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libvirt_scsi_hostdev: Reduce the size of create disk #5178

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

qiankehan
Copy link
Contributor

The disk is too large to cause timeout for guest io checking: [stderr] DEBUG:aexpect.client:[192.168.122.64] Sending command: fdisk -l /dev/sdb && mkfs.ext4 -F /dev/sdb && mkdir -p sdb && mount /dev/sdb sdb && echo teststring > sdb/testfile && umount sdb

Error happens when check disk io in vm: Timeout expired while waiting for shell command to complete: 'fdisk -l /dev/sdb && mkfs.ext4 -F /dev/sdb && mkdir -p sdb && mount /dev/sdb sdb && echo teststring > sdb/testfile && umount sdb'

Reduce them from 1G to 100M.

The disk is too large to cause timeout for guest io checking:
[stderr] DEBUG:aexpect.client:[192.168.122.64] Sending command: fdisk -l /dev/sdb && mkfs.ext4 -F /dev/sdb && mkdir -p sdb && mount /dev/sdb sdb && echo teststring > sdb/testfile && umount sdb

Error happens when check disk io in vm: Timeout expired while waiting for shell command to complete: 'fdisk -l /dev/sdb && mkfs.ext4 -F /dev/sdb && mkdir -p sdb && mount /dev/sdb sdb && echo teststring > sdb/testfile && umount sdb'

Reduce them from 1G to 100M.

Signed-off-by: Han Han <[email protected]>
@qiankehan
Copy link
Contributor Author

Test PASS on libvirt-9.5.0-7.el9_3.x86_64 qemu-kvm-8.0.0-13.el9.x86_64

# for i in {1..10};do avocado run --vt-type libvirt libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.not_readonly.managed_default;done                                                                                                                                                                                                                                                
No python imaging library installed. Screendump and Windows guest BSOD detection are disabled. In order to enable it, please install python-imaging or the equivalent for your distro.                                   
No python imaging library installed. PPM image conversion to JPEG disabled. In order to enable it, please install python-imaging or the equivalent for your distro.                                                      
JOB ID     : 96e38b692a2f9894b6354b8e9cbf33de998578c4                                                                                                                                                                                                                                                                                                                                       
JOB LOG    : /var/lib/avocado/job-results/job-2023-09-12T06.01-96e38b6/job.log                                                                                                                                                                               
 (1/1) type_specific.io-github-autotest-libvirt.libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.not_readonly.managed_default: STARTED           
 (1/1) type_specific.io-github-autotest-libvirt.libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.not_readonly.managed_default: PASS (91.02 s)    
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0                                                                                                                                                                                                                                                                                                           
JOB HTML   : /var/lib/avocado/job-results/job-2023-09-12T06.01-96e38b6/results.html                                                                                                                                                                          
JOB TIME   : 94.14 s                                                                                                                                                                                                                                         
No python imaging library installed. Screendump and Windows guest BSOD detection are disabled. In order to enable it, please install python-imaging or the equivalent for your distro.                                                                                                                          
No python imaging library installed. PPM image conversion to JPEG disabled. In order to enable it, please install python-imaging or the equivalent for your distro.                                                      
JOB ID     : 25409334841424ce87473d57dd12494468ac7c39                                                                                                                                                                    
JOB LOG    : /var/lib/avocado/job-results/job-2023-09-12T06.03-2540933/job.log                                                                                                                                                                               
 (1/1) type_specific.io-github-autotest-libvirt.libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.not_readonly.managed_default: STARTED                                               
 (1/1) type_specific.io-github-autotest-libvirt.libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.not_readonly.managed_default: PASS (107.45 s)   
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0                                                                                                                                        
JOB HTML   : /var/lib/avocado/job-results/job-2023-09-12T06.03-2540933/results.html                                                                                                                                                                          
JOB TIME   : 110.74 s                                                                                                                                                                                                                                        
No python imaging library installed. Screendump and Windows guest BSOD detection are disabled. In order to enable it, please install python-imaging or the equivalent for your distro.                                                                                                                          
No python imaging library installed. PPM image conversion to JPEG disabled. In order to enable it, please install python-imaging or the equivalent for your distro.                                                      
JOB ID     : a07bbf6fb7a5fc19a7b4859d2b2e4beb85c5701d                                                                                                                                                                    
JOB LOG    : /var/lib/avocado/job-results/job-2023-09-12T06.05-a07bbf6/job.log                                                                                           
 (1/1) type_specific.io-github-autotest-libvirt.libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.not_readonly.managed_default: STARTED                                               
 (1/1) type_specific.io-github-autotest-libvirt.libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.not_readonly.managed_default: PASS (107.56 s)   
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0                                                                                                                                        
JOB HTML   : /var/lib/avocado/job-results/job-2023-09-12T06.05-a07bbf6/results.html                                                                                                           
JOB TIME   : 110.86 s                                                                                                                                                                                                                                        
No python imaging library installed. Screendump and Windows guest BSOD detection are disabled. In order to enable it, please install python-imaging or the equivalent for your distro.                                                                       
No python imaging library installed. PPM image conversion to JPEG disabled. In order to enable it, please install python-imaging or the equivalent for your distro.                                                      
JOB ID     : a9ae2c6607a2db6d7ee9849373d8874f48ce3ae5                                                                                                                                                                    
JOB LOG    : /var/lib/avocado/job-results/job-2023-09-12T06.07-a9ae2c6/job.log                              
 (1/1) type_specific.io-github-autotest-libvirt.libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.not_readonly.managed_default: STARTED                                               
 (1/1) type_specific.io-github-autotest-libvirt.libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.not_readonly.managed_default: PASS (107.20 s)   
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0                                                                                                                                        
JOB HTML   : /var/lib/avocado/job-results/job-2023-09-12T06.07-a9ae2c6/results.html                                                                                                           
JOB TIME   : 110.67 s                                                                                                                                                                                                                                        
No python imaging library installed. Screendump and Windows guest BSOD detection are disabled. In order to enable it, please install python-imaging or the equivalent for your distro.                                                                       
No python imaging library installed. PPM image conversion to JPEG disabled. In order to enable it, please install python-imaging or the equivalent for your distro.                                                      
JOB ID     : 6307a78d8ffc81c3ae05f2a292ccf9290aa89c92                                                                                                                                                                                                                                                           
JOB LOG    : /var/lib/avocado/job-results/job-2023-09-12T06.09-6307a78/job.log                              
 (1/1) type_specific.io-github-autotest-libvirt.libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.not_readonly.managed_default: STARTED                                               
 (1/1) type_specific.io-github-autotest-libvirt.libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.not_readonly.managed_default: PASS (108.26 s)                                       
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0                                                                                                                                                                                                                               
JOB HTML   : /var/lib/avocado/job-results/job-2023-09-12T06.09-6307a78/results.html                                                                                                           
JOB TIME   : 111.46 s                                                                                                                                                                                                                                        
No python imaging library installed. Screendump and Windows guest BSOD detection are disabled. In order to enable it, please install python-imaging or the equivalent for your distro.                                                                       
No python imaging library installed. PPM image conversion to JPEG disabled. In order to enable it, please install python-imaging or the equivalent for your distro.                                                                                                                                             
JOB ID     : 015efb45e965942b8075b99f7279a9d52273b3c9                                                                                                                                                                                                                                                           
JOB LOG    : /var/lib/avocado/job-results/job-2023-09-12T06.11-015efb4/job.log                                                                          
 (1/1) type_specific.io-github-autotest-libvirt.libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.not_readonly.managed_default: STARTED                                               
 (1/1) type_specific.io-github-autotest-libvirt.libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.not_readonly.managed_default: PASS (111.30 s)                                                                                          
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0                                                                                                                                                                                                                               
JOB HTML   : /var/lib/avocado/job-results/job-2023-09-12T06.11-015efb4/results.html                                                                                                                                                                                                                                                                                                         
JOB TIME   : 114.41 s                                                                                                                                                                         
No python imaging library installed. Screendump and Windows guest BSOD detection are disabled. In order to enable it, please install python-imaging or the equivalent for your distro.                                                                       
No python imaging library installed. PPM image conversion to JPEG disabled. In order to enable it, please install python-imaging or the equivalent for your distro.                                                                                                                                             
JOB ID     : 5ff3c686cee6c61963dafba4549b8bf34be4098a                                                                                                                                                                                                                                                                                                                                       
JOB LOG    : /var/lib/avocado/job-results/job-2023-09-12T06.13-5ff3c68/job.log                                                                                                                                                                                                                                                                                                              
 (1/1) type_specific.io-github-autotest-libvirt.libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.not_readonly.managed_default: STARTED                                               
 (1/1) type_specific.io-github-autotest-libvirt.libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.                                                                                    
not_readonly.managed_default: PASS (111.53 s)                                                  
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0                                                                                                                                                                                                                                                                                                           
JOB HTML   : /var/lib/avocado/job-results/job-2023-09-12T06.13-5ff3c68/results.html                                                                                                           
JOB TIME   : 114.74 s                                                                          
No python imaging library installed. Screendump and Windows guest BSOD detection are disabled. In order to enable it, please install python-imaging or the equivalent for your distro.                                                                       
No python imaging library installed. PPM image conversion to JPEG disabled. In order to enable it, please install python-imaging or the equivalent for your distro.                                                                                                                                                                                                                         
JOB ID     : b617d2e78abb5940256bb50a60a1492bfe655791                                                                                                                                                                                                                                                                                                                                       
JOB LOG    : /var/lib/avocado/job-results/job-2023-09-12T06.15-b617d2e/job.log                 
 (1/1) type_specific.io-github-autotest-libvirt.libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.not_readonly.managed_default: STARTED                                               
 (1/1) type_specific.io-github-autotest-libvirt.libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.not_readonly.managed_default: PASS (110.89 s)                                       
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0                                                                                                                                                                                                                                                                                                           
JOB HTML   : /var/lib/avocado/job-results/job-2023-09-12T06.15-b617d2e/results.html                                                                                                           
JOB TIME   : 113.96 s                                                                          
No python imaging library installed. Screendump and Windows guest BSOD detection are disabled. In order to enable it, please install python-imaging or the equivalent for your distro.                                                                       
No python imaging library installed. PPM image conversion to JPEG disabled. In order to enable it, please install python-imaging or the equivalent for your distro.                                                                                                                                                                                                                         
JOB ID     : 374ba3d4d7244d834c720d28922966e38a7c0428                                                                                                                                                                                                                                                                                                                                       
JOB LOG    : /var/lib/avocado/job-results/job-2023-09-12T06.17-374ba3d/job.log                 
 (1/1) type_specific.io-github-autotest-libvirt.libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.not_readonly.managed_default: STARTED                                               
 (1/1) type_specific.io-github-autotest-libvirt.libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.not_readonly.managed_default: PASS (109.59 s)                                       
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0                                                                                                                                                                                                                                                                                                           
JOB HTML   : /var/lib/avocado/job-results/job-2023-09-12T06.17-374ba3d/results.html            
JOB TIME   : 112.65 s                                                                                                         
No python imaging library installed. Screendump and Windows guest BSOD detection are disabled. In order to enable it, please install python-imaging or the equivalent for your distro.                                                                       
No python imaging library installed. PPM image conversion to JPEG disabled. In order to enable it, please install python-imaging or the equivalent for your distro.                                                                                          
JOB ID     : aca336fadead8c5b10935bbc6c809f57ab3e3151                                                                         
JOB LOG    : /var/lib/avocado/job-results/job-2023-09-12T06.19-aca336f/job.log                                                
 (1/1) type_specific.io-github-autotest-libvirt.libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.not_readonly.managed_default: STARTED                                               
 (1/1) type_specific.io-github-autotest-libvirt.libvirt_scsi_hostdev.positive_test.multiple_dev.hot_plug.passthrough_local_scsi.sgio_default.rawio_default.not_shareable.not_readonly.managed_default: PASS (106.98 s)                                       
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0                                             
JOB HTML   : /var/lib/avocado/job-results/job-2023-09-12T06.19-aca336f/results.html                                           
JOB TIME   : 110.18 s     

Copy link
Contributor

@chunfuwen chunfuwen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@dzhengfy dzhengfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dzhengfy dzhengfy merged commit 6c2d113 into autotest:master Sep 15, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants