-
Notifications
You must be signed in to change notification settings - Fork 933
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
Project: Add lxd/project/limits
and fix PowerFlex instance size limits
#13994
Conversation
lxd/limits
and fix instance size limits
lxd/limits
and fix instance size limitslxd/limits
and fix PowerFlex instance size limits
a55def5
to
0b36059
Compare
I'll backport these changes as part of the normal process as they dont change the API or the DB. |
02644b5
to
a0917f2
Compare
4fae4c3
to
3a943fe
Compare
I've updated the PR description, made the requested change, and reworked how the default size was being passed around. |
lxd/limits
and fix PowerFlex instance size limitslxd/project/limits
and fix PowerFlex instance size limits
f5b84aa
to
8bb252c
Compare
@roosterfish @tomponline This is ready to go again |
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.
LGTM!
8bb252c
to
c137298
Compare
c137298
to
194470b
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.
Looks good to me.
Thanks @MggMuggins please can you rebase to fix the conflict? |
Signed-off-by: Wesley Hershberger <[email protected]>
Signed-off-by: Wesley Hershberger <[email protected]>
Signed-off-by: Wesley Hershberger <[email protected]>
Signed-off-by: Wesley Hershberger <[email protected]>
…emSize Signed-off-by: Wesley Hershberger <[email protected]>
…size Signed-off-by: Wesley Hershberger <[email protected]>
These should be grabbed via the device driver Signed-off-by: Wesley Hershberger <[email protected]>
Since this function only return the distinct drivers, make way for GetStoragePoolDrivers to give a mapping of poolName:driverName. Signed-off-by: Wesley Hershberger <[email protected]>
Signed-off-by: Wesley Hershberger <[email protected]>
Signed-off-by: Wesley Hershberger <[email protected]>
Signed-off-by: Wesley Hershberger <[email protected]>
Signed-off-by: Wesley Hershberger <[email protected]>
We can't enforce that the defaultVMBlockFilesystemSize method doesn't use values in the driver before the driver is loaded. This will at least catch that usage in the test suite. Signed-off-by: Wesley Hershberger <[email protected]>
969efa3
194470b
to
969efa3
Compare
@tomponline Done |
Fixes #12567
Moves some the contents of
lxd/project
into a new modulelxd/project/limits
to remove an import cyclelxd/project -> lxd/storage/drivers -> lxd/project
.lxd/project
split fairly cleanly in two; I tried to leave as much project-related API inlxd/project
as I could. Most of what is left there is the string processing code for prepending instance/volume names with the project name. This is used fairly heavily inlxd/storage/drivers
.lxd/project/limits
now contains just the code for enforcing project limits; the change in usage reads better IMO:This change allows us to import the storage drivers from
lxd/storage/drivers
inlxd/project/limits
to getDefaultVMBlockFilesystemSize
.This introduces a new method to the internal driver interface (
defaultVMBlockFilesystemSize() string
) and exposes a function fromlxd/storage/drivers
to convert a driver name to theDefaultVMBlockFilesystemSize
.