It is interesting to know whether the shutdown cause was 'quit' or 'reset', especially when using "--no-reboot". In that case, a management layer can now determine if the guest wanted a reboot or shutdown, and can act accordingly. Changes the output of the reason in the iotests from 'host-qmp' to 'host-qmp-quit'. This does not break compatibility because the field was introduced in the same version. Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Message-Id: <20181205110131.23049-4-d.csapak@proxmox.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> [Commit message tweaked] Signed-off-by: Markus Armbruster <armbru@redhat.com>
210 lines
4.4 KiB
Plaintext
210 lines
4.4 KiB
Plaintext
QA output created by 227
|
|
|
|
=== blockstats with -drive if=virtio ===
|
|
|
|
Testing: -drive driver=null-co,if=virtio
|
|
{
|
|
QMP_VERSION
|
|
}
|
|
{
|
|
"return": {
|
|
}
|
|
}
|
|
{
|
|
"return": [
|
|
{
|
|
"device": "virtio0",
|
|
"stats": {
|
|
"flush_total_time_ns": 0,
|
|
"wr_highest_offset": 0,
|
|
"wr_total_time_ns": 0,
|
|
"failed_wr_operations": 0,
|
|
"failed_rd_operations": 0,
|
|
"wr_merged": 0,
|
|
"wr_bytes": 0,
|
|
"timed_stats": [
|
|
],
|
|
"failed_flush_operations": 0,
|
|
"account_invalid": true,
|
|
"rd_total_time_ns": 0,
|
|
"flush_operations": 0,
|
|
"wr_operations": 0,
|
|
"rd_merged": 0,
|
|
"rd_bytes": 0,
|
|
"invalid_flush_operations": 0,
|
|
"account_failed": true,
|
|
"rd_operations": 0,
|
|
"invalid_wr_operations": 0,
|
|
"invalid_rd_operations": 0
|
|
},
|
|
"node-name": "NODE_NAME",
|
|
"qdev": "/machine/peripheral-anon/device[0]/virtio-backend"
|
|
}
|
|
]
|
|
}
|
|
{
|
|
"return": {
|
|
}
|
|
}
|
|
{
|
|
"timestamp": {
|
|
"seconds": TIMESTAMP,
|
|
"microseconds": TIMESTAMP
|
|
},
|
|
"event": "SHUTDOWN",
|
|
"data": {
|
|
"guest": false,
|
|
"reason": "host-qmp-quit"
|
|
}
|
|
}
|
|
|
|
|
|
=== blockstats with -drive if=none ===
|
|
|
|
Testing: -drive driver=null-co,if=none
|
|
{
|
|
QMP_VERSION
|
|
}
|
|
{
|
|
"return": {
|
|
}
|
|
}
|
|
{
|
|
"return": [
|
|
{
|
|
"device": "none0",
|
|
"stats": {
|
|
"flush_total_time_ns": 0,
|
|
"wr_highest_offset": 0,
|
|
"wr_total_time_ns": 0,
|
|
"failed_wr_operations": 0,
|
|
"failed_rd_operations": 0,
|
|
"wr_merged": 0,
|
|
"wr_bytes": 0,
|
|
"timed_stats": [
|
|
],
|
|
"failed_flush_operations": 0,
|
|
"account_invalid": true,
|
|
"rd_total_time_ns": 0,
|
|
"flush_operations": 0,
|
|
"wr_operations": 0,
|
|
"rd_merged": 0,
|
|
"rd_bytes": 0,
|
|
"invalid_flush_operations": 0,
|
|
"account_failed": true,
|
|
"rd_operations": 0,
|
|
"invalid_wr_operations": 0,
|
|
"invalid_rd_operations": 0
|
|
},
|
|
"node-name": "NODE_NAME"
|
|
}
|
|
]
|
|
}
|
|
{
|
|
"return": {
|
|
}
|
|
}
|
|
{
|
|
"timestamp": {
|
|
"seconds": TIMESTAMP,
|
|
"microseconds": TIMESTAMP
|
|
},
|
|
"event": "SHUTDOWN",
|
|
"data": {
|
|
"guest": false,
|
|
"reason": "host-qmp-quit"
|
|
}
|
|
}
|
|
|
|
|
|
=== blockstats with -blockdev ===
|
|
|
|
Testing: -blockdev driver=null-co,node-name=null
|
|
{
|
|
QMP_VERSION
|
|
}
|
|
{
|
|
"return": {
|
|
}
|
|
}
|
|
{
|
|
"return": [
|
|
]
|
|
}
|
|
{
|
|
"return": {
|
|
}
|
|
}
|
|
{
|
|
"timestamp": {
|
|
"seconds": TIMESTAMP,
|
|
"microseconds": TIMESTAMP
|
|
},
|
|
"event": "SHUTDOWN",
|
|
"data": {
|
|
"guest": false,
|
|
"reason": "host-qmp-quit"
|
|
}
|
|
}
|
|
|
|
|
|
=== blockstats with -blockdev and -device ===
|
|
|
|
Testing: -blockdev driver=null-co,node-name=null -device virtio-blk,drive=null,id=virtio0
|
|
{
|
|
QMP_VERSION
|
|
}
|
|
{
|
|
"return": {
|
|
}
|
|
}
|
|
{
|
|
"return": [
|
|
{
|
|
"device": "",
|
|
"stats": {
|
|
"flush_total_time_ns": 0,
|
|
"wr_highest_offset": 0,
|
|
"wr_total_time_ns": 0,
|
|
"failed_wr_operations": 0,
|
|
"failed_rd_operations": 0,
|
|
"wr_merged": 0,
|
|
"wr_bytes": 0,
|
|
"timed_stats": [
|
|
],
|
|
"failed_flush_operations": 0,
|
|
"account_invalid": false,
|
|
"rd_total_time_ns": 0,
|
|
"flush_operations": 0,
|
|
"wr_operations": 0,
|
|
"rd_merged": 0,
|
|
"rd_bytes": 0,
|
|
"invalid_flush_operations": 0,
|
|
"account_failed": false,
|
|
"rd_operations": 0,
|
|
"invalid_wr_operations": 0,
|
|
"invalid_rd_operations": 0
|
|
},
|
|
"node-name": "null",
|
|
"qdev": "/machine/peripheral/virtio0/virtio-backend"
|
|
}
|
|
]
|
|
}
|
|
{
|
|
"return": {
|
|
}
|
|
}
|
|
{
|
|
"timestamp": {
|
|
"seconds": TIMESTAMP,
|
|
"microseconds": TIMESTAMP
|
|
},
|
|
"event": "SHUTDOWN",
|
|
"data": {
|
|
"guest": false,
|
|
"reason": "host-qmp-quit"
|
|
}
|
|
}
|
|
|
|
*** done
|