1
1
=== Successful image creation (defaults) ===
2
2
3
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'size': 0, 'driver': 'file', 'filename': 'TEST_DIR/PID-t.qcow2'}}}
3
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'size': 0, 'driver': 'file', 'filename': 'TEST_DIR/PID-t.qcow2'}}}
4
4
{u'return': {}}
5
5
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
6
6
{u'return': {}}
7
7
8
8
{'execute': 'blockdev-add', 'arguments': {'node_name': 'imgfile', 'driver': 'file', 'filename': 'TEST_DIR/PID-t.qcow2'}}
9
9
{u'return': {}}
10
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'qcow2', 'file': 'imgfile', 'size': 134217728}}}
10
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'qcow2', 'file': 'imgfile', 'size': 134217728}}}
11
11
{u'return': {}}
12
12
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
13
13
{u'return': {}}
@@ -24,12 +24,12 @@ Format specific information:
24
24
25
25
=== Successful image creation (inline blockdev-add, explicit defaults) ===
26
26
27
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'nocow': False, 'preallocation': 'off', 'size': 0, 'driver': 'file', 'filename': 'TEST_DIR/PID-t.qcow2'}}}
27
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'nocow': False, 'preallocation': 'off', 'size': 0, 'driver': 'file', 'filename': 'TEST_DIR/PID-t.qcow2'}}}
28
28
{u'return': {}}
29
29
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
30
30
{u'return': {}}
31
31
32
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'cluster-size': 65536, 'refcount-bits': 16, 'version': 'v3', 'preallocation': 'off', 'file': {'driver': 'file', 'filename': 'TEST_DIR/PID-t.qcow2'}, 'lazy-refcounts': False, 'driver': 'qcow2', 'size': 67108864}}}
32
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'cluster-size': 65536, 'refcount-bits': 16, 'version': 'v3', 'preallocation': 'off', 'file': {'driver': 'file', 'filename': 'TEST_DIR/PID-t.qcow2'}, 'lazy-refcounts': False, 'driver': 'qcow2', 'size': 67108864}}}
33
33
{u'return': {}}
34
34
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
35
35
{u'return': {}}
@@ -46,12 +46,12 @@ Format specific information:
46
46
47
47
=== Successful image creation (v3 non-default options) ===
48
48
49
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'nocow': True, 'preallocation': 'falloc', 'size': 0, 'driver': 'file', 'filename': 'TEST_DIR/PID-t.qcow2'}}}
49
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'nocow': True, 'preallocation': 'falloc', 'size': 0, 'driver': 'file', 'filename': 'TEST_DIR/PID-t.qcow2'}}}
50
50
{u'return': {}}
51
51
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
52
52
{u'return': {}}
53
53
54
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'cluster-size': 2097152, 'refcount-bits': 1, 'version': 'v3', 'preallocation': 'metadata', 'file': {'driver': 'file', 'filename': 'TEST_DIR/PID-t.qcow2'}, 'lazy-refcounts': True, 'driver': 'qcow2', 'size': 33554432}}}
54
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'cluster-size': 2097152, 'refcount-bits': 1, 'version': 'v3', 'preallocation': 'metadata', 'file': {'driver': 'file', 'filename': 'TEST_DIR/PID-t.qcow2'}, 'lazy-refcounts': True, 'driver': 'qcow2', 'size': 33554432}}}
55
55
{u'return': {}}
56
56
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
57
57
{u'return': {}}
@@ -68,12 +68,12 @@ Format specific information:
68
68
69
69
=== Successful image creation (v2 non-default options) ===
70
70
71
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'size': 0, 'driver': 'file', 'filename': 'TEST_DIR/PID-t.qcow2'}}}
71
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'size': 0, 'driver': 'file', 'filename': 'TEST_DIR/PID-t.qcow2'}}}
72
72
{u'return': {}}
73
73
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
74
74
{u'return': {}}
75
75
76
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'cluster-size': 512, 'backing-fmt': 'qcow2', 'driver': 'qcow2', 'version': 'v2', 'file': {'driver': 'file', 'filename': 'TEST_DIR/PID-t.qcow2'}, 'backing-file': 'TEST_DIR/PID-t.qcow2.base', 'size': 33554432}}}
76
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'cluster-size': 512, 'backing-fmt': 'qcow2', 'driver': 'qcow2', 'version': 'v2', 'file': {'driver': 'file', 'filename': 'TEST_DIR/PID-t.qcow2'}, 'backing-file': 'TEST_DIR/PID-t.qcow2.base', 'size': 33554432}}}
77
77
{u'return': {}}
78
78
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
79
79
{u'return': {}}
@@ -90,7 +90,7 @@ Format specific information:
90
90
91
91
=== Successful image creation (encrypted) ===
92
92
93
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'encrypt': {'key-secret': 'keysec0', 'iter-time': 10, 'cipher-mode': 'ctr', 'ivgen-hash-alg': 'md5', 'cipher-alg': 'twofish-128', 'format': 'luks', 'ivgen-alg': 'plain64', 'hash-alg': 'sha1'}, 'driver': 'qcow2', 'file': {'driver': 'file', 'filename': 'TEST_DIR/PID-t.qcow2'}, 'size': 33554432}}}
93
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'encrypt': {'key-secret': 'keysec0', 'iter-time': 10, 'cipher-mode': 'ctr', 'ivgen-hash-alg': 'md5', 'cipher-alg': 'twofish-128', 'format': 'luks', 'ivgen-alg': 'plain64', 'hash-alg': 'sha1'}, 'driver': 'qcow2', 'file': {'driver': 'file', 'filename': 'TEST_DIR/PID-t.qcow2'}, 'size': 33554432}}}
94
94
{u'return': {}}
95
95
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
96
96
{u'return': {}}
@@ -144,111 +144,111 @@ Format specific information:
144
144
145
145
=== Invalid BlockdevRef ===
146
146
147
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'qcow2', 'file': "this doesn't exist", 'size': 33554432}}}
147
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'qcow2', 'file': "this doesn't exist", 'size': 33554432}}}
148
148
{u'return': {}}
149
149
Job failed: Cannot find device=this doesn't exist nor node_name=this doesn't exist
150
150
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
151
151
{u'return': {}}
152
152
153
153
=== Invalid sizes ===
154
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'qcow2', 'file': 'node0', 'size': 1234}}}
154
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'qcow2', 'file': 'node0', 'size': 1234}}}
155
155
{u'return': {}}
156
156
Job failed: Image size must be a multiple of 512 bytes
157
157
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
158
158
{u'return': {}}
159
159
160
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'qcow2', 'file': 'node0', 'size': 18446744073709551104L}}}
160
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'qcow2', 'file': 'node0', 'size': 18446744073709551104L}}}
161
161
{u'return': {}}
162
162
Job failed: Could not resize image: Image size cannot be negative
163
163
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
164
164
{u'return': {}}
165
165
166
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'qcow2', 'file': 'node0', 'size': 9223372036854775808L}}}
166
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'qcow2', 'file': 'node0', 'size': 9223372036854775808L}}}
167
167
{u'return': {}}
168
168
Job failed: Could not resize image: Image size cannot be negative
169
169
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
170
170
{u'return': {}}
171
171
172
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'qcow2', 'file': 'node0', 'size': 9223372036854775296}}}
172
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'qcow2', 'file': 'node0', 'size': 9223372036854775296}}}
173
173
{u'return': {}}
174
174
Job failed: Could not resize image: Failed to grow the L1 table: File too large
175
175
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
176
176
{u'return': {}}
177
177
178
178
=== Invalid version ===
179
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'version': 'v1', 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
179
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'version': 'v1', 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
180
180
{u'error': {u'class': u'GenericError', u'desc': u"Invalid parameter 'v1'"}}
181
181
182
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'lazy-refcounts': True, 'version': 'v2', 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
182
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'lazy-refcounts': True, 'version': 'v2', 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
183
183
{u'return': {}}
184
184
Job failed: Lazy refcounts only supported with compatibility level 1.1 and above (use version=v3 or greater)
185
185
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
186
186
{u'return': {}}
187
187
188
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'refcount-bits': 8, 'version': 'v2', 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
188
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'refcount-bits': 8, 'version': 'v2', 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
189
189
{u'return': {}}
190
190
Job failed: Different refcount widths than 16 bits require compatibility level 1.1 or above (use version=v3 or greater)
191
191
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
192
192
{u'return': {}}
193
193
194
194
=== Invalid backing file options ===
195
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'preallocation': 'full', 'driver': 'qcow2', 'backing-file': '/dev/null', 'file': 'node0', 'size': 67108864}}}
195
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'preallocation': 'full', 'driver': 'qcow2', 'backing-file': '/dev/null', 'file': 'node0', 'size': 67108864}}}
196
196
{u'return': {}}
197
197
Job failed: Backing file and preallocation cannot be used at the same time
198
198
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
199
199
{u'return': {}}
200
200
201
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'backing-fmt': 'qcow2', 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
201
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'backing-fmt': 'qcow2', 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
202
202
{u'return': {}}
203
203
Job failed: Backing format cannot be used without backing file
204
204
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
205
205
{u'return': {}}
206
206
207
207
=== Invalid cluster size ===
208
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'cluster-size': 1234, 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
208
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'cluster-size': 1234, 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
209
209
{u'return': {}}
210
210
Job failed: Cluster size must be a power of two between 512 and 2048k
211
211
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
212
212
{u'return': {}}
213
213
214
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'cluster-size': 128, 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
214
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'cluster-size': 128, 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
215
215
{u'return': {}}
216
216
Job failed: Cluster size must be a power of two between 512 and 2048k
217
217
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
218
218
{u'return': {}}
219
219
220
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'cluster-size': 4194304, 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
220
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'cluster-size': 4194304, 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
221
221
{u'return': {}}
222
222
Job failed: Cluster size must be a power of two between 512 and 2048k
223
223
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
224
224
{u'return': {}}
225
225
226
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'cluster-size': 0, 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
226
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'cluster-size': 0, 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
227
227
{u'return': {}}
228
228
Job failed: Cluster size must be a power of two between 512 and 2048k
229
229
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
230
230
{u'return': {}}
231
231
232
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'cluster-size': 512, 'driver': 'qcow2', 'file': 'node0', 'size': 281474976710656}}}
232
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'cluster-size': 512, 'driver': 'qcow2', 'file': 'node0', 'size': 281474976710656}}}
233
233
{u'return': {}}
234
234
Job failed: Could not resize image: Failed to grow the L1 table: File too large
235
235
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
236
236
{u'return': {}}
237
237
238
238
=== Invalid refcount width ===
239
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'refcount-bits': 128, 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
239
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'refcount-bits': 128, 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
240
240
{u'return': {}}
241
241
Job failed: Refcount width must be a power of two and may not exceed 64 bits
242
242
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
243
243
{u'return': {}}
244
244
245
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'refcount-bits': 0, 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
245
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'refcount-bits': 0, 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
246
246
{u'return': {}}
247
247
Job failed: Refcount width must be a power of two and may not exceed 64 bits
248
248
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
249
249
{u'return': {}}
250
250
251
- {'execute': 'x- blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'refcount-bits': 7, 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
251
+ {'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'refcount-bits': 7, 'driver': 'qcow2', 'file': 'node0', 'size': 67108864}}}
252
252
{u'return': {}}
253
253
Job failed: Refcount width must be a power of two and may not exceed 64 bits
254
254
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
0 commit comments