You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I plan to submit a PR to update the resize functionality in the proxmox_disk module to handle the new asynchronous behavior. However, this change will break compatibility with older versions of Proxmox VE.
Considering the discussion in #9199, I hope the community will agree that overloading the code to support older, unsupported versions is not ideal. Feedback on this approach is welcome.
Issue Type
Bug Report
Component Name
proxmox_disk
Ansible Version
$ ansible --versionansible [core 2.18.1]
Community.general Version
$ ansible-galaxy collection list community.generalCollection Version----------------- -------community.general 10.1.0
Configuration
$ ansible-config dump --only-changed
OS / Environment
openSUSE Tumbleweed
Steps to Reproduce
Try to shrink existing disk. Assume that disk sata4 is currently 20G.
TASK [Modify disk] **********************************************************************************************************************************************fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to resize disk scsi0 in VM 100 with exception: 500 Internal Server Error: shrinking disks is not supported"}
Summary
In reviewing PR #7969, I discovered the root cause of the behavior:
proxmox_disk
module currently uses thePUT
method to call theresize
function, assuming it operates synchronously;resize
function to an asynchronous operation that returns a task ID:I plan to submit a PR to update the
resize
functionality in theproxmox_disk
module to handle the new asynchronous behavior. However, this change will break compatibility with older versions of Proxmox VE.Considering the discussion in #9199, I hope the community will agree that overloading the code to support older, unsupported versions is not ideal. Feedback on this approach is welcome.
Issue Type
Bug Report
Component Name
proxmox_disk
Ansible Version
Community.general Version
Configuration
$ ansible-config dump --only-changed
OS / Environment
openSUSE Tumbleweed
Steps to Reproduce
Try to shrink existing disk. Assume that disk sata4 is currently 20G.
Expected Results
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: