ironcore
ironcore copied to clipboard
validate volumes with machine status
Describe the bug We can attach volume with the same name into machine as it is currently stuck in detaching/deleting process, because validation is checking specification only. We need extend validation for checking volumes in status for avoid unexpected behavior.
To Reproduce
- Create VM with 2 empty disk
- Change permissions for empty disk folder (we need to simulate bug and disk cannot be deleted)
- Detach empty disk with changed permissions
- Attach empty disk with the same name but different device
Expected behavior Step 4 has to fail. We cannot have devices with same name or device at the same time.