2018-03-20 15:33:52 +03:00
|
|
|
=== Successful image creation (defaults) ===
|
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'size': 0, 'driver': 'file', 'filename': 'TEST_DIR/PID-t.vhdx'}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
|
|
|
|
|
|
|
{'execute': 'blockdev-add', 'arguments': {'node_name': 'imgfile', 'driver': 'file', 'filename': 'TEST_DIR/PID-t.vhdx'}}
|
|
|
|
{u'return': {}}
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'vhdx', 'file': 'imgfile', 'size': 134217728}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
2018-03-20 15:33:52 +03:00
|
|
|
|
2018-05-23 19:19:00 +03:00
|
|
|
image: TEST_IMG
|
2018-03-20 15:33:52 +03:00
|
|
|
file format: IMGFMT
|
|
|
|
virtual size: 128M (134217728 bytes)
|
2018-05-23 19:19:00 +03:00
|
|
|
cluster_size: 8388608
|
2018-03-20 15:33:52 +03:00
|
|
|
|
|
|
|
=== Successful image creation (explicit defaults) ===
|
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'size': 0, 'driver': 'file', 'filename': 'TEST_DIR/PID-t.vhdx'}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
2018-03-20 15:33:52 +03:00
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'block-size': 8388608, 'driver': 'vhdx', 'subformat': 'dynamic', 'log-size': 1048576, 'file': {'driver': 'file', 'filename': 'TEST_DIR/PID-t.vhdx'}, 'block-state-zero': True, 'size': 67108864}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
|
|
|
|
|
|
|
image: TEST_IMG
|
2018-03-20 15:33:52 +03:00
|
|
|
file format: IMGFMT
|
|
|
|
virtual size: 64M (67108864 bytes)
|
2018-05-23 19:19:00 +03:00
|
|
|
cluster_size: 8388608
|
2018-03-20 15:33:52 +03:00
|
|
|
|
|
|
|
=== Successful image creation (with non-default options) ===
|
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'size': 0, 'driver': 'file', 'filename': 'TEST_DIR/PID-t.vhdx'}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'block-size': 268435456, 'driver': 'vhdx', 'subformat': 'fixed', 'log-size': 8388608, 'file': {'driver': 'file', 'filename': 'TEST_DIR/PID-t.vhdx'}, 'block-state-zero': False, 'size': 33554432}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
2018-03-20 15:33:52 +03:00
|
|
|
|
2018-05-23 19:19:00 +03:00
|
|
|
image: TEST_IMG
|
2018-03-20 15:33:52 +03:00
|
|
|
file format: IMGFMT
|
|
|
|
virtual size: 32M (33554432 bytes)
|
2018-05-23 19:19:00 +03:00
|
|
|
cluster_size: 268435456
|
2018-03-20 15:33:52 +03:00
|
|
|
|
|
|
|
=== Invalid BlockdevRef ===
|
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'vhdx', 'file': "this doesn't exist", 'size': 33554432}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
Job failed: Cannot find device=this doesn't exist nor node_name=this doesn't exist
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
2018-03-20 15:33:52 +03:00
|
|
|
|
|
|
|
=== Zero size ===
|
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'vhdx', 'file': 'node0', 'size': 0}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
2018-03-20 15:33:52 +03:00
|
|
|
|
2018-05-23 19:19:00 +03:00
|
|
|
image: TEST_IMG
|
2018-03-20 15:33:52 +03:00
|
|
|
file format: IMGFMT
|
|
|
|
virtual size: 0 (0 bytes)
|
2018-05-23 19:19:00 +03:00
|
|
|
cluster_size: 8388608
|
2018-03-20 15:33:52 +03:00
|
|
|
|
|
|
|
=== Maximum size ===
|
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'vhdx', 'file': 'node0', 'size': 70368744177664}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
2018-03-20 15:33:52 +03:00
|
|
|
|
2018-05-23 19:19:00 +03:00
|
|
|
image: TEST_IMG
|
2018-03-20 15:33:52 +03:00
|
|
|
file format: IMGFMT
|
|
|
|
virtual size: 64T (70368744177664 bytes)
|
2018-05-23 19:19:00 +03:00
|
|
|
cluster_size: 67108864
|
2018-03-20 15:33:52 +03:00
|
|
|
|
|
|
|
=== Invalid sizes ===
|
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'vhdx', 'file': 'node0', 'size': 18446744073709551104L}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
Job failed: Image size too large; max of 64TB
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'vhdx', 'file': 'node0', 'size': 9223372036854775808L}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
Job failed: Image size too large; max of 64TB
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'vhdx', 'file': 'node0', 'size': 9223372036854775296}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
Job failed: Image size too large; max of 64TB
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'vhdx', 'file': 'node0', 'size': 70368744177665}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
Job failed: Image size too large; max of 64TB
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
2018-03-20 15:33:52 +03:00
|
|
|
|
|
|
|
=== Invalid block size ===
|
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'vhdx', 'block-size': 1234567, 'file': 'node0', 'size': 67108864}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
Job failed: Block size must be a multiple of 1 MB
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'vhdx', 'block-size': 128, 'file': 'node0', 'size': 67108864}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
Job failed: Block size must be a multiple of 1 MB
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'vhdx', 'block-size': 3145728, 'file': 'node0', 'size': 67108864}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
Job failed: Block size must be a power of two
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'vhdx', 'block-size': 536870912, 'file': 'node0', 'size': 67108864}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
Job failed: Block size must not exceed 268435456
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'vhdx', 'block-size': 0, 'file': 'node0', 'size': 67108864}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
Job failed: Block size must be a multiple of 1 MB
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
2018-03-20 15:33:52 +03:00
|
|
|
|
|
|
|
=== Invalid log size ===
|
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'log-size': 1234567, 'driver': 'vhdx', 'file': 'node0', 'size': 67108864}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
Job failed: Log size must be a multiple of 1 MB
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'log-size': 128, 'driver': 'vhdx', 'file': 'node0', 'size': 67108864}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
Job failed: Log size must be a multiple of 1 MB
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'log-size': 4294967296, 'driver': 'vhdx', 'file': 'node0', 'size': 67108864}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
Job failed: Log size must be smaller than 4 GB
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
|
|
|
|
2018-05-25 19:24:51 +03:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'log-size': 0, 'driver': 'vhdx', 'file': 'node0', 'size': 67108864}}}
|
2018-05-23 19:19:00 +03:00
|
|
|
{u'return': {}}
|
|
|
|
Job failed: Log size must be a multiple of 1 MB
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
|
|
|
|