Red Hat Bugzilla – Bug 799721
RFE: Offer to clean up disk volumes if guest install fails
Last modified: 2015-09-06 15:11:43 EDT
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
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.
The VM is not created. The volume for the VM is created and left orphaned.
When closing the wizard, the user should be prompted that the volume was created, and asked whether or not it should be deleted.
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
Author: Cole Robinson <email@example.com>
Date: Sun Sep 6 14:42:55 2015 -0400
create: Clean up default storage if VM fails (bz #799721)