Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validate volumes with machine status #982

Open
lukas016 opened this issue Feb 5, 2024 · 0 comments
Open

validate volumes with machine status #982

lukas016 opened this issue Feb 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lukas016
Copy link
Contributor

lukas016 commented Feb 5, 2024

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

  1. Create VM with 2 empty disk
  2. Change permissions for empty disk folder (we need to simulate bug and disk cannot be deleted)
  3. Detach empty disk with changed permissions
  4. 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.

@lukas016 lukas016 added the bug Something isn't working label Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant