Bug 57294 - Невозможно загрузить ISO-образ через REST: /nodes/{node}/storage/{storage}/upload
Summary: Невозможно загрузить ISO-образ через REST: /nodes/{node}/storage/{storage}/up...
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 15:40 MSK by Evgeny Shesteperov
Modified: 2025-12-20 15:40 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 15:40:03 MSK
Версия

- pve-cluster-9.0.6-alt1

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

    # pvesh create /storage -type 'dir' -storage 'test_dir' -path '/var/test_dir'
    # pvesh set /storage/test_dir -content 'images,iso'
    # curl --retry 10 --retry-max-time 600 --retry-connrefused --connect-timeout 30 --max-time 900 -C - -o '/var/tmp/pveupload-1' 'https://ftp.altlinux.org/pub/distributions/ALTLinux/images/p11/server/x86_64/alt-server-11.0-x86_64.iso'
    # curl --insecure -H "Content-Type: application/json" -H 'CSRFPreventionToken: <CSRFPreventionToken>' -b '<PVEAuthCookie>' -d '{"filename": "test-file.iso", "content": "iso", "tmpfilename": "/var/tmp/pveupload-1"}' -X POST 'https://pve02:8006/api2/json/nodes/pve02/storage/test_dir/upload'

Ожидаемый результат: Строка с UPID, например:
UPID:pve02:000FF07B:00FDBB10:694694D4:imgcopy::root@pam:

Фактический результат: curl: (52) Empty reply from server

Дополнительная информация: через pvesh работает

    starting file import from: /var/tmp/pveupload-1
    target node: pve02
    target file: /var/test_dir/template/iso/test-file.iso
    file size is: 4499472384
    command: cp -- /var/tmp/pveupload-1 /var/test_dir/template/iso/test-file.iso
    finished file import successfully
    UPID:pve02:000FF07B:00FDBB10:694694D4:imgcopy::root@pam:

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