[Bug] Failed to migrate xxx: invalid format - entry xxx contains invalid ID - storage ID xxx contains illegal characters
Describe the bug
I have 2 proxmox nodes with zfs storage named "local-zfs". When Pegaprox try to migrate containers it fails with:
ERROR: [ERROR] Failed to migrate pve-scripts-local: 400 - {"errors":{"target-storag e":"invalid format - entry 'rootfs=local-zfs' contains invalid ID - storage ID 'rootfs=local-zfs' contains illegal characters\n\n\n" },"message":"Parameter verification failed.\n","data":null}
Steps to Reproduce
I assume Pegaprox cannot handle names with '-'.
Expected behavior
Environment
- PegaProx Version:
- Installation Method:
- OS:
- Browser:
- Behind Reverse Proxy?
- UI?
Logs
Screenshots
Checklist
- [x] I have searched existing issues to make sure this is not a duplicate
- [x] I am using the latest version of PegaProx
Not the dash — local-zfs is a perfectly legal storage ID, that part's fine.
We're sending the mapping in the wrong shape. PVE's target-storage on container migrate takes a storage-pair list (source:target, or just 1 to map every storage onto itself) and we're building rootfs=local-zfs instead, so it reads the whole token as one storage name and trips on the =. Same = vs : mistake was fixed in the cross-cluster migrate path a while back and this one got missed.
Have a fix in mind, will get to it shortly. Donations keep the lights on if you're inclined: https://opencollective.com/pegaprox
— MK
Thanks for the report. A container migration with local volumes now sends the target storage as a proper source:target pair list, one pair per storage, the same shape the VM path already used, so storages like local-zfs go through again. This ships in 1.3.0.
PegaProx lives from sponsorships, so https://opencollective.com/pegaprox is always appreciated.
Marcus