Revision ec596c24 lib/backend.py
b/lib/backend.py | ||
---|---|---|
809 | 809 |
if instance.name in running_instances: |
810 | 810 |
return True |
811 | 811 |
|
812 |
block_devices = _GatherAndLinkBlockDevs(instance) |
|
813 |
hyper = hypervisor.GetHypervisor(instance.hypervisor) |
|
814 |
|
|
815 | 812 |
try: |
813 |
block_devices = _GatherAndLinkBlockDevs(instance) |
|
814 |
hyper = hypervisor.GetHypervisor(instance.hypervisor) |
|
816 | 815 |
hyper.StartInstance(instance, block_devices, extra_args) |
816 |
except errors.BlockDeviceError, err: |
|
817 |
logging.exception("Failed to start instance") |
|
818 |
return False |
|
817 | 819 |
except errors.HypervisorError, err: |
818 | 820 |
logging.exception("Failed to start instance") |
819 | 821 |
return False |
Also available in: Unified diff