766768c9d2
opensuse13.img for SLE-Server virtinst-detect-suse-distros.patch - bnc#881549 - virt-manager/xen: Error changing VM configuration: 'NoneType' object has no attribute 'split' virtinst-xenbus-disk-index-fix.patch - Upstream bug fix 538edb3b-manpage-fix-incorrect-description.patch - Upstream bug fixes 536677aa-better-handling-of-keyboard-input-type.patch 5385d602-lxc-no-default-disk.patch 53869170-virt-install-add-events-support.patch 538a11dc-raise-error-if-populating-summary-page-fails.patch 538a3609-virtconv-fix-use-of-relative-OVF-file.patch 538a3ba9-diskbackend-start-pool-if-not-running.patch 538ca3f3-use-correct-dictionary-keys-for-old-pool-net-polling.patch 538d00a4-xen-keyboard-cant-be-removed.patch 538e2f74-fix-pool-create-call.patch - Dropped 531e0a82-reverse-keyboard-grab-commit.patch. Fixed instead with this patch. 538a6862-vnc-dont-force-keyboard-grab-before-widget-is-realized.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=182
25 lines
893 B
Diff
25 lines
893 B
Diff
Subject: diskbackend: If pool not running, start it
|
|
From: Cole Robinson crobinso@redhat.com Sat May 31 16:29:29 2014 -0400
|
|
Date: Sat May 31 16:29:29 2014 -0400:
|
|
Git: d6f063d0b888cabdf8a348bbd86e2f5353b040fd
|
|
|
|
Nowadays we depend on the pool existing and running, so better to get
|
|
an error up front if pool startup will fail
|
|
|
|
diff --git a/virtinst/diskbackend.py b/virtinst/diskbackend.py
|
|
index 3d5aed8..118f649 100644
|
|
--- a/virtinst/diskbackend.py
|
|
+++ b/virtinst/diskbackend.py
|
|
@@ -86,9 +86,9 @@ def check_if_path_managed(conn, path):
|
|
if not vol:
|
|
pool = StoragePool.lookup_pool_by_path(conn, os.path.dirname(path))
|
|
|
|
- # Is pool running?
|
|
+ # Ensure pool is running
|
|
if pool and pool.info()[0] != libvirt.VIR_STORAGE_POOL_RUNNING:
|
|
- pool = None
|
|
+ pool.start()
|
|
|
|
# Attempt to lookup path as a storage volume
|
|
if pool and not vol:
|