Uploading ISO's to a different server in the cluster fails.

Michiel_1afa

Member
Mar 5, 2021
16
3
23
42
This is a bit of a meh.. issue easy to work around, but would be nice to find out whats going on.

Affects: at least PVE 8 & 9 - exact patch version does not matter.
- File size in this case does not matter, happens with any size image.

Uploading an iso to a server in the cluster that is not your currently connected server fails. In below example I was connected to pve23, as my upload target I selected 23 and 28 with below results:

Node: pve23
Target: pve23

```
starting file import from: /var/tmp/pveupload-c46d527b91cded95995677dff730b872
target node: pve23-dlf
target file: /mnt/pve/cephfs/template/iso/debian-13.1.0-amd64-netinst.iso
file size is: 821035008
command: cp -- /var/tmp/pveupload-c46d527b91cded95995677dff730b872 /mnt/pve/cephfs/template/iso/debian-13.1.0-amd64-netinst.iso
finished file import successfully
TASK OK
```

Node: pve23
Target: pve28

```
starting file import from: /var/tmp/pveupload-237d31a65aa8f30f2bd4876518abf216
TASK ERROR: failed to stat '/var/tmp/pveupload-237d31a65aa8f30f2bd4876518abf216'
```

Now the problem is easy enough to work around for me, just upload to the same server you are connected to right. The weird part is, this fails on 3 out of 4 clusters I manage, with the 4th one having no issues at all.