Bug 57294

Summary: Невозможно загрузить ISO-образ через REST: /nodes/{node}/storage/{storage}/upload
Product: Branch p11 Reporter: Evgeny Shesteperov <alimektor>
Component: pve-clusterAssignee: Alexey Shabalin <shaba>
Status: NEW --- QA Contact: qa-p11 <qa-p11>
Severity: normal    
Priority: P5    
Version: unspecified   
Hardware: x86_64   
OS: Linux   

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.