xref: /openbmc/qemu/tests/qemu-iotests/207.out (revision 24496b8d)
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{"return": {}}
5{"execute": "job-dismiss", "arguments": {"id": "job0"}}
6{"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 MiB (4194304 bytes)
11
12
13image: TEST_IMG
14file format: IMGFMT
15virtual size: 4 MiB (4194304 bytes)
16
17=== Test host-key-check options ===
18
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{"return": {}}
21{"execute": "job-dismiss", "arguments": {"id": "job0"}}
22{"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 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{"return": {}}
30{"execute": "job-dismiss", "arguments": {"id": "job0"}}
31{"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 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": {}}
39Job failed: remote host key does not match host_key_check 'wrong'
40{"execute": "job-dismiss", "arguments": {"id": "job0"}}
41{"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{"return": {}}
45{"execute": "job-dismiss", "arguments": {"id": "job0"}}
46{"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 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": {}}
54Job failed: remote host key does not match host_key_check 'wrong'
55{"execute": "job-dismiss", "arguments": {"id": "job0"}}
56{"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{"return": {}}
60{"execute": "job-dismiss", "arguments": {"id": "job0"}}
61{"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 MiB (4194304 bytes)
66
67=== Invalid path and user ===
68
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": {}}
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{"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": {}}
77Job failed: failed to authenticate using publickey authentication and the identities held by your ssh-agent
78{"execute": "job-dismiss", "arguments": {"id": "job0"}}
79{"return": {}}
80
81