Skip to content
Snippets Groups Projects
Commit a66e7c1b authored by Antoine Millet's avatar Antoine Millet
Browse files

Update storage pools before volume import

parent f2e9822c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment