-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
lvol: Fix pct of origin #7053
lvol: Fix pct of origin #7053
Conversation
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.
Thanks for your contribution! I've added some first comments.
The failing VM test should get fixed by #7055. |
Co-authored-by: Felix Fontein <[email protected]>
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.
As far as I can judge this this looks good. The code change should not break anything that works right now. I will merge this this weekend if nobody objects.
Backport to stable-6: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply a0c67a8 on top of patchback/backports/stable-6/a0c67a88949fa7ca204740d84bfc37e950b0f3b3/pr-7053 Backporting merged PR #7053 into main
🤖 @patchback |
Backport to stable-7: 💚 backport PR created✅ Backport PR branch: Backported as #7097 🤖 @patchback |
* add support for percentage of origin size for creating snapshot volumes * add changelog fragment * add pull request link Co-authored-by: Felix Fontein <[email protected]> * fix what's not idempotent --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit a0c67a8)
lvol: Fix pct of origin (#7053) * add support for percentage of origin size for creating snapshot volumes * add changelog fragment * add pull request link Co-authored-by: Felix Fontein <[email protected]> * fix what's not idempotent --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit a0c67a8) Co-authored-by: Bob Mader <[email protected]>
SUMMARY
The
size
parameter of thelvol
module did not support percentage of origin size specification when creating a snapshot volume. This is valid according to lvcreate(8). This PR addresses the issue.I increased the size of the loop devices in the test playbook to accommodate creating test snapshot LVs. The modified tests worked for me locally. Fingers crossed for the CI workflow.
Fixes #1630
ISSUE TYPE
COMPONENT NAME
lvol
moduleADDITIONAL INFORMATION
My first PR to the community.general collection. Kindly guide me if I've done anything wrong. Thanks!