project-pegaprox icon indicating copy to clipboard operation
project-pegaprox copied to clipboard

[Bug] Dont show disks formats that are not supported on selected storage

Open proxforge opened this issue 7 months ago • 2 comments

Describe the bug

If you select qcow2 as a disk format on a local-zfs storage pool (zfs mirror) and create a vm and select qcow2 as a image format, it can not be created.

"TASK ERROR: unable to create VM 102 - unsupported format 'qcow2' at /usr/share/perl5/PVE/Storage/ZFSPoolPlugin.pm line 256."

Steps to Reproduce

  1. Have a setup with a zfs pool
  2. create a vm in corporate design mode
  3. select qcow2 as disk format when selecting zfspool
  4. try to create the vm
  5. get a error

Expected behavior

Only show formats that are allowed and working with the selected storage.

Screenshots

Image

Environment

  • PegaProx Version: 0.9.6 BETA
  • Installation Method: install script from website
  • OS: debian13
  • Browser: Firefox 149.0.2 (64-Bit)
  • Behind Reverse Proxy? yes but added via local ip not dns
    • UI? Corporate

Checklist

  • [x] I have searched existing issues to make sure this is not a duplicate
  • [x] I am using the latest version of PegaProx

proxforge avatar Apr 14 '26 09:04 proxforge

@proxforge — shipped this in 0.9.6.1 already. The disk format dropdown now filters by storage type: ZFS / LVM / RBD only show Raw, file-based storages show the full format list. Should stop the qcow2-on-ZFS situation you hit.

If you're already on 0.9.6.1 or 0.9.7 and still see qcow2 listed for ZFS storages, ping me back with a screenshot and I'll look again.

mkellermann97 avatar Apr 20 '26 07:04 mkellermann97

Going to mark this as done on the assumption the 0.9.6.1 filter is behaving correctly on your ZFS setup @proxforge. If qcow2 ever shows up again in a storage dropdown where it shouldn't (ZFS, LVM, RBD), reopen this one and ping @mkellermann97 — a screenshot of the dropdown would help me narrow it down fast.

mkellermann97 avatar Apr 22 '26 20:04 mkellermann97