qemu-e2k/tests/qemu-iotests
Andrey Shinkevich a4d925f8f0 iotests: Test NBD client reconnection
The test for an NBD client. The NBD server is disconnected after the
client write request. The NBD client should reconnect and complete
the write operation.

Suggested-by: Denis V. Lunev <den@openvz.org>
Suggested-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Tested-by: Eric Blake <eblake@redhat.com>
Message-Id: <1573529976-815699-1-git-send-email-andrey.shinkevich@virtuozzo.com>
2019-11-18 16:01:31 -06:00
..
sample_images
.gitignore
001
001.out
002 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
002.out
003 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
003.out
004
004.out
005 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
005.out
007 tests/qemu-iotests: Don't use 'seq' in the iotests 2019-07-23 15:53:25 +01:00
007.out
008
008.out
009 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
009.out
010 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
010.out
011 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
011.out
012
012.out
013
013.out
014
014.out
015
015.out
017 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
017.out
018 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
018.out
019 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
019.out
020 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
020.out
021
021.out
022
022.out
023
023.out
024
024.out
025
025.out
026 qemu-iotests: ignore leaks on failure paths in 026 2019-10-10 10:56:17 +02:00
026.out qemu-iotests: ignore leaks on failure paths in 026 2019-10-10 10:56:17 +02:00
026.out.nocache qemu-iotests: ignore leaks on failure paths in 026 2019-10-10 10:56:17 +02:00
027 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
027.out
028 iotests/028: Fix for long $TEST_DIRs 2019-10-14 17:12:48 +02:00
028.out iotests/028: Fix for long $TEST_DIRs 2019-10-14 17:12:48 +02:00
029
029.out
030 iotests: Restrict file Python tests to file 2019-09-10 08:58:43 +02:00
030.out iotests: Add read-only test case to 030 2019-07-15 15:48:40 +02:00
031
031.out
032 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
032.out
033 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
033.out
034 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
034.out
035 tests/qemu-iotests: Don't use 'seq' in the iotests 2019-07-23 15:53:25 +01:00
035.out
036
036.out
037 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
037.out
038
038.out
039 iotests: exclude killed processes from running under Valgrind 2019-09-13 12:18:37 +02:00
039.out iotests: allow Valgrind checking all QEMU processes 2019-09-13 12:18:37 +02:00
040 iotests: Restrict file Python tests to file 2019-09-10 08:58:43 +02:00
040.out iotests: Test commit with a filter on the chain 2019-07-19 13:19:17 +02:00
041 iotests: Restrict file Python tests to file 2019-09-10 08:58:43 +02:00
041.out iotests: Full mirror to existing non-zero image 2019-08-19 17:13:26 +02:00
042
042.out
043
043.out
044 iotests: Remove Python 2 compatibility code 2019-10-04 11:59:16 +02:00
044.out
045 iotests: Restrict file Python tests to file 2019-09-10 08:58:43 +02:00
045.out
046 tests/qemu-iotests: Don't use 'seq' in the iotests 2019-07-23 15:53:25 +01:00
046.out
047
047.out
048
048.out
049
049.out
050
050.out
051 iotests: Valgrind fails with nonexistent directory 2019-09-13 12:18:37 +02:00
051.out Fixes: add read-zeroes to 051.out 2019-07-30 12:25:43 +02:00
051.pc.out IDE: deprecate ide-drive 2019-10-31 05:28:11 -04:00
052 iotests: Unify cache mode quoting 2019-09-03 14:56:06 +02:00
052.out
053
053.out
054
054.out
055 iotests: Restrict file Python tests to file 2019-09-10 08:58:43 +02:00
055.out
056 block/backup: use backup-top instead of write notifiers 2019-10-10 10:56:18 +02:00
056.out iotests: Test backup job with two guest writes 2019-08-06 13:17:17 +02:00
057 iotests: Restrict file Python tests to file 2019-09-10 08:58:43 +02:00
057.out
058
058.out
059 iotests: Keep testing broken relative extent paths 2019-09-03 14:55:35 +02:00
059.out iotests: Keep testing broken relative extent paths 2019-09-03 14:55:35 +02:00
060
060.out
061 iotests: exclude killed processes from running under Valgrind 2019-09-13 12:18:37 +02:00
061.out iotests: allow Valgrind checking all QEMU processes 2019-09-13 12:18:37 +02:00
062
062.out
063 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
063.out
064
064.out
065 iotests: Restrict file Python tests to file 2019-09-10 08:58:43 +02:00
065.out
066
066.out
067
067.out
068
068.out
069
069.out
070
070.out
071 iotests: Check for enabled drivers before testing them 2019-09-03 14:56:06 +02:00
071.out
072 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
072.out
073
073.out
074
074.out
075
075.out
076
076.out
077
077.out
078
078.out
079
079.out
080
080.out
081 iotests: Check for enabled drivers before testing them 2019-09-03 14:56:06 +02:00
081.out
082 iotests: Test qemu-img convert -C --salvage 2019-06-14 15:09:42 +02:00
082.out iotests: Update 082 expected output 2019-07-12 15:42:23 +02:00
083 iotests/083: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
083.out iotests/083: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
084
084.out
085
085.out blockdev: Overlays are not snapshots 2019-06-14 14:16:57 +02:00
086
086.out
087
087.out
088
088.out
089
089.out
090
090.out
091 iotests: Unify cache mode quoting 2019-09-03 14:56:06 +02:00
091.out
092
092.out
093 iotests: Test driver whitelisting in 093 2019-10-28 11:22:30 +01:00
093.out
094
094.out
095
095.out
096 iotests: Restrict file Python tests to file 2019-09-10 08:58:43 +02:00
096.out
097
097.out
098
098.out
099 iotests: Check for enabled drivers before testing them 2019-09-03 14:56:06 +02:00
099.out
101
101.out
102
102.out
103
103.out
104
104.out
105 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
105.out
106
106.out
107
107.out
108
108.out
109
109.out
110 iotests: Disable 110 for vmdk.twoGbMaxExtentSparse 2019-09-03 14:55:35 +02:00
110.out
111
111.out
112
112.out
113
113.out
114
114.out
115
115.out
116
116.out
117
117.out
118 iotests: Skip read-only cases in 118 when run as root 2019-10-25 15:15:01 +02:00
118.out iotests/118: Add -blockdev based tests 2019-08-16 10:25:16 +02:00
119
119.out
120 iotests: Check for enabled drivers before testing them 2019-09-03 14:56:06 +02:00
120.out
121
121.out
122 iotests: Test convert -n to pre-filled image 2019-08-19 17:13:26 +02:00
122.out iotests: Test convert -n to pre-filled image 2019-08-19 17:13:26 +02:00
123
123.out
124 iotests: prepare 124 and 257 bitmap querying for backup-top filter 2019-10-10 10:56:17 +02:00
124.out iotests: Test incremental backup after truncation 2019-08-06 13:17:24 +02:00
125 iotests: Use stat -c %b in 125 2019-10-10 10:56:18 +02:00
125.out
126 iotests: Disable 126 for flat vmdk subformats 2019-09-03 14:55:35 +02:00
126.out
127
127.out
128
128.out
129 iotests: Restrict file Python tests to file 2019-09-10 08:58:43 +02:00
129.out
130
130.out
131
131.out
132 iotests: Restrict file Python tests to file 2019-09-10 08:58:43 +02:00
132.out
133
133.out
134 iotest 134: test cluster-misaligned encrypted write 2019-06-24 15:53:01 +02:00
134.out iotest 134: test cluster-misaligned encrypted write 2019-06-24 15:53:01 +02:00
135
135.out
136 iotests: Test driver whitelisting in 136 2019-10-28 11:22:30 +01:00
136.out
137 iotests: exclude killed processes from running under Valgrind 2019-09-13 12:18:37 +02:00
137.out iotests: allow Valgrind checking all QEMU processes 2019-09-13 12:18:37 +02:00
138
138.out
139 iotests: Restrict file Python tests to file 2019-09-10 08:58:43 +02:00
139.out
140 iotests/140: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
140.out iotests/140: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
141 iotests: Fix 141 when run with qed 2019-08-19 17:13:26 +02:00
141.out block/backup: use backup-top instead of write notifiers 2019-10-10 10:56:18 +02:00
142
142.out
143 iotests/143: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
143.out iotests/143: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
144
144.out
145
145.out
146
146.out
147 iotests/147: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
147.out
148 iotests: Restrict file Python tests to file 2019-09-10 08:58:43 +02:00
148.out
149 tests: fix I/O test for hosts defaulting to LUKSv2 2019-10-10 10:56:18 +02:00
149.out tests: fix I/O test for hosts defaulting to LUKSv2 2019-10-10 10:56:18 +02:00
150
150.out.qcow2 block: posix: Always allocate the first block 2019-09-03 14:55:35 +02:00
150.out.raw block: posix: Always allocate the first block 2019-09-03 14:55:35 +02:00
151 iotests: Restrict file Python tests to file 2019-09-10 08:58:43 +02:00
151.out iotests: Test unaligned blocking mirror write 2019-08-06 13:17:26 +02:00
152 iotests: Restrict file Python tests to file 2019-09-10 08:58:43 +02:00
152.out
153
153.out
154
154.out
155 iotests: Restrict file Python tests to file 2019-09-10 08:58:43 +02:00
155.out
156
156.out
157
157.out
158
158.out
159
159.out
160
160.out
161
161.out
162 iotests/162: Fix for newer Linux 5.3+ 2019-10-10 12:13:23 +02:00
162.out iotests/162: Fix for newer Linux 5.3+ 2019-10-10 12:13:23 +02:00
163 iotests: Remove Python 2 compatibility code 2019-10-04 11:59:16 +02:00
163.out
165 iotests: add test-case to 165 to test reopening qcow2 bitmaps to RW 2019-10-17 17:02:32 -04:00
165.out iotests: add test-case to 165 to test reopening qcow2 bitmaps to RW 2019-10-17 17:02:32 -04:00
169 iotests: Restrict file Python tests to file 2019-09-10 08:58:43 +02:00
169.out
170
170.out
171
171.out
172 Replace '-machine accel=xyz' with '-accel xyz' 2019-09-19 12:01:48 +02:00
172.out
173
173.out
174
174.out
175 iotests: Test allocate_first_block() with O_DIRECT 2019-09-03 14:55:35 +02:00
175.out iotests: Test allocate_first_block() with O_DIRECT 2019-09-03 14:55:35 +02:00
176
176.out
177
177.out
178
178.out.qcow2 block: posix: Always allocate the first block 2019-09-03 14:55:35 +02:00
178.out.raw
179
179.out
181 iotests/181: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
181.out
182 iotests/182: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
182.out iotests: Test failure to loosen restrictions 2019-06-18 16:41:10 +02:00
183 iotests/183: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
183.out
184 iotests: Check for enabled drivers before testing them 2019-09-03 14:56:06 +02:00
184.out
185
185.out
186 iotests: Check for enabled drivers before testing them 2019-09-03 14:56:06 +02:00
186.out iotests: Set read-zeroes on in null block driver for Valgrind 2019-07-19 13:19:09 +02:00
187
187.out
188 iotests: Convert to preallocated encrypted qcow2 2019-08-19 17:13:26 +02:00
188.out iotests: Convert to preallocated encrypted qcow2 2019-08-19 17:13:26 +02:00
189
189.out
190
190.out
191
191.out
192 iotests/192: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
192.out iotests/192: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
194 iotests/194: Create sockets in $SOCK_DIR 2019-10-28 11:22:31 +01:00
194.out
195
195.out
196 iotests: Restrict file Python tests to file 2019-09-10 08:58:43 +02:00
196.out
197 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
197.out
198
198.out
199 iotests: Restrict file Python tests to file 2019-09-10 08:58:43 +02:00
199.out
200
200.out
201 iotests/201: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
201.out
202
202.out
203
203.out
204
204.out
205 iotests/205: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
205.out
206
206.out
207 ssh: switch from libssh2 to libssh 2019-06-24 16:01:04 +02:00
207.out ssh: switch from libssh2 to libssh 2019-06-24 16:01:04 +02:00
208 iotests/208: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
208.out
209 iotests/209: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
209.out
210
210.out
211
211.out
212
212.out
213
213.out
214
214.out
215 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
215.out
216
216.out
217
217.out
218 iotests: Test quitting with job on throttled node 2019-07-19 15:17:55 +02:00
218.out iotests: Test quitting with job on throttled node 2019-07-19 15:17:55 +02:00
219
219.out
220
220.out
221
221.out block: posix: Always allocate the first block 2019-09-03 14:55:35 +02:00
222 iotests/222: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
222.out
223 iotests/223: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
223.out tests: Use iothreads during iotest 223 2019-09-24 07:30:19 -05:00
224
224.out
225
225.out
226
226.out
227 iotests: Set read-zeroes on in null block driver for Valgrind 2019-07-19 13:19:09 +02:00
227.out qapi: add unmap to BlockDeviceStats 2019-10-10 10:56:18 +02:00
228
228.out
229
229.out
231
231.out
232 iotests: skip 232 when run tests as root 2019-09-10 08:58:43 +02:00
232.out
233
233.out nbd/client: Add hint when TLS is missing 2019-09-24 07:30:19 -05:00
234 iotests: Move migration helpers to iotests.py 2019-08-16 10:25:16 +02:00
234.out
235 python/qemu: split QEMUMachine out from underneath __init__.py 2019-07-01 19:02:10 -03:00
235.out
236
236.out
237
237.out
238 iotests: Add virtio-scsi device helper 2019-08-16 16:28:02 -04:00
238.out
239
239.out
240 iotests/240: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
240.out
241 iotests: Let common.nbd create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
241.out
242
242.out
243
243.out
244
244.out
245 iotests: Prefer null-co over null-aio 2019-10-28 11:22:30 +01:00
245.out
246
246.out
247 iotests: extend sleeping time under Valgrind 2019-09-13 12:18:37 +02:00
247.out
248
248.out
249
249.out
250
250.out
251 iotests: Disable broken streamOptimized tests 2019-09-03 14:55:35 +02:00
251.out iotests: Test qemu-img convert --salvage 2019-06-14 15:09:27 +02:00
252
252.out
253
253.out block: posix: Always allocate the first block 2019-09-03 14:55:35 +02:00
254 iotests: test bitmap moving inside 254 2019-08-16 16:28:03 -04:00
254.out iotests: test bitmap moving inside 254 2019-08-16 16:28:03 -04:00
255 iotests: Add @has_quit to vm.shutdown() 2019-07-19 13:19:17 +02:00
255.out
256
256.out block/backup: improve sync=bitmap work estimates 2019-08-16 16:28:03 -04:00
257 block/backup: use backup-top instead of write notifiers 2019-10-10 10:56:18 +02:00
257.out block/backup: use backup-top instead of write notifiers 2019-10-10 10:56:18 +02:00
258 iotests: Add test for concurrent stream/commit 2019-08-16 10:25:16 +02:00
258.out iotests: Add test for concurrent stream/commit 2019-08-16 10:25:16 +02:00
260 iotests: add test 260 to check bitmap life after snapshot + commit 2019-10-17 17:02:32 -04:00
260.out iotests: add test 260 to check bitmap life after snapshot + commit 2019-10-17 17:02:32 -04:00
261 iotests: Test qcow2's snapshot table handling 2019-10-28 11:54:49 +01:00
261.out iotests: Test qcow2's snapshot table handling 2019-10-28 11:54:49 +01:00
262 iotests/262: Switch source/dest VM launch order 2019-10-08 14:28:25 +01:00
262.out iotests/262: Switch source/dest VM launch order 2019-10-08 14:28:25 +01:00
263 qemu-iotests: Add test for bz #1745922 2019-09-16 15:37:12 +02:00
263.out qemu-iotests: Add test for bz #1745922 2019-09-16 15:37:12 +02:00
264 qemu-iotests: restrict 264 to qcow2 only 2019-10-28 13:09:43 +01:00
264.out iotests: test nbd reconnect 2019-10-22 20:51:31 -05:00
265 iotests: Test reverse sub-cluster qcow2 writes 2019-09-10 08:58:43 +02:00
265.out iotests: Test reverse sub-cluster qcow2 writes 2019-09-10 08:58:43 +02:00
266 iotests: Test blockdev-create for vpc 2019-09-10 08:58:43 +02:00
266.out iotests: Test blockdev-create for vpc 2019-09-10 08:58:43 +02:00
267 iotests/267: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
267.out iotests/267: Create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
268 block: Reject misaligned write requests with BDRV_REQ_NO_FALLBACK 2019-10-14 17:12:48 +02:00
268.out block: Reject misaligned write requests with BDRV_REQ_NO_FALLBACK 2019-10-14 17:12:48 +02:00
270 iotests: Test large write request to qcow2 file 2019-10-14 17:12:48 +02:00
270.out iotests: Test large write request to qcow2 file 2019-10-14 17:12:48 +02:00
272 iotests: Add test for 4G+ compressed qcow2 write 2019-11-07 14:37:46 +01:00
272.out iotests: Add test for 4G+ compressed qcow2 write 2019-11-07 14:37:46 +01:00
273 iotests: Test multiple blockdev-snapshot calls 2019-11-18 17:50:08 +01:00
273.out iotests: Test multiple blockdev-snapshot calls 2019-11-18 17:50:08 +01:00
277 iotests: Test NBD client reconnection 2019-11-18 16:01:31 -06:00
277.out iotests: Test NBD client reconnection 2019-11-18 16:01:31 -06:00
check iotests: Fix "no qualified output" error path 2019-11-18 17:50:08 +01:00
common.config
common.filter iotests: Drop TEST_DIR filter from _filter_nbd 2019-10-28 11:22:31 +01:00
common.nbd iotests: Let common.nbd create socket in $SOCK_DIR 2019-10-28 11:22:31 +01:00
common.pattern tests/qemu-iotests: Don't use 'seq' in the iotests 2019-07-23 15:53:25 +01:00
common.qemu
common.rc iotests: Add peek_file* functions 2019-10-28 11:54:13 +01:00
common.tls
group iotests: Test NBD client reconnection 2019-11-18 16:01:31 -06:00
iotests.py iotests: Test NBD client reconnection 2019-11-18 16:01:31 -06:00
Makefile
nbd-fault-injector.py iotests: Test NBD client reconnection 2019-11-18 16:01:31 -06:00
qcow2.py
qed.py
README
socket_scm_helper.c

=== This is the QEMU I/O test suite ===

* Intro

This package contains a simple test suite for the I/O layer of qemu.
It does not require a guest, but only the qemu, qemu-img and qemu-io
binaries.  This does limit it to exercise the low-level I/O path only
but no actual block drivers like ide, scsi or virtio.

* Usage

Just run ./check to run all tests for the raw image format, or ./check
-qcow2 to test the qcow2 image format.  The output of ./check -h explains
additional options to test further image formats or I/O methods.

* Feedback and patches

Please send improvements to the test suite, general feedback or just
reports of failing tests cases to qemu-devel@nongnu.org with a CC:
to qemu-block@nongnu.org.