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-91480: Catch exception if blob doesn't exist on vm_destroy #911

Merged

Conversation

mcclurmc
Copy link
Contributor

@mcclurmc mcclurmc commented Nov 6, 2012

This was meant to fix CA-91480, but it turns out that this was a different issue. This issue is that vm_destroy doesn't catch an exception if it tries to destroy a VM which has a blob which also doesn't exist on the server, which could happen in a vm_import.

This is the first bug we've found that we've also included a regression unit test for, which is significant. Otherwise, this is an unlikely bug to encounter and fairly trivial to solve.

Mike McClurg added 2 commits November 6, 2012 18:17
Xapi_vm_helpers.destroy would fail if a VM had a reference to a non-existant
blob, which would happen when the VM had been imported. This would prevent the
rest of the function from running, leaving ghost objects in the database after
an import was cancelled.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
Xapi_vm_helpers.destroy would fail if a VM had a reference to a non-existant
blob, which would happen when the VM had been imported. This would prevent the
rest of the function from running, leaving ghost objects in the database after
an import was cancelled.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
@xen-git
Copy link
Contributor

xen-git commented Nov 6, 2012

mcclurmc/xen-api@fc9a4bfdbd1565: Build succeeded. Can merge pull request.

@xen-git
Copy link
Contributor

xen-git commented Nov 9, 2012

mcclurmc/xen-api@fc9a4bf2c0fbe1: Build succeeded. Can merge pull request.

@jonludlam
Copy link
Contributor

@xen-git Approved

@xen-git
Copy link
Contributor

xen-git commented Nov 9, 2012

mcclurmc/xen-api@fc9a4bf4474f90: Build succeeded. Pull request merged.

@xen-git xen-git merged commit fc9a4bf into xapi-project:master Nov 9, 2012
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.

None yet

3 participants