Merge remote-tracking branch 'qemu-project/master'
[qemu/ar7.git] / tests / qemu-iotests / 207.out
blob05cf7532836cc21ab77a69d4ea7242138832993a
1 === 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 {"return": {}}
5 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
6 {"return": {}}
8 image: TEST_IMG
9 file format: IMGFMT
10 virtual size: 4 MiB (4194304 bytes)
13 image: TEST_IMG
14 file format: IMGFMT
15 virtual size: 4 MiB (4194304 bytes)
17 === Test host-key-check options ===
19 --- no host key checking --
21 {"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}}}
22 {"return": {}}
23 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
24 {"return": {}}
26 image: TEST_IMG
27 file format: IMGFMT
28 virtual size: 8 MiB (8388608 bytes)
30 --- known_hosts key checking --
32 {"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}}}
33 {"return": {}}
34 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
35 {"return": {}}
37 image: TEST_IMG
38 file format: IMGFMT
39 virtual size: 4 MiB (4194304 bytes)
41 --- explicit md5 key checking --
43 {"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}}}
44 {"return": {}}
45 Job failed: remote host key fingerprint 'md5:HASH' does not match host_key_check 'md5:wrong'
46 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
47 {"return": {}}
49 {"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}}}
50 {"return": {}}
51 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
52 {"return": {}}
54 image: TEST_IMG
55 file format: IMGFMT
56 virtual size: 8 MiB (8388608 bytes)
58 --- explicit sha1 key checking --
60 {"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}}}
61 {"return": {}}
62 Job failed: remote host key fingerprint 'sha1:HASH' does not match host_key_check 'sha1:wrong'
63 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
64 {"return": {}}
66 {"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}}}
67 {"return": {}}
68 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
69 {"return": {}}
71 image: TEST_IMG
72 file format: IMGFMT
73 virtual size: 4 MiB (4194304 bytes)
75 --- explicit sha256 key checking --
77 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "ssh", "location": {"host-key-check": {"hash": "wrong", "mode": "hash", "type": "sha256"}, "path": "TEST_DIR/PID-t.img", "server": {"host": "127.0.0.1", "port": "22"}}, "size": 2097152}}}
78 {"return": {}}
79 Job failed: remote host key fingerprint 'sha256:HASH' does not match host_key_check 'sha256:wrong'
80 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
81 {"return": {}}
83 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": {"driver": "ssh", "location": {"host-key-check": {"hash": "HASH", "mode": "hash", "type": "sha256"}, "path": "TEST_DIR/PID-t.img", "server": {"host": "127.0.0.1", "port": "22"}}, "size": 4194304}}}
84 {"return": {}}
85 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
86 {"return": {}}
88 image: TEST_IMG
89 file format: IMGFMT
90 virtual size: 4 MiB (4194304 bytes)
92 === Invalid path and user ===
94 {"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}}}
95 {"return": {}}
96 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)
97 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
98 {"return": {}}
100 {"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}}}
101 {"return": {}}
102 Job failed: failed to authenticate using publickey authentication and the identities held by your ssh-agent
103 {"execute": "job-dismiss", "arguments": {"id": "job0"}}
104 {"return": {}}