xref: /openbmc/qemu/tests/qemu-iotests/207.out (revision 48f1fcd5)
156ea7450SKevin Wolf=== Successful image creation (defaults) ===
256ea7450SKevin Wolf
38a57a4beSMax Reitz{"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}}}
4e21b5f34SMax Reitz{"return": {}}
5e21b5f34SMax Reitz{"execute": "job-dismiss", "arguments": {"id": "job0"}}
6e21b5f34SMax Reitz{"return": {}}
756ea7450SKevin Wolf
8b8c1f901SMax Reitzimage: TEST_IMG
956ea7450SKevin Wolffile format: IMGFMT
10de38b500SEric Blakevirtual size: 4 MiB (4194304 bytes)
1156ea7450SKevin Wolf
1200af1935SKevin Wolf
1300af1935SKevin Wolfimage: TEST_IMG
1456ea7450SKevin Wolffile format: IMGFMT
15de38b500SEric Blakevirtual size: 4 MiB (4194304 bytes)
1656ea7450SKevin Wolf
1756ea7450SKevin Wolf=== Test host-key-check options ===
1856ea7450SKevin Wolf
19bf783261SDaniel P. Berrangé--- no host key checking --
20bf783261SDaniel P. Berrangé
218a57a4beSMax Reitz{"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}}}
22e21b5f34SMax Reitz{"return": {}}
23e21b5f34SMax Reitz{"execute": "job-dismiss", "arguments": {"id": "job0"}}
24e21b5f34SMax Reitz{"return": {}}
2556ea7450SKevin Wolf
26b8c1f901SMax Reitzimage: TEST_IMG
2756ea7450SKevin Wolffile format: IMGFMT
28de38b500SEric Blakevirtual size: 8 MiB (8388608 bytes)
2956ea7450SKevin Wolf
30bf783261SDaniel P. Berrangé--- known_hosts key checking --
31bf783261SDaniel P. Berrangé
328a57a4beSMax Reitz{"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}}}
33e21b5f34SMax Reitz{"return": {}}
34e21b5f34SMax Reitz{"execute": "job-dismiss", "arguments": {"id": "job0"}}
35e21b5f34SMax Reitz{"return": {}}
3600af1935SKevin Wolf
37b8c1f901SMax Reitzimage: TEST_IMG
3856ea7450SKevin Wolffile format: IMGFMT
39de38b500SEric Blakevirtual size: 4 MiB (4194304 bytes)
4056ea7450SKevin Wolf
41bf783261SDaniel P. Berrangé--- explicit md5 key checking --
42bf783261SDaniel P. Berrangé
438a57a4beSMax Reitz{"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}}}
44e21b5f34SMax Reitz{"return": {}}
45*48f1fcd5SHanna ReitzJob failed: remote host key fingerprint 'md5:HASH' does not match host_key_check 'md5:wrong'
46e21b5f34SMax Reitz{"execute": "job-dismiss", "arguments": {"id": "job0"}}
47e21b5f34SMax Reitz{"return": {}}
4800af1935SKevin Wolf
498a57a4beSMax Reitz{"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}}}
50e21b5f34SMax Reitz{"return": {}}
51e21b5f34SMax Reitz{"execute": "job-dismiss", "arguments": {"id": "job0"}}
52e21b5f34SMax Reitz{"return": {}}
5300af1935SKevin Wolf
54b8c1f901SMax Reitzimage: TEST_IMG
5556ea7450SKevin Wolffile format: IMGFMT
56de38b500SEric Blakevirtual size: 8 MiB (8388608 bytes)
5756ea7450SKevin Wolf
58bf783261SDaniel P. Berrangé--- explicit sha1 key checking --
59bf783261SDaniel P. Berrangé
608a57a4beSMax Reitz{"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}}}
61e21b5f34SMax Reitz{"return": {}}
62*48f1fcd5SHanna ReitzJob failed: remote host key fingerprint 'sha1:HASH' does not match host_key_check 'sha1:wrong'
63e21b5f34SMax Reitz{"execute": "job-dismiss", "arguments": {"id": "job0"}}
64e21b5f34SMax Reitz{"return": {}}
6500af1935SKevin Wolf
668a57a4beSMax Reitz{"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}}}
67e21b5f34SMax Reitz{"return": {}}
68e21b5f34SMax Reitz{"execute": "job-dismiss", "arguments": {"id": "job0"}}
69e21b5f34SMax Reitz{"return": {}}
7000af1935SKevin Wolf
71b8c1f901SMax Reitzimage: TEST_IMG
7256ea7450SKevin Wolffile format: IMGFMT
73de38b500SEric Blakevirtual size: 4 MiB (4194304 bytes)
7456ea7450SKevin Wolf
75bf783261SDaniel P. Berrangé--- explicit sha256 key checking --
76bf783261SDaniel P. Berrangé
77bf783261SDaniel P. Berrangé{"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}}}
78bf783261SDaniel P. Berrangé{"return": {}}
79*48f1fcd5SHanna ReitzJob failed: remote host key fingerprint 'sha256:HASH' does not match host_key_check 'sha256:wrong'
80bf783261SDaniel P. Berrangé{"execute": "job-dismiss", "arguments": {"id": "job0"}}
81bf783261SDaniel P. Berrangé{"return": {}}
82bf783261SDaniel P. Berrangé
83bf783261SDaniel P. Berrangé{"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}}}
84bf783261SDaniel P. Berrangé{"return": {}}
85bf783261SDaniel P. Berrangé{"execute": "job-dismiss", "arguments": {"id": "job0"}}
86bf783261SDaniel P. Berrangé{"return": {}}
87bf783261SDaniel P. Berrangé
88bf783261SDaniel P. Berrangéimage: TEST_IMG
89bf783261SDaniel P. Berrangéfile format: IMGFMT
90bf783261SDaniel P. Berrangévirtual size: 4 MiB (4194304 bytes)
91bf783261SDaniel P. Berrangé
9256ea7450SKevin Wolf=== Invalid path and user ===
9356ea7450SKevin Wolf
948a57a4beSMax Reitz{"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}}}
95e21b5f34SMax Reitz{"return": {}}
96b10d49d7SPino ToscanoJob 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)
97e21b5f34SMax Reitz{"execute": "job-dismiss", "arguments": {"id": "job0"}}
98e21b5f34SMax Reitz{"return": {}}
9956ea7450SKevin Wolf
1008a57a4beSMax Reitz{"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}}}
101e21b5f34SMax Reitz{"return": {}}
10200af1935SKevin WolfJob failed: failed to authenticate using publickey authentication and the identities held by your ssh-agent
103e21b5f34SMax Reitz{"execute": "job-dismiss", "arguments": {"id": "job0"}}
104e21b5f34SMax Reitz{"return": {}}
10500af1935SKevin Wolf
106