Backport supported image format to 26.1-lcm#7129
Open
gthvn1 wants to merge 6 commits into
Open
Conversation
psafont
reviewed
Jun 16, 2026
When running `xe sm-list params=all` you will now have the info of supported image formats if the SM plugin specified it in its DRIVER_INFO. The field is called `supported-image-formats`. If the plugin doesn't provide the info the field will be empty. This patch modifies the datamodel and add a new field to store this information into the SM object. Signed-off-by: Guillaume <guillaume.thouvenin@vates.tech> (cherry picked from commit b44821d)
This patch allows specifying the destination format for individual VDIs mapped to a destination SR. It adds a new parameter to `VM.migrate_send` and `VM.assert_can_migrate` API. It also adds a new parameter to XE CLI. The format to specify the image format is `image-format:<source VDI UUID>=<destination image format>`. If the given image format cannot be validated, an error is returned. It also adds a new parameter to `VDI.pool-migrate`. This new parameter allows to provide a string that is the destination format. This string is used to check whether the destination SR supports the expected format. If the check fails or cannot be performed due to missing information on the destination SR, an error is returned. Signed-off-by: Guillaume <guillaume.thouvenin@vates.tech> (cherry picked from commit 53b2823)
Update VM.MigrateSend call to include new VdiFormatMap parameter. Signed-off-by: Guillaume <guillaume.thouvenin@vates.tech> (cherry picked from commit d122916)
Introduce a new quicktest covering local VDI migration between two Storage Repositories (SRs). Add a `migration_path` filter that injects a `(src, dst)` SR pair derived from an `SR.srs` constraint. The filter selects a single valid migration path (if available) and generates one test case. If fewer than two compatible SRs exist, no test is produced. The test: - Creates a VDI on the source SR - Attaches it to a temporary VM - Calls VDI.pool_migrate to the destination SR - Verifies that the VDI's SR has changed accordingly - Cleans up safely, tracking ownership transfer when migration replaces the original VDI Signed-off-by: Guillaume <guillaume.thouvenin@vates.tech> (cherry picked from commit 92d04a0)
Signed-off-by: Guillaume Thouvenin <guillaume.thouvenin@vates.tech> (cherry picked from commit b517e68)
Signed-off-by: Guillaume <guillaume.thouvenin@vates.tech>
55c1443 to
52ba7ac
Compare
psafont
approved these changes
Jun 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.