-
Notifications
You must be signed in to change notification settings - Fork 20
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
Allow user to expand pool if block device is expanded #906
Allow user to expand pool if block device is expanded #906
Conversation
will fail stratisd tests. |
3ec39c1
to
a21c3ab
Compare
rebased. |
b88f48d
to
d4922d2
Compare
rebased. |
Signed-off-by: mulhern <[email protected]>
Signed-off-by: mulhern <[email protected]>
Signed-off-by: mulhern <[email protected]>
d4922d2
to
37e90b2
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 was a bit puzzled by the new class name in _error_codes
but I think my initial expectation is probably looking for a foolish consistency :)
It would be nice to expand the class docstring comment though!
@@ -120,12 +120,76 @@ def from_str(code_str): | |||
) | |||
|
|||
|
|||
class PoolDeviceSizeChangeCode(IntEnum): |
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.
This is the only class in _error_codes
that doesn't follow the Pool.*ErrorCode
naming pattern (and also the only class to define an I(nfo) as well as W/E). PoolDeviceSizeChangeErrorCode is a bit of a mouthful at 29 chars. It stuck out a bit and I wondered if it might be confusing to come across the class name in isolation but I think I'm probably being nit-picky here :)
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.
it's the first code that includes an info possibility, so the name was chosen with that in mind. It might have been better to leave out "Error" from all the class names at the start, just to allow for future variability.
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.
Yep that makes sense, thanks! I Think that was the conclusion I was slowly coming to myself :-)
src/stratis_cli/_error_codes.py
Outdated
@@ -120,12 +120,76 @@ def from_str(code_str): | |||
) | |||
|
|||
|
|||
class PoolDeviceSizeChangeCode(IntEnum): | |||
""" | |||
Codes to extend if a device |
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.
Comment trails off?
Filed an issue for the naming question with error codes: #920 |
Signed-off-by: mulhern <[email protected]>
d7d2e21
to
7e09a9f
Compare
Related stratis-storage/project#50
Implements a new command:
stratis pool extend-data
and extends the output ofblockdev list
andpool list
.blockdev list
shows the new size of the pool if different from the current in use-size.pool list
displays an Alert on the pool, if different.Supercedes #901