-
Notifications
You must be signed in to change notification settings - Fork 6
Add tests for corruption recovery on LINSTOR SR #360
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
base: master
Are you sure you want to change the base?
Conversation
Tests DRBD's corruption recovery using drbdadm verify and invalidate-remote commands as well as basic VM operations (startup, snapshot, shutdown) Signed-off-by: Mathieu Labourier <mathieu.labourier@vates.tech>
klmp200
left a comment
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.
Otherwise, lgtm
- add missing type hints in function declarations - rename wait_sync to wait_drbd_sync - rename single letter variables Co-authored-by: Antoine Bartuccio <antoine.bartuccio@vates.tech> Signed-off-by: Mathieu Labourier <mathieu.labourier@vates.tech>
e65c96c to
5af35f6
Compare
|
|
||
| def get_drbd_status(host: Host, resource: str): | ||
| logging.debug(f"[{host}] Fetching DRBD status for resource `{resource}`...") | ||
| return json.loads(host.ssh(["drbdsetup", "status", resource, "--json"])) |
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.
would split this line, but you probably know what you are doing more than myself :)
| ] | ||
|
|
||
| def wait_drbd_sync(host: Host, resource: str): | ||
| logging.info(f"[{host}] Waiting for DRBD sync on resource `{resource}`...") |
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 works but pylint dont like fstrings: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
rzr
left a comment
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.
few remarks but not my expertise (yet)
Tests DRBD's corruption recovery using drbdadm verify and invalidate-remote commands as well as basic VM operations (startup, snapshot, shutdown)