2018-02-08 19:06:41 +00:00
|
|
|
=== Successful image creation (defaults) ===
|
|
|
|
|
2018-05-25 16:24:51 +00:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'ssh', 'location': {'path': 'TEST_DIR/PID-t.img', 'server': {'host': '127.0.0.1', 'port': '22'}}, 'size': 4194304}}}
|
2018-05-23 16:19:00 +00:00
|
|
|
{u'return': {}}
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
2018-02-08 19:06:41 +00:00
|
|
|
|
2018-05-23 16:19:00 +00:00
|
|
|
image: json:{"driver": "IMGFMT", "file": {"server.host": "127.0.0.1", "server.port": "22", "driver": "ssh", "path": "TEST_IMG"}}
|
2018-02-08 19:06:41 +00:00
|
|
|
file format: IMGFMT
|
|
|
|
virtual size: 4.0M (4194304 bytes)
|
|
|
|
|
2018-05-23 16:19:00 +00:00
|
|
|
|
|
|
|
image: TEST_IMG
|
2018-02-08 19:06:41 +00:00
|
|
|
file format: IMGFMT
|
|
|
|
virtual size: 4.0M (4194304 bytes)
|
|
|
|
|
|
|
|
=== Test host-key-check options ===
|
|
|
|
|
2018-05-25 16:24:51 +00:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'ssh', 'location': {'path': 'TEST_DIR/PID-t.img', 'host-key-check': {'mode': 'none'}, 'server': {'host': '127.0.0.1', 'port': '22'}}, 'size': 8388608}}}
|
2018-05-23 16:19:00 +00:00
|
|
|
{u'return': {}}
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
2018-02-08 19:06:41 +00:00
|
|
|
|
2018-05-23 16:19:00 +00:00
|
|
|
image: json:{"driver": "IMGFMT", "file": {"server.host": "127.0.0.1", "server.port": "22", "driver": "ssh", "path": "TEST_IMG"}}
|
2018-02-08 19:06:41 +00:00
|
|
|
file format: IMGFMT
|
|
|
|
virtual size: 8.0M (8388608 bytes)
|
2018-05-23 16:19:00 +00:00
|
|
|
|
2018-05-25 16:24:51 +00:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'ssh', 'location': {'path': 'TEST_DIR/PID-t.img', 'host-key-check': {'mode': 'known_hosts'}, 'server': {'host': '127.0.0.1', 'port': '22'}}, 'size': 4194304}}}
|
2018-05-23 16:19:00 +00:00
|
|
|
{u'return': {}}
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
|
|
|
|
|
|
|
image: json:{"driver": "IMGFMT", "file": {"server.host": "127.0.0.1", "server.port": "22", "driver": "ssh", "path": "TEST_IMG"}}
|
2018-02-08 19:06:41 +00:00
|
|
|
file format: IMGFMT
|
|
|
|
virtual size: 4.0M (4194304 bytes)
|
2018-05-23 16:19:00 +00:00
|
|
|
|
2018-05-25 16:24:51 +00:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'ssh', 'location': {'path': 'TEST_DIR/PID-t.img', 'host-key-check': {'hash': 'wrong', 'type': 'md5', 'mode': 'hash'}, 'server': {'host': '127.0.0.1', 'port': '22'}}, 'size': 2097152}}}
|
2018-05-23 16:19:00 +00:00
|
|
|
{u'return': {}}
|
|
|
|
Job failed: remote host key does not match host_key_check 'wrong'
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
|
|
|
|
2018-05-25 16:24:51 +00:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'ssh', 'location': {'path': 'TEST_DIR/PID-t.img', 'host-key-check': {'hash': HASH, 'type': 'md5', 'mode': 'hash'}, 'server': {'host': '127.0.0.1', 'port': '22'}}, 'size': 8388608}}}
|
2018-05-23 16:19:00 +00:00
|
|
|
{u'return': {}}
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
|
|
|
|
|
|
|
image: json:{"driver": "IMGFMT", "file": {"server.host": "127.0.0.1", "server.port": "22", "driver": "ssh", "path": "TEST_IMG"}}
|
2018-02-08 19:06:41 +00:00
|
|
|
file format: IMGFMT
|
|
|
|
virtual size: 8.0M (8388608 bytes)
|
2018-05-23 16:19:00 +00:00
|
|
|
|
2018-05-25 16:24:51 +00:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'ssh', 'location': {'path': 'TEST_DIR/PID-t.img', 'host-key-check': {'hash': 'wrong', 'type': 'sha1', 'mode': 'hash'}, 'server': {'host': '127.0.0.1', 'port': '22'}}, 'size': 2097152}}}
|
2018-05-23 16:19:00 +00:00
|
|
|
{u'return': {}}
|
|
|
|
Job failed: remote host key does not match host_key_check 'wrong'
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
|
|
|
|
2018-05-25 16:24:51 +00:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'ssh', 'location': {'path': 'TEST_DIR/PID-t.img', 'host-key-check': {'hash': HASH, 'type': 'sha1', 'mode': 'hash'}, 'server': {'host': '127.0.0.1', 'port': '22'}}, 'size': 4194304}}}
|
2018-05-23 16:19:00 +00:00
|
|
|
{u'return': {}}
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
|
|
|
|
|
|
|
image: json:{"driver": "IMGFMT", "file": {"server.host": "127.0.0.1", "server.port": "22", "driver": "ssh", "path": "TEST_IMG"}}
|
2018-02-08 19:06:41 +00:00
|
|
|
file format: IMGFMT
|
|
|
|
virtual size: 4.0M (4194304 bytes)
|
|
|
|
|
|
|
|
=== Invalid path and user ===
|
|
|
|
|
2018-05-25 16:24:51 +00:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'ssh', 'location': {'path': '/this/is/not/an/existing/path', 'host-key-check': {'mode': 'none'}, 'server': {'host': '127.0.0.1', 'port': '22'}}, 'size': 4194304}}}
|
2018-05-23 16:19:00 +00:00
|
|
|
{u'return': {}}
|
|
|
|
Job failed: failed to open remote file '/this/is/not/an/existing/path': Failed opening remote file (libssh2 error code: -31)
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
|
|
|
|
2018-05-25 16:24:51 +00:00
|
|
|
{'execute': 'blockdev-create', 'arguments': {'job_id': 'job0', 'options': {'driver': 'ssh', 'location': {'path': 'TEST_DIR/PID-t.img', 'host-key-check': {'mode': 'none'}, 'user': 'invalid user', 'server': {'host': '127.0.0.1', 'port': '22'}}, 'size': 4194304}}}
|
2018-05-23 16:19:00 +00:00
|
|
|
{u'return': {}}
|
|
|
|
Job failed: failed to authenticate using publickey authentication and the identities held by your ssh-agent
|
|
|
|
{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}}
|
|
|
|
{u'return': {}}
|
2018-02-08 19:06:41 +00:00
|
|
|
|