-
Notifications
You must be signed in to change notification settings - Fork 6
Test disk integrity after migration #358
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: gln/coalesce
Are you sure you want to change the base?
Conversation
39d33c4
to
08eb3f9
Compare
804519b
to
4bbc22f
Compare
Signed-off-by: Gaëtan Lehmann <[email protected]>
tests/storage/storage.py
Outdated
logging.info("Generate /dev/xvdb content") | ||
vm.ssh("randstream generate -v /dev/xvdb") | ||
logging.info("Validate /dev/xvdb") | ||
vm.ssh("randstream validate -v --expected-checksum 65280014 /dev/xvdb") |
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.
65280014: what is this number, and should it be a constant?
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.
That's the expected checksum—I hoped the --expected-checksum
option would make it clear :)
We could use a different seed at each run to generate the content of the vdi. The checksum would change with it.
That would complicate the test though, and I'm not sure it would help to catch more problems.
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.
So it looks like it should at least be a constant.
4bbc22f
to
f62c195
Compare
b50bda8
to
8be87e6
Compare
f62c195
to
a14dae3
Compare
The vdi uuid changes during migration, so we use its name to identify it Signed-off-by: Gaëtan Lehmann <[email protected]>
a14dae3
to
bc22e1c
Compare
Signed-off-by: Gaëtan Lehmann <[email protected]>
Signed-off-by: Gaëtan Lehmann <[email protected]>
bc22e1c
to
6c7d966
Compare
based on #356