[pve-devel] applied: [PATCH manager] pvesh: proxy handler: fix handling array parameters
Thomas Lamprecht
t.lamprecht at proxmox.com
Fri Nov 17 16:17:39 CET 2023
Am 17/11/2023 um 15:58 schrieb Fiona Ebner:
> As reported in the community forum and reproduced locally, issuing a
> QEMU guest agent command would lead to an error when proxying to
> another node:
>
>> root at pve8a2 ~ # pvesh create /nodes/pve8a1/qemu/126/agent/exec --command 'whoami'
>> Wide character in die at /usr/share/perl5/PVE/RESTHandler.pm line 918.
>> proxy handler failed: Agent error: Guest agent command failed, error was 'Failed to execute child process “ARRAY(0x55842bb161a0)” (No such file or directory)'
>
> Fix it, by splitting up array references correctly.
>
> [0]: https://forum.proxmox.com/threads/136520/
>
> Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
> ---
>
> Not sure if this is the correct place to fix it?
from a quick check I think this should be fine here, as one should expect
arrays on when handling API stuff since pve-comnmon's 07f136d ("JSONSchema: add
support for array parameter in api calls, cli and config"), like the command for
QGA's exec, which is marked as array.
And here it's centrally enough for pvesh for this use case.
> PVE/CLI/pvesh.pm | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
>
applied, thanks!
More information about the pve-devel
mailing list