Skip to content

Commit

Permalink
Storage autostart
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudOver committed Sep 13, 2016
1 parent e6f1f20 commit 78ff31e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions corecluster/agents/storage_libvirt.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def real_mount(task, conn):
try:
lv_storage = conn.storagePoolLookupByName(storage.name)
if lv_storage.info()[0] == libvirt.VIR_STORAGE_POOL_RUNNING:
lv_storage.setAutostart(True)
lv_storage.setAutostart(False)
storage.state = 'ok'
storage.save()
return
Expand All @@ -104,7 +104,7 @@ def real_mount(task, conn):
log(msg='Storage define failed. Going ahead', exception=e, tags=('info', 'agent', 'storage'))

pool = conn.storagePoolLookupByName(storage.name)
pool.setAutostart(True)
pool.setAutostart(False)
try:
pool.build(0)
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
corecluster (16.09.11) stable; urgency=low
corecluster (16.09.12) stable; urgency=low

* New API method: api/lease/get_unused/
* Updated api for redirections
Expand Down

0 comments on commit 78ff31e

Please sign in to comment.