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

"ops volume create" allows reusing the same volume name which creates problems #1342

Open
sanderssj opened this issue Jun 8, 2022 · 0 comments
Labels

Comments

@sanderssj
Copy link
Collaborator

Running 'ops volume create' with the same name twice creates two volume files in ~/.ops/volumes with different UUIDs but the same volume name and follow-up commands on the volume name no longer work properly. For example 'ops volume delete' will not delete either volume but does not print an error and also returns 0 even though nothing was deleted, and trying to run a vm that uses the volume name fails with ambiguous volume uuid/label: volumename: multiple volumes found

Resolving the situation seems to require manually deleting one or both volumes from ~./ops/volumes. It might be useful to either prevent reuse of a volume name for the same provider to avoid the situation or else provide better feedback when commands fail on how to resolve the situation.

@eyberg eyberg added the volumes label Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants