1=== Successful image creation (defaults) === 2 3{'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}}} 4{u'return': {}} 5{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}} 6{u'return': {}} 7 8image: json:{"driver": "IMGFMT", "file": {"server.host": "127.0.0.1", "server.port": "22", "driver": "ssh", "path": "TEST_IMG"}} 9file format: IMGFMT 10virtual size: 4.0M (4194304 bytes) 11 12 13image: TEST_IMG 14file format: IMGFMT 15virtual size: 4.0M (4194304 bytes) 16 17=== Test host-key-check options === 18 19{'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}}} 20{u'return': {}} 21{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}} 22{u'return': {}} 23 24image: json:{"driver": "IMGFMT", "file": {"server.host": "127.0.0.1", "server.port": "22", "driver": "ssh", "path": "TEST_IMG"}} 25file format: IMGFMT 26virtual size: 8.0M (8388608 bytes) 27 28{'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}}} 29{u'return': {}} 30{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}} 31{u'return': {}} 32 33image: json:{"driver": "IMGFMT", "file": {"server.host": "127.0.0.1", "server.port": "22", "driver": "ssh", "path": "TEST_IMG"}} 34file format: IMGFMT 35virtual size: 4.0M (4194304 bytes) 36 37{'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}}} 38{u'return': {}} 39Job failed: remote host key does not match host_key_check 'wrong' 40{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}} 41{u'return': {}} 42 43{'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}}} 44{u'return': {}} 45{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}} 46{u'return': {}} 47 48image: json:{"driver": "IMGFMT", "file": {"server.host": "127.0.0.1", "server.port": "22", "driver": "ssh", "path": "TEST_IMG"}} 49file format: IMGFMT 50virtual size: 8.0M (8388608 bytes) 51 52{'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}}} 53{u'return': {}} 54Job failed: remote host key does not match host_key_check 'wrong' 55{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}} 56{u'return': {}} 57 58{'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}}} 59{u'return': {}} 60{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}} 61{u'return': {}} 62 63image: json:{"driver": "IMGFMT", "file": {"server.host": "127.0.0.1", "server.port": "22", "driver": "ssh", "path": "TEST_IMG"}} 64file format: IMGFMT 65virtual size: 4.0M (4194304 bytes) 66 67=== Invalid path and user === 68 69{'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}}} 70{u'return': {}} 71Job failed: failed to open remote file '/this/is/not/an/existing/path': Failed opening remote file (libssh2 error code: -31) 72{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}} 73{u'return': {}} 74 75{'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}}} 76{u'return': {}} 77Job failed: failed to authenticate using publickey authentication and the identities held by your ssh-agent 78{'execute': 'job-dismiss', 'arguments': {'id': 'job0'}} 79{u'return': {}} 80 81