- Create a VM
- Make sure VM have started in running state with IP address
- Open the
Edit config
page of the VM - Change the volume size of the disk on the Volumes page
- Click Save
- Check the prompt error message
- Open the Volumes page
- Edit config of the volume attached to the VM
- Change the volume size of the disk
- Click Save
- Check the prompt error message
Expected Results
- VM volume page should display error message
admission webhook "validator.harvesterhci.io" denied the request: please stop the VM before resizing volumes
- Volume page should display error message
admission webhook "validator.harvesterhci.io" denied the request: resizing is only supported for detached volumes. The volume is being used by VM default/vm1. Please stop the VM first.