diff options
author | Connor Kuehl | 2021-03-05 16:19:28 +0100 |
---|---|---|
committer | Kevin Wolf | 2021-03-08 14:56:55 +0100 |
commit | 785ec4b1b968906ea1d22f753a3b199be946550b (patch) | |
tree | 3a485c16996e771baa773603ab3f37877a1da39e /tests/qemu-iotests/283.out | |
parent | docs: qsd: Explain --export nbd,name=... default (diff) | |
download | qemu-785ec4b1b968906ea1d22f753a3b199be946550b.tar.gz qemu-785ec4b1b968906ea1d22f753a3b199be946550b.tar.xz qemu-785ec4b1b968906ea1d22f753a3b199be946550b.zip |
block: Clarify error messages pertaining to 'node-name'
Some error messages contain ambiguous representations of the 'node-name'
parameter. This can be particularly confusing when exchanging QMP
messages (C = client, S = server):
C: {"execute": "block_resize", "arguments": { "device": "my_file", "size": 26843545600 }}
S: {"error": {"class": "GenericError", "desc": "Cannot find device=my_file nor node_name="}}
^^^^^^^^^
This error message suggests one could send a message with a key called
'node_name':
C: {"execute": "block_resize", "arguments": { "node_name": "my_file", "size": 26843545600 }}
^^^^^^^^^
but using the underscore is actually incorrect, the parameter should be
'node-name':
S: {"error": {"class": "GenericError", "desc": "Parameter 'node_name' is unexpected"}}
This behavior was uncovered in bz1651437, but I ended up going down a
rabbit hole looking for other areas where this miscommunication might
occur and changing those accordingly as well.
Fixes: https://bugzilla.redhat.com/1651437
Signed-off-by: Connor Kuehl <ckuehl@redhat.com>
Message-Id: <20210305151929.1947331-2-ckuehl@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/283.out')
-rw-r--r-- | tests/qemu-iotests/283.out | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/283.out b/tests/qemu-iotests/283.out index 7e9cd9a7d4..37c35058ae 100644 --- a/tests/qemu-iotests/283.out +++ b/tests/qemu-iotests/283.out @@ -18,6 +18,6 @@ {"execute": "job-finalize", "arguments": {"id": "backup"}} {"return": {}} {"execute": "human-monitor-command", "arguments": {"command-line": "qemu-io backup-filter \"write 0 1M\""}} -{"return": "Error: Cannot find device= nor node_name=backup-filter\r\n"} +{"return": "Error: Cannot find device='' nor node-name='backup-filter'\r\n"} {"execute": "job-dismiss", "arguments": {"id": "backup"}} {"return": {}} |