Bug 57305 - Возвращает null в REST-запросе PUT /nodes/{node}/qemu/{vmid}/resize
Summary: Возвращает null в REST-запросе PUT /nodes/{node}/qemu/{vmid}/resize
Status: NEW
Alias: None
Product: Branch p11
Classification: Unclassified
Component: pve-cluster (show other bugs)
Version: unspecified
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexey Shabalin
QA Contact: qa-p11@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-20 20:12 MSK by Evgeny Shesteperov
Modified: 2025-12-20 20:12 MSK (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evgeny Shesteperov 2025-12-20 20:12:58 MSK
Версия

- pve-cluster-9.0.6-alt1

Шаги воспроизведения

    # qm create 54321 --name testvm --memory 1024 --cores 1 --sockets 1 --vga qxl --agent 1
    # qm disk import 54321 /etc/alt-server-11.0-p11-cloud-x86_64.qcow2 rbd
    # qm set 54321 --ide0 rbd:vm-54321-disk-0 --ide1 rbd:cloudinit --ciuser test --cipassword 1 --ipconfig0 ip=dhcp,ip6=auto --serial0 socket --net0 virtio,bridge=vmbr1
    # qm cloudinit update 54321
    # pvesh set /nodes/pve03/qemu/54321/resize -disk 'ide0' -size '10G'
    # curl --insecure -H "Content-Type: application/json" -H 'CSRFPreventionToken: <CSRFPreventionToken>' -b '<PVEAuthCookie>' -d '{"disk": "ide0", "size": "10G"}' -X PUT 'https://10.88.14.176:8006/api2/json/nodes/pve03/qemu/54321/resize'

Ожидаемый результат: возвращает строковое значение.

    {
      "data": "Some String"
    }

В документации https://docs.altlinux.org/pve-api/v7 сказано так.

Фактический результат: возвращает null.

    {
        "data": null
    }

Для LXC всё корректно.

Воспроизводится в P10.