Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
virt-manager.1480
538a3ba9-diskbackend-start-pool-if-not-running....
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 538a3ba9-diskbackend-start-pool-if-not-running.patch of Package virt-manager.1480
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:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor