Skip to content

CA-404611: Fix SXM when VM is shut down midway #6246

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 3 commits into from
Jan 22, 2025

Conversation

robhoes
Copy link
Member

@robhoes robhoes commented Jan 22, 2025

No description provided.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
A VM's power-state may change during a cross-pool storage migration, as
a VM that was originally running may shut down while the disks are being
copied (or vice versa). This case is handled, because copying disks can
take a very long time.

VM metadata is exported and imported into the remote pool after copying
has completed, and the VM power-state is used to decide whether to do
CPUID checks. Unfortunately, the power-state is currently taken from the
DB right at the start if the function, which does not take into account
that is may change. Straightforward fix.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
This is just an additional safety check following the previous commit.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
@robhoes robhoes requested a review from last-genius January 22, 2025 11:20
@robhoes robhoes added this pull request to the merge queue Jan 22, 2025
Merged via the queue into xapi-project:master with commit 7abefc4 Jan 22, 2025
15 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