<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>57294</bug_id>
          
          <creation_ts>2025-12-20 15:40:03 +0300</creation_ts>
          <short_desc>Невозможно загрузить ISO-образ через REST: /nodes/{node}/storage/{storage}/upload</short_desc>
          <delta_ts>2025-12-20 15:40:03 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Branch p11</product>
          <component>pve-cluster</component>
          <version>unspecified</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Evgeny Shesteperov">alimektor</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          
          
          <qa_contact name="qa-p11@altlinux.org">qa-p11</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>279305</commentid>
    <comment_count>0</comment_count>
    <who name="Evgeny Shesteperov">alimektor</who>
    <bug_when>2025-12-20 15:40:03 +0300</bug_when>
    <thetext>Версия

- pve-cluster-9.0.6-alt1

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

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

Ожидаемый результат: Строка с 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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>