-
Notifications
You must be signed in to change notification settings - Fork 6
Implement storage nfs-on-slave test #341
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
6afd538
to
d450bb2
Compare
d450bb2
to
81dd04c
Compare
vm.wait_for_os_booted() | ||
host = vm.get_residence_host() | ||
|
||
vdi = VDI(vm.vdi_uuids()[0], host=host) |
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.
Usually, we use the pool master for the VDI host
parameter.
But here I don't thing it's a problem.
vdi = VDI(vm.vdi_uuids()[0], host=host) | ||
|
||
# TODO: How to find out if it's .vhd? | ||
vdi_path = f"/run/sr-mount/{vdi.sr.uuid}/{vdi.uuid}.vhd" |
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.
On QCOW2 branch, you can look at sm-config:image-format
, soon a helper for this will be available in VDI.py
(when I succeed in merging my coalesce tests).
For now, you can assume that a new VDI is a VHD.
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.
Sounds good, I'll replace the comment with:
# TODO: Use vdi.get_image_format() once available, instead of
# hard-coded ".vhd".
Signed-off-by: Anthony PERARD <[email protected]>
.. for functions that are going to be used by test_plugin_nfs_on_on_slave(). Signed-off-by: Anthony PERARD <[email protected]>
This new test ensures that the "nfs-on-slave" host-plugin does check something, and return different result based on the environment. Signed-off-by: Anthony PERARD <[email protected]>
81dd04c
to
b34c3f5
Compare
This new test ensures that the "nfs-on-slave" host-plugin does
check something, and return different result based on the environment.
the extension for the path. It's currently hard-coded to .vhd.