-
Notifications
You must be signed in to change notification settings - Fork 929
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
lxc: Use volume copy when moving to target project #12521
Conversation
This fixes a regression introduced in canonical#12348. When the target project flag is set don't use the function for renaming volumes. Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
f5102f8
to
42a0fe4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see all other tests use "lxdtest-$(basename "${LXD_DIR}")-${driver}1"
as a pool name, but could we store that in a variable to make the tests easier to read?
proj="lxdtest-$(basename "${LXD_DIR}")-${driver}"
pool="lxdtest-$(basename "${LXD_DIR}")-${driver}1"
lxc project create "${proj}"
lxc storage colume move "${pool}/vol1" "${pool}/vol1" --project default --target-project "${proj}"
...
Just a suggestion, otherwise LGTM.
42a0fe4
to
b819b63
Compare
@MusicDin changed to make it more readable. |
@roosterfish thanks, looks much better. Should we change that for an entire test, or is this out of scope? I think it would improving readability of the codebase. What are your thoughts? |
1424136
to
46ca3b0
Compare
@MusicDin I have now restructured the test suite. Let me know what you think. |
Looks good to me. However, do you have any idea why Ceph test is failing? |
Not really. I have triggered a rerun to be sure. |
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
46ca3b0
to
31d38c4
Compare
Found the issue, I have replaced a wrong variable which let the test to not skip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Looks much cleaner now :)
This fixes a regression introduced in #12348. When the target project flag is set don't use the function for renaming volumes.
Fixes #12518