Commit a66e7c1b authored by Antoine Millet's avatar Antoine Millet

Update storage pools before volume import

parent f2e9822c
......@@ -567,6 +567,7 @@ class Handler(HostHandler):
"""
logger.debug('Volume import pool = %s, volume = %s', pool, name)
try:
self.hypervisor.storage.update()
pool = self.hypervisor.storage.get_storage(pool)
if pool is None:
raise PoolStorageError('Pool storage does not exist')
......
......@@ -437,7 +437,7 @@ class Storage(object):
return True if self.type in Storage.SHARED_TYPES else False
def update(self):
self.lv_storage.poolRefresh()
self.lv_storage.refresh()
self.update_attr()
# update volumes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment