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

storage volume export doesn't accept --target #698

Closed
slapcat opened this issue Mar 29, 2024 · 2 comments · Fixed by #726
Closed

storage volume export doesn't accept --target #698

slapcat opened this issue Mar 29, 2024 · 2 comments · Fixed by #726
Assignees
Labels
Bug Confirmed to be a bug Easy Good for new contributors
Milestone

Comments

@slapcat
Copy link

slapcat commented Mar 29, 2024

Required information

  • Distribution: Ubuntu
  • Distribution version: 22.04
  • The output of "incus info" or if that fails:
    • Kernel version: 5.15.0-97-generic
    • LXC version: 5.20
    • Incus version: 0.6
    • Storage backend in use: zfs

Issue description

The storage volume export command does not recognize the --target parameter when multiple nodes have the same volume.

Steps to reproduce

  1. Create a storage volume in an incus cluster:
# incus storage volume create local test --target=meatwad
Storage volume test created
  1. Export (works!):
# incus storage volume export local test --target=meatwad
Backup exported successfully!  
  1. Create a volume of the same name on another node:
# incus storage volume create local test --target=daphne
Storage volume test created
  1. Attempt to export either one (does not work!):
# incus storage volume export local test --target=meatwad
Error: Failed to fetch storage volume backup file: More than one cluster member has a volume named "test". Please target a specific member

# incus storage volume export local test --target=daphne
Error: Failed to fetch storage volume backup file: More than one cluster member has a volume named "test". Please target a specific member

It does not matter where in the command the --target flag appears.

@stgraber stgraber added Bug Confirmed to be a bug Easy Good for new contributors labels Mar 29, 2024
@stgraber stgraber added this to the incus-6.0 milestone Mar 29, 2024
@presztak
Copy link
Contributor

@stgraber can I stab that one?

@stgraber
Copy link
Member

Yep, assigned it to you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed to be a bug Easy Good for new contributors
Development

Successfully merging a pull request may close this issue.

3 participants