-
Notifications
You must be signed in to change notification settings - Fork 548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.0.1-rc1] Consider revisiting disk size before release #912
Comments
@riverar I've found the reason of this regression. The proxmox disk creation API only allows the size in gigabytes. Previously it would create a disk file in the storage and then link that disk file to the vm. Adding in this functionality would require a partial rewrite of how we create, read and resize disk in |
Hey @Tinyblargon, I don't think that's right. The previous provider (2.x) supported all sizes via regex and the Proxmox VE API docs seem to confirm this is supported. https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/qemu/{vmid}/resize |
@riverar Well in https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/qemu/{vmid}/config they keep referring to |
Interesting, I see that too. Although it specifies size as I continue to be very unimpressed by the Proxmox VE API 😅 |
Upstream the functionality is almost there Telmate/proxmox-api-go#305. |
The new disks format has changed the
size
parameter to be anint
that represents "the size of the created disk in Gigabytes". This is a regression from the previous regex that supported\d+[GMK]
. It also means it's not possible to create disks smaller than 1 gigabyte.If supporting the previous regex expression is not desirable, perhaps an easier change would be to make size represent kilobytes to support folks needing disks smaller than 1GiB.
@Tinyblargon @mleone87
The text was updated successfully, but these errors were encountered: