Skip to content

Backport supported image format to 26.1-lcm#7129

Open
gthvn1 wants to merge 6 commits into
xapi-project:26.1-lcmfrom
xcp-ng:gtn-image-format-26.1.9-lcm
Open

Backport supported image format to 26.1-lcm#7129
gthvn1 wants to merge 6 commits into
xapi-project:26.1-lcmfrom
xcp-ng:gtn-image-format-26.1.9-lcm

Conversation

@gthvn1

@gthvn1 gthvn1 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread ocaml/idl/datamodel_lifecycle.ml
@psafont psafont changed the base branch from 26.1.9-lcm to 26.1-lcm June 16, 2026 09:56
gthvn1 added 6 commits June 16, 2026 16:01
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>
@gthvn1 gthvn1 force-pushed the gtn-image-format-26.1.9-lcm branch from 55c1443 to 52ba7ac Compare June 16, 2026 14:15
@psafont psafont changed the title Backport supported image format to 26.1.9 lcm Backport supported image format to 26.1-lcm Jun 16, 2026
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.

2 participants