After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 749725 - 'ghost' VMs when cancelling wizard
'ghost' VMs when cancelling wizard
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: installer
3.16.x
Other Linux
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-05-22 11:24 UTC by Christophe Fergeau
Modified: 2016-09-20 08:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christophe Fergeau 2015-05-22 11:24:54 UTC
Start creation of a new VM, pick an iso which can be autoinstalled (I used a RHEL7 image). Get to the 'review' page (ie the very last one with the 'Create' button). Click 'Back', 'Continue', 'Back', 'Continue' a few times (ie alternate between 'Box Setup' and 'Review'). Click 'Cancel'. You can see a few VMs with a spinner which should not have been created. Deleting them triggers some warnings/criticals in the console.
Comment 1 Christophe Fergeau 2015-06-17 17:01:24 UTC
I just noticed that if you create one of these ghost VMs, and then go forward, intending to install/use the latest VM you created, if you try to delete the ghost VM, it will remove the disk image of the actual VM that you want to keep (presumably because they share the same name).
Comment 2 Zeeshan Ali 2015-06-19 18:56:32 UTC
commit: 62989461ccf5b0c97b1788647c29bdc02b62dabe

    collection-view: Keep track of hidden items
    
    We don't immediately add new items to the view before UI is out of
    wizard state since commit 94414dc but we don't keep track of these
    hidden items, which results in these items being add to the view even if
    user cancel's their creation and items don't actually exist. This
    results in ghost VMs being added to the view.
    
    This patches fixes the issue by add a list of such hidden items and
    ensuring they don't get added if user changes their mind.