You need to sign in or sign up before continuing.
207.out 3.9 KB
Newer Older
1 2
=== Successful image creation (defaults) ===

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 5 6
{"return": {}}
{"execute": "job-dismiss", "arguments": {"id": "job0"}}
{"return": {}}
7

8
image: TEST_IMG
9
file format: IMGFMT
10
virtual size: 4 MiB (4194304 bytes)
11

12 13

image: TEST_IMG
14
file format: IMGFMT
15
virtual size: 4 MiB (4194304 bytes)
16 17 18

=== Test host-key-check options ===

19
{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "ssh", "location": {"host-key-check": {"mode": "none"}, "path": "TEST_DIR/PID-t.img", "server": {"host": "127.0.0.1", "port": "22"}}, "size": 8388608}}}
20 21 22
{"return": {}}
{"execute": "job-dismiss", "arguments": {"id": "job0"}}
{"return": {}}
23

24
image: TEST_IMG
25
file format: IMGFMT
26
virtual size: 8 MiB (8388608 bytes)
27

28
{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "ssh", "location": {"host-key-check": {"mode": "known_hosts"}, "path": "TEST_DIR/PID-t.img", "server": {"host": "127.0.0.1", "port": "22"}}, "size": 4194304}}}
29 30 31
{"return": {}}
{"execute": "job-dismiss", "arguments": {"id": "job0"}}
{"return": {}}
32

33
image: TEST_IMG
34
file format: IMGFMT
35
virtual size: 4 MiB (4194304 bytes)
36

37
{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "ssh", "location": {"host-key-check": {"hash": "wrong", "mode": "hash", "type": "md5"}, "path": "TEST_DIR/PID-t.img", "server": {"host": "127.0.0.1", "port": "22"}}, "size": 2097152}}}
38
{"return": {}}
39
Job failed: remote host key does not match host_key_check 'wrong'
40 41
{"execute": "job-dismiss", "arguments": {"id": "job0"}}
{"return": {}}
42

43
{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "ssh", "location": {"host-key-check": {"hash": "HASH", "mode": "hash", "type": "md5"}, "path": "TEST_DIR/PID-t.img", "server": {"host": "127.0.0.1", "port": "22"}}, "size": 8388608}}}
44 45 46
{"return": {}}
{"execute": "job-dismiss", "arguments": {"id": "job0"}}
{"return": {}}
47

48
image: TEST_IMG
49
file format: IMGFMT
50
virtual size: 8 MiB (8388608 bytes)
51

52
{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "ssh", "location": {"host-key-check": {"hash": "wrong", "mode": "hash", "type": "sha1"}, "path": "TEST_DIR/PID-t.img", "server": {"host": "127.0.0.1", "port": "22"}}, "size": 2097152}}}
53
{"return": {}}
54
Job failed: remote host key does not match host_key_check 'wrong'
55 56
{"execute": "job-dismiss", "arguments": {"id": "job0"}}
{"return": {}}
57

58
{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "ssh", "location": {"host-key-check": {"hash": "HASH", "mode": "hash", "type": "sha1"}, "path": "TEST_DIR/PID-t.img", "server": {"host": "127.0.0.1", "port": "22"}}, "size": 4194304}}}
59 60 61
{"return": {}}
{"execute": "job-dismiss", "arguments": {"id": "job0"}}
{"return": {}}
62

63
image: TEST_IMG
64
file format: IMGFMT
65
virtual size: 4 MiB (4194304 bytes)
66 67 68

=== Invalid path and user ===

69
{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "ssh", "location": {"host-key-check": {"mode": "none"}, "path": "/this/is/not/an/existing/path", "server": {"host": "127.0.0.1", "port": "22"}}, "size": 4194304}}}
70
{"return": {}}
71
Job failed: failed to open remote file '/this/is/not/an/existing/path': SFTP server: No such file (libssh error code: 1, sftp error code: 2)
72 73
{"execute": "job-dismiss", "arguments": {"id": "job0"}}
{"return": {}}
74

75
{"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "ssh", "location": {"host-key-check": {"mode": "none"}, "path": "TEST_DIR/PID-t.img", "server": {"host": "127.0.0.1", "port": "22"}, "user": "invalid user"}, "size": 4194304}}}
76
{"return": {}}
77
Job failed: failed to authenticate using publickey authentication and the identities held by your ssh-agent
78 79
{"execute": "job-dismiss", "arguments": {"id": "job0"}}
{"return": {}}
80