community.general icon indicating copy to clipboard operation
community.general copied to clipboard

proxmox_disk: prevent trying to shrink disks

Open aBUDmdBQ opened this issue 6 months ago • 9 comments

SUMMARY

Shrinking Disks is not supported by the PVE API and should be prevented by the module: https://pve.proxmox.com/wiki/Resize_disks

Currently, when the configured size of the disk is smaller than the actual size, the module reports a change, but the change isn't actually happening. The module doesn't detect that this fails.

This PR checks if the user tries to shrink the disk and then fails instead of contacting the PVE API.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME
  • proxmox_disk

aBUDmdBQ avatar Feb 15 '24 10:02 aBUDmdBQ