Skip to content
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

CA-213568: Restore VM power state on checkpoint failure. #2684

Merged
merged 1 commit into from Jun 28, 2016

Conversation

sharady
Copy link
Contributor

@sharady sharady commented Jun 23, 2016

Restore VM power state before raising an exception for
checkpoint failure.

Signed-off-by: Sharad Yadav sharad.yadav@citrix.com

Restore VM power state before raising an exception for
checkpoint failure.

Signed-off-by: Sharad Yadav <sharad.yadav@citrix.com>
@simonjbeaumont
Copy link
Contributor

@xen-git retest this please.

@simonjbeaumont
Copy link
Contributor

I can't see anywhere in this pull request that does anything with the VM power state. Maybe I'm missing something. Unless I'm missing something obvious, please can you elaborate on how the changes do what you say in the commit message?

if not (TaskHelper.is_cancelling ~__context) then begin
try Some (Xapi_vm_clone.clone Xapi_vm_clone.Disk_op_checkpoint ~__context ~vm ~new_name ~snapshot_info_record:!snapshot_info)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per CA-213568: Call Xapi_vm_clone.clone Xapi_vm_clone.Disk_op_checkpoint ~__context ~vm ~new_name ~snapshot_info_record:!snapshot_info fails with error Server_error(SR_BACKEND_FAILURE_44, [ ; There is insufficient space; ]). This exception is raised before calling subsequent call Xapi_xenops.resume ~__context ~self:vm ~start_paused:false ~force:false. This is causing the VM to be in suspended state during a checkpoint.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ha! I see now. The call to Xapi_xenops.resume was not in the context of the patch. Only visible when expanding the file.

@sharady
Copy link
Contributor Author

sharady commented Jun 27, 2016

@simonjbeaumont thanks for review, Can we merge this PR If we are happy :)

@johnelse johnelse merged commit b4a4380 into xapi-project:master Jun 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants