2014-02-22 01:21:21 +04:00
|
|
|
QA output created by 081
|
|
|
|
|
|
|
|
== creating quorum files ==
|
2014-12-09 10:38:03 +03:00
|
|
|
Formatting 'TEST_DIR/1.IMGFMT', fmt=IMGFMT size=10485760
|
|
|
|
Formatting 'TEST_DIR/2.IMGFMT', fmt=IMGFMT size=10485760
|
|
|
|
Formatting 'TEST_DIR/3.IMGFMT', fmt=IMGFMT size=10485760
|
2014-02-22 01:21:21 +04:00
|
|
|
|
|
|
|
== writing images ==
|
|
|
|
wrote 10485760/10485760 bytes at offset 0
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
== checking quorum write ==
|
|
|
|
read 10485760/10485760 bytes at offset 0
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
read 10485760/10485760 bytes at offset 0
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
read 10485760/10485760 bytes at offset 0
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
== corrupting image ==
|
|
|
|
wrote 10485760/10485760 bytes at offset 0
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
== checking quorum correction ==
|
|
|
|
read 10485760/10485760 bytes at offset 0
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
2014-02-22 01:30:38 +04:00
|
|
|
== checking mixed reference/option specification ==
|
2015-10-19 18:53:10 +03:00
|
|
|
Testing:
|
2014-02-22 01:30:38 +04:00
|
|
|
QMP_VERSION
|
|
|
|
{"return": {}}
|
|
|
|
{"return": {}}
|
2015-10-19 18:53:10 +03:00
|
|
|
{"return": {}}
|
2016-03-11 17:14:47 +03:00
|
|
|
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "QUORUM_REPORT_BAD", "data": {"node-name": "drive2", "sectors-count": 20480, "sector-num": 0, "type": "read"}}
|
2014-02-22 01:30:38 +04:00
|
|
|
read 10485760/10485760 bytes at offset 0
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
{"return": ""}
|
2018-12-05 14:01:31 +03:00
|
|
|
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
|
2024-01-18 17:48:23 +03:00
|
|
|
{"return": {}}
|
2014-02-22 01:30:38 +04:00
|
|
|
|
|
|
|
|
2014-06-11 17:24:10 +04:00
|
|
|
== using quorum rewrite corrupted mode ==
|
|
|
|
read 10485760/10485760 bytes at offset 0
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
== checking that quorum has corrected the corrupted file ==
|
|
|
|
read 10485760/10485760 bytes at offset 0
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
2020-11-14 00:17:18 +03:00
|
|
|
== using quorum rewrite corrupted mode without WRITE permission ==
|
|
|
|
-- corrupting --
|
|
|
|
wrote 1048576/1048576 bytes at offset 1048576
|
|
|
|
1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
-- running quorum --
|
|
|
|
Testing: -blockdev file,node-name=file1,filename=TEST_DIR/1.IMGFMT -blockdev file,node-name=file2,filename=TEST_DIR/2.IMGFMT -blockdev file,node-name=file3,filename=TEST_DIR/3.IMGFMT -blockdev {
|
|
|
|
"driver": "quorum",
|
|
|
|
"node-name": "quorum",
|
|
|
|
"read-only": true,
|
|
|
|
"vote-threshold": 2,
|
|
|
|
"rewrite-corrupted": true,
|
|
|
|
"children": [ "file1", "file2", "file3" ]
|
|
|
|
} -device virtio-scsi,id=scsi -device scsi-hd,id=quorum-drive,bus=scsi.0,drive=quorum
|
|
|
|
QMP_VERSION
|
|
|
|
{"return": {}}
|
|
|
|
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "QUORUM_REPORT_BAD", "data": {"node-name": "file2", "sectors-count": 20480, "sector-num": 0, "type": "read"}}
|
|
|
|
read 10485760/10485760 bytes at offset 0
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
{"return": ""}
|
|
|
|
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
|
2024-01-18 17:48:23 +03:00
|
|
|
{"return": {}}
|
2020-11-14 00:17:18 +03:00
|
|
|
|
|
|
|
-- checking that the image has been corrected --
|
|
|
|
read 10485760/10485760 bytes at offset 0
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
2014-02-22 01:21:21 +04:00
|
|
|
== breaking quorum ==
|
|
|
|
wrote 10485760/10485760 bytes at offset 0
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
2014-06-11 17:24:10 +04:00
|
|
|
wrote 10485760/10485760 bytes at offset 0
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
2014-02-22 01:21:21 +04:00
|
|
|
|
|
|
|
== checking that quorum is broken ==
|
2014-11-20 18:27:07 +03:00
|
|
|
read failed: Input/output error
|
2018-10-17 17:33:51 +03:00
|
|
|
|
|
|
|
== checking the blkverify mode with broken content ==
|
|
|
|
quorum: offset=0 bytes=10485760 contents mismatch at offset 0
|
|
|
|
|
|
|
|
== writing the same data to both files ==
|
|
|
|
wrote 10485760/10485760 bytes at offset 0
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
wrote 10485760/10485760 bytes at offset 0
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
== checking the blkverify mode with valid content ==
|
|
|
|
read 10485760/10485760 bytes at offset 0
|
|
|
|
10 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
== checking the blkverify mode with invalid settings ==
|
2019-04-28 18:54:44 +03:00
|
|
|
qemu-io: can't open: blkverify=on can only be set if there are exactly two files and vote-threshold is 2
|
2018-10-18 11:59:04 +03:00
|
|
|
|
|
|
|
== dynamically adding a child to a quorum ==
|
|
|
|
Testing:
|
|
|
|
QMP_VERSION
|
|
|
|
{"return": {}}
|
|
|
|
{"return": {}}
|
|
|
|
{"return": {}}
|
|
|
|
{"return": {}}
|
2018-12-05 14:01:31 +03:00
|
|
|
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
|
2024-01-18 17:48:23 +03:00
|
|
|
{"return": {}}
|
2018-10-18 11:59:04 +03:00
|
|
|
|
|
|
|
Testing:
|
|
|
|
QMP_VERSION
|
|
|
|
{"return": {}}
|
|
|
|
{"return": {}}
|
|
|
|
{"return": {}}
|
|
|
|
{"error": {"class": "GenericError", "desc": "Cannot add a child to a quorum in blkverify mode"}}
|
2018-12-05 14:01:31 +03:00
|
|
|
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
|
2024-01-18 17:48:23 +03:00
|
|
|
{"return": {}}
|
2018-10-18 11:59:04 +03:00
|
|
|
|
|
|
|
|
|
|
|
== dynamically removing a child from a quorum ==
|
|
|
|
Testing:
|
|
|
|
QMP_VERSION
|
|
|
|
{"return": {}}
|
|
|
|
{"return": {}}
|
|
|
|
{"return": {}}
|
2018-12-05 14:01:31 +03:00
|
|
|
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
|
2024-01-18 17:48:23 +03:00
|
|
|
{"return": {}}
|
2018-10-18 11:59:04 +03:00
|
|
|
|
|
|
|
Testing:
|
|
|
|
QMP_VERSION
|
|
|
|
{"return": {}}
|
|
|
|
{"return": {}}
|
|
|
|
{"error": {"class": "GenericError", "desc": "The number of children cannot be lower than the vote threshold 2"}}
|
2018-12-05 14:01:31 +03:00
|
|
|
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
|
2024-01-18 17:48:23 +03:00
|
|
|
{"return": {}}
|
2018-10-18 11:59:04 +03:00
|
|
|
|
|
|
|
Testing:
|
|
|
|
QMP_VERSION
|
|
|
|
{"return": {}}
|
|
|
|
{"error": {"class": "GenericError", "desc": "blkverify=on can only be set if there are exactly two files and vote-threshold is 2"}}
|
2021-03-05 18:19:28 +03:00
|
|
|
{"error": {"class": "GenericError", "desc": "Cannot find device='drive0-quorum' nor node-name='drive0-quorum'"}}
|
2018-12-05 14:01:31 +03:00
|
|
|
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
|
2024-01-18 17:48:23 +03:00
|
|
|
{"return": {}}
|
2018-10-18 11:59:04 +03:00
|
|
|
|
|
|
|
Testing:
|
|
|
|
QMP_VERSION
|
|
|
|
{"return": {}}
|
|
|
|
{"return": {}}
|
|
|
|
{"error": {"class": "GenericError", "desc": "The number of children cannot be lower than the vote threshold 2"}}
|
2018-12-05 14:01:31 +03:00
|
|
|
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}}
|
2024-01-18 17:48:23 +03:00
|
|
|
{"return": {}}
|
2018-10-18 11:59:04 +03:00
|
|
|
|
2014-02-22 01:21:21 +04:00
|
|
|
*** done
|