Edit volume to increase size when vm is running

  1. Create a VM
  2. Make sure VM have started in running state with IP address
  3. Open the Edit config page of the VM
  4. Change the volume size of the disk on the Volumes page
  5. Click Save
  6. Check the prompt error message
  7. Open the Volumes page
  8. Edit config of the volume attached to the VM
  9. Change the volume size of the disk
  10. Click Save
  11. Check the prompt error message

Expected Results

  1. VM volume page should display error message
    admission webhook "validator.harvesterhci.io" denied the request: please stop the VM before resizing volumes
    
  2. 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.