virt-manager/virtinst
Christophe Fergeau 2099a1946e Reset Guest.domain to None on domain creation error
When an error occurs when the VM creation wizard tries to start the VM,
it's then not possible to press again the "Finish" button to try again
to start it, as this errors out with:

Traceback (most recent call last):
  File "/home/teuf/redhat/virt/virt-manager/virtManager/asyncjob.py", line 88, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/home/teuf/redhat/virt/virt-manager/virtManager/create.py", line 2341, in _do_async_install
    guest.start_install(meter=meter)
  File "/home/teuf/redhat/virt/virt-manager/virtinst/guest.py", line 457, in start_install
    raise RuntimeError(_("Domain has already been started!"))
RuntimeError: Domain has already been started!

This is caused by code introduced in commit fc6778 which does not reset
self.domain to None when an exception is caught.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
2017-04-13 14:24:40 -04:00
..
__init__.py pylint: Fix some issues with F25 version 2016-12-13 12:36:49 -05:00
capabilities.py virtinst.capabilities: return recommended machine for XEN 2016-06-16 12:16:49 +02:00
cli.py virt-install:support --features hyperv_synic=(on/off) 2017-03-30 14:19:06 -04:00
clock.py xmlbuilder: Make _add_child and _remove_child public 2015-09-04 15:47:43 -04:00
cloner.py virt-clone: add support to clone nvram VARS 2017-03-07 13:06:20 +01:00
connection.py Tune default device list for Virtuozzo containers 2017-03-17 13:36:15 -04:00
cpu.py cpu: clear config first if user requests host-model-only 2017-03-05 14:04:42 -05:00
device.py cli: Add device address.type/address.bus/... options 2016-06-11 16:10:31 -04:00
deviceaudio.py addhardware: Don't list device 'default' options 2015-05-19 18:29:45 -04:00
devicechar.py devicechar: Support source_master and source_slave 2016-08-24 16:37:36 -04:00
devicecontroller.py Mark more UI strings as translatable 2015-09-23 16:39:48 -04:00
devicedisk.py cli: Add --disk backing_format= option 2016-06-16 20:09:37 -04:00
devicefilesystem.py devicefilesystem: Default to accessmode=mapped for qemu 2015-09-20 20:33:46 -04:00
devicegraphics.py virtManager/ui: add listen type option 2017-03-01 17:56:52 -05:00
devicehostdev.py localization: mark several strings as translatable 2016-02-06 16:25:08 +01:00
deviceinput.py cli: Have '--input tablet' default to bus=usb (bz 1232087) 2015-11-21 20:26:50 -05:00
deviceinterface.py virt-install: support --network trustGuestRxFilters= (bz 1427600) 2017-03-05 14:43:31 -05:00
devicememballoon.py addhardware: Don't list device 'default' options 2015-05-19 18:29:45 -04:00
devicepanic.py Drop non-ascii text from files 2015-03-23 15:56:55 -04:00
deviceredirdev.py addhardware: Don't list device 'default' options 2015-05-19 18:29:45 -04:00
devicerng.py ui: details: Tweak RNG page a bit 2017-03-08 17:48:26 -05:00
devicesmartcard.py Drop non-ascii text from files 2015-03-23 15:56:55 -04:00
devicetpm.py Drop non-ascii text from files 2015-03-23 15:56:55 -04:00
devicevideo.py virt-install: Support --video vram64= (bz 1377080) 2017-03-05 14:51:25 -05:00
devicewatchdog.py Add a watchdog model diag288, listed in the watchdog model list. 2015-11-10 16:14:17 -05:00
diskbackend.py storage: Move alloc/cap validation to validate() 2017-03-17 12:14:05 -04:00
distroinstaller.py virtinst: break out kernel/initrd vol upload to its own file 2016-06-17 07:52:42 -04:00
domainblkiotune.py virtinst: Switch to relative imports, fix cyclic import warnings 2014-09-12 16:28:38 -04:00
domainfeatures.py virt-install:support --features hyperv_synic=(on/off) 2017-03-30 14:19:06 -04:00
domainmemorybacking.py virtinst: Switch to relative imports, fix cyclic import warnings 2014-09-12 16:28:38 -04:00
domainmemorytune.py virtinst: Switch to relative imports, fix cyclic import warnings 2014-09-12 16:28:38 -04:00
domainnumatune.py domainnumatune: Remove generate_cpuset helper 2015-11-18 15:08:24 -05:00
domainresource.py virtinst: Switch to relative imports, fix cyclic import warnings 2014-09-12 16:28:38 -04:00
domcapabilities.py virtinst: prepare XML parsers to handle GIC for ARM 2016-06-11 18:41:24 +02:00
guest.py Reset Guest.domain to None on domain creation error 2017-04-13 14:24:40 -04:00
hostkeymap.py mass update: remove double spaces from comments 2013-10-28 17:22:31 +01:00
idmap.py virtinst: Switch to relative imports, fix cyclic import warnings 2014-09-12 16:28:38 -04:00
initrdinject.py virtinst: Move initrdinject handling to its own file 2016-06-17 07:52:42 -04:00
installer.py cli: Don't overwrite install bootorder with manual --boot (bz 1438946) 2017-04-04 18:22:15 -04:00
interface.py Fix recent pylint/pep8 output 2016-04-18 16:42:12 -04:00
kernelupload.py virtinst: break out kernel/initrd vol upload to its own file 2016-06-17 07:52:42 -04:00
network.py tests: add test for network of SR-IOV VF pool 2017-04-03 19:09:08 -04:00
nodedev.py nodedev: remove useless exception instance 2017-03-30 22:43:44 +08:00
osdict.py virtinst: tweak distros in the 'supported' workaround 2017-04-13 14:20:02 -04:00
osxml.py virtinst: Add classes for defining SMBios information 2016-09-08 11:36:59 -04:00
pm.py virtinst: Switch to relative imports, fix cyclic import warnings 2014-09-12 16:28:38 -04:00
pollhelpers.py virt-manager: Add hidden options --test-old-poll and --test-no-events 2015-09-17 15:18:22 -04:00
progress.py Copy urlgrabber progress bar code into virt-manager.git 2015-09-18 20:55:44 -04:00
seclabel.py localization: mark several strings as translatable 2016-02-06 16:25:08 +01:00
snapshot.py virtinst: Switch to relative imports, fix cyclic import warnings 2014-09-12 16:28:38 -04:00
storage.py storage: Move alloc/cap validation to validate() 2017-03-17 12:14:05 -04:00
support.py guest: Add default virtio-rng /dev/urandom (bz 1212082) 2017-03-08 17:26:19 -05:00
sysinfo.py sysinfo: Validate in shared code, not at cli parse time 2017-03-05 20:55:21 -05:00
uri.py virtinst: Add tests for Virtuozzo hypervisor 2017-03-01 15:45:24 -05:00
urlfetcher.py Add x86_64 check to urlfetcher to cater for Ubuntu 16.04 2017-04-04 15:24:05 -04:00
util.py util: Catch libxml2 stderr messages 2017-03-06 22:15:46 -05:00
xmlbuilder.py xmlbuilder: Improve __repr__ a bit 2017-03-08 13:59:11 -05:00
xmlnsqemu.py guest: Add support for qemu cli passthrough 2017-03-06 22:15:46 -05:00