xref: /openbmc/qemu/tests/qemu-iotests/207.out (revision bf783261)
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
19*bf783261SDaniel P. Berrangé--- no host key checking --
20*bf783261SDaniel 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
30*bf783261SDaniel P. Berrangé--- known_hosts key checking --
31*bf783261SDaniel 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
41*bf783261SDaniel P. Berrangé--- explicit md5 key checking --
42*bf783261SDaniel 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": {}}
4500af1935SKevin WolfJob failed: remote host key does not match host_key_check '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
58*bf783261SDaniel P. Berrangé--- explicit sha1 key checking --
59*bf783261SDaniel 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": {}}
6200af1935SKevin WolfJob failed: remote host key does not match host_key_check '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
75*bf783261SDaniel P. Berrangé--- explicit sha256 key checking --
76*bf783261SDaniel P. Berrangé
77*bf783261SDaniel 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}}}
78*bf783261SDaniel P. Berrangé{"return": {}}
79*bf783261SDaniel P. BerrangéJob failed: remote host key does not match host_key_check 'wrong'
80*bf783261SDaniel P. Berrangé{"execute": "job-dismiss", "arguments": {"id": "job0"}}
81*bf783261SDaniel P. Berrangé{"return": {}}
82*bf783261SDaniel P. Berrangé
83*bf783261SDaniel 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}}}
84*bf783261SDaniel P. Berrangé{"return": {}}
85*bf783261SDaniel P. Berrangé{"execute": "job-dismiss", "arguments": {"id": "job0"}}
86*bf783261SDaniel P. Berrangé{"return": {}}
87*bf783261SDaniel P. Berrangé
88*bf783261SDaniel P. Berrangéimage: TEST_IMG
89*bf783261SDaniel P. Berrangéfile format: IMGFMT
90*bf783261SDaniel P. Berrangévirtual size: 4 MiB (4194304 bytes)
91*bf783261SDaniel 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