1 QA output created by 233
3 == preparing TLS creds ==
4 Generating a self signed certificate...
5 Generating a self signed certificate...
6 Generating a signed certificate...
7 Generating a signed certificate...
8 Generating a signed certificate...
9 Generating a signed certificate...
12 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
13 wrote 1048576/1048576 bytes at offset 1048576
14 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
16 == check TLS client to plain server fails ==
17 qemu-img: Could not open 'driver=nbd,host=127.0.0.1,port=PORT,tls-creds=tls0': Denied by server for option 5 (starttls)
18 server reported: TLS not configured
19 qemu-nbd: Denied by server for option 5 (starttls)
20 server reported: TLS not configured
22 == check plain client to TLS server fails ==
23 qemu-img: Could not open 'nbd://localhost:PORT': TLS negotiation required before option 7 (go)
24 Did you forget a valid tls-creds?
25 server reported: Option 0x7 not permitted before TLS
26 qemu-nbd: TLS negotiation required before option 3 (list)
27 Did you forget a valid tls-creds?
28 server reported: Option 0x3 not permitted before TLS
31 image: nbd://127.0.0.1:PORT
33 virtual size: 64 MiB (67108864 bytes)
34 disk size: unavailable
35 image: nbd://127.0.0.1:PORT
37 virtual size: 64 MiB (67108864 bytes)
38 disk size: unavailable
42 flags: 0xced ( flush fua trim zeroes df cache fast-zero )
46 available meta contexts: 1
49 == check TLS with different CA fails ==
50 qemu-img: Could not open 'driver=nbd,host=127.0.0.1,port=PORT,tls-creds=tls0': The certificate hasn't got a known issuer
51 qemu-nbd: The certificate hasn't got a known issuer
53 == perform I/O over TLS ==
54 read 1048576/1048576 bytes at offset 1048576
55 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
56 wrote 1048576/1048576 bytes at offset 1048576
57 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
58 read 1048576/1048576 bytes at offset 1048576
59 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
61 == check TLS with authorization ==
62 qemu-img: Could not open 'driver=nbd,host=127.0.0.1,port=PORT,tls-creds=tls0': Failed to read option reply: Cannot read from TLS channel: Software caused connection abort
63 qemu-img: Could not open 'driver=nbd,host=127.0.0.1,port=PORT,tls-creds=tls0': Failed to read option reply: Cannot read from TLS channel: Software caused connection abort
65 == final server log ==
66 qemu-nbd: option negotiation failed: Verify failed: No certificate was found.
67 qemu-nbd: option negotiation failed: Verify failed: No certificate was found.
68 qemu-nbd: option negotiation failed: TLS x509 authz check for DISTINGUISHED-NAME is denied
69 qemu-nbd: option negotiation failed: TLS x509 authz check for DISTINGUISHED-NAME is denied