Skip to content

CA-407328: Change vm parameter names of SXM calls #6324

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

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

Vincent-lau
Copy link
Contributor

The vm parameter passed to SMAPIv2 calls is needed for the storage backend to know which domain slice it should operate on. For SXM, since there is no specific VM, we use the convention "MIR", where the is the first five characters of the hash of the vm uuid. This is not sufficient for VMs with multiple VDIs attached to it as they would result in the same vm parameter.

So use a new convention "MIR" so we distinguish VDIs during migration. These vm parameters cannot be too long though as otherwise the storage backend will not accept them.

The vm parameter passed to SMAPIv2 calls is needed for the storage
backend to know which domain slice it should operate on. For SXM, since
there is no specific VM, we use the convention "MIR<vm-prefix>", where
the <vm-prefix> is the first five characters of the hash of the vm uuid.
This is not sufficient for VMs with multiple VDIs attached to it as they
would result in the same vm parameter.

So use a new convention "MIR<vm-prefix><vdi-prefix>" so we distinguish
VDIs during migration. These vm parameters cannot be too long though as
otherwise the storage backend will not accept them.

Signed-off-by: Vincent Liu <[email protected]>
@Vincent-lau Vincent-lau added this pull request to the merge queue Mar 4, 2025
Merged via the queue into master with commit 1b855d2 Mar 4, 2025
26 checks passed
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.

3 participants