Skip to content

Conversation

tperard
Copy link
Member

@tperard tperard commented Jul 18, 2025

This new test ensures that the "nfs-on-slave" host-plugin does
check something, and return different result based on the environment.

  • TODO: Still need to figure out how to find the type of VDI, to have
    the extension for the path. It's currently hard-coded to .vhd.

@tperard tperard force-pushed the apd-nfs-on-slave branch from 6afd538 to d450bb2 Compare July 18, 2025 14:04
@tperard tperard force-pushed the apd-nfs-on-slave branch from d450bb2 to 81dd04c Compare July 18, 2025 14:57
vm.wait_for_os_booted()
host = vm.get_residence_host()

vdi = VDI(vm.vdi_uuids()[0], host=host)
Copy link
Contributor

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"
Copy link
Contributor

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.

Copy link
Member Author

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".

tperard added 3 commits July 25, 2025 16:59
.. 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]>
@tperard tperard force-pushed the apd-nfs-on-slave branch from 81dd04c to b34c3f5 Compare July 25, 2025 15:35
@tperard tperard requested a review from Nambrok August 26, 2025 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants