]>
Commit | Line | Data |
---|---|---|
56ea7450 KW |
1 | === Successful image creation (defaults) === |
2 | ||
8a57a4be | 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}}} |
e21b5f34 HR |
4 | {"return": {}} |
5 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} | |
6 | {"return": {}} | |
56ea7450 | 7 | |
b8c1f901 | 8 | image: TEST_IMG |
56ea7450 | 9 | file format: IMGFMT |
de38b500 | 10 | virtual size: 4 MiB (4194304 bytes) |
56ea7450 | 11 | |
00af1935 KW |
12 | |
13 | image: TEST_IMG | |
56ea7450 | 14 | file format: IMGFMT |
de38b500 | 15 | virtual size: 4 MiB (4194304 bytes) |
56ea7450 KW |
16 | |
17 | === Test host-key-check options === | |
18 | ||
8a57a4be | 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}}} |
e21b5f34 HR |
20 | {"return": {}} |
21 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} | |
22 | {"return": {}} | |
56ea7450 | 23 | |
b8c1f901 | 24 | image: TEST_IMG |
56ea7450 | 25 | file format: IMGFMT |
de38b500 | 26 | virtual size: 8 MiB (8388608 bytes) |
00af1935 | 27 | |
8a57a4be | 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}}} |
e21b5f34 HR |
29 | {"return": {}} |
30 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} | |
31 | {"return": {}} | |
00af1935 | 32 | |
b8c1f901 | 33 | image: TEST_IMG |
56ea7450 | 34 | file format: IMGFMT |
de38b500 | 35 | virtual size: 4 MiB (4194304 bytes) |
00af1935 | 36 | |
8a57a4be | 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}}} |
e21b5f34 | 38 | {"return": {}} |
00af1935 | 39 | Job failed: remote host key does not match host_key_check 'wrong' |
e21b5f34 HR |
40 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
41 | {"return": {}} | |
00af1935 | 42 | |
8a57a4be | 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}}} |
e21b5f34 HR |
44 | {"return": {}} |
45 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} | |
46 | {"return": {}} | |
00af1935 | 47 | |
b8c1f901 | 48 | image: TEST_IMG |
56ea7450 | 49 | file format: IMGFMT |
de38b500 | 50 | virtual size: 8 MiB (8388608 bytes) |
00af1935 | 51 | |
8a57a4be | 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}}} |
e21b5f34 | 53 | {"return": {}} |
00af1935 | 54 | Job failed: remote host key does not match host_key_check 'wrong' |
e21b5f34 HR |
55 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
56 | {"return": {}} | |
00af1935 | 57 | |
8a57a4be | 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}}} |
e21b5f34 HR |
59 | {"return": {}} |
60 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} | |
61 | {"return": {}} | |
00af1935 | 62 | |
b8c1f901 | 63 | image: TEST_IMG |
56ea7450 | 64 | file format: IMGFMT |
de38b500 | 65 | virtual size: 4 MiB (4194304 bytes) |
56ea7450 KW |
66 | |
67 | === Invalid path and user === | |
68 | ||
8a57a4be | 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}}} |
e21b5f34 | 70 | {"return": {}} |
b10d49d7 | 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) |
e21b5f34 HR |
72 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
73 | {"return": {}} | |
00af1935 | 74 | |
8a57a4be | 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}}} |
e21b5f34 | 76 | {"return": {}} |
00af1935 | 77 | Job failed: failed to authenticate using publickey authentication and the identities held by your ssh-agent |
e21b5f34 HR |
78 | {"execute": "job-dismiss", "arguments": {"id": "job0"}} |
79 | {"return": {}} | |
56ea7450 | 80 |