Bug 799721 - RFE: Offer to clean up disk volumes if guest install fails
RFE: Offer to clean up disk volumes if guest install fails
Status: CLOSED UPSTREAM
Product: Virtualization Tools
Classification: Community
Component: virt-manager (Show other bugs)
unspecified
x86_64 Linux
unspecified Severity low
: ---
: ---
Assigned To: Cole Robinson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-04 11:36 EST by Jonathan DePrizio
Modified: 2015-09-06 15:11 EDT (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-09-06 15:11:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Jonathan DePrizio 2012-03-04 11:36:51 EST
Description of problem:
When creating a guest, if guest creation fails for some reason, but fails AFTER creating the volume for the VM, the volume is not cleaned up (and no dialogue is presented asking the user whether he wants to clean up).  The consequence is that you will have an orphaned volume, used by no one.

Version-Release number of selected component (if applicable):
Virtual Machine Manager 0.9.1

How reproducible:
Every time

Steps to Reproduce:
1. In the Virtual Manage Manager, begin creating a new VM
2. Select some option that will cause it to fail.  E.g, use "local install media" -> "use CDRom or DVD" but don't put anything in the drive
3. Click through to create the volume, etc... until you reach the end of the wizard
4. The wizard will fail and the VM will not be created. Close the wizard.
  
Actual results:
The VM is not created.  The volume for the VM is created and left orphaned.

Expected results:
When closing the wizard, the user should be prompted that the volume was created, and asked whether or not it should be deleted.

Additional info:
Comment 1 Cole Robinson 2015-09-06 15:11:43 EDT
Upstream will delete the 'default' created volumes, the ones without any prompting from the user. We could extend it in the future to also offer to delete manually created volumes, but it's a bit more work so defering that for now

commit 60d6161efc90a7728df98e73452e95388e7fe369
Author: Cole Robinson <crobinso@redhat.com>
Date:   Sun Sep 6 14:42:55 2015 -0400

    create: Clean up default storage if VM fails (bz #799721)

Note You need to log in before you can comment on or make changes to this bug.