New patch submitted by Eduardo Warszawski (ewarszaw(a)redhat.com)
You can review this change at:
http://gerrit.usersys.redhat.com/637
commit 0f27a3fcc8ecbe2e7f3925d0251a05c033b01d64
Author: Eduardo Warszawski <ewarszaw(a)redhat.com>
Date: Thu Jun 30 05:40:58 2011 +0300
BZ#717658 - Forward one step the reloading of block domains.
SDF.invalidateStorage() will trigger SDF.refreshStorage when SDF.lookup,
but lvm reload will came only after.
Change-Id: I035060894720518d70a0951ffc0d0c14a98793d2
diff --git a/vdsm/storage/hsm.py b/vdsm/storage/hsm.py
index ab5a59d..29206f5 100644
--- a/vdsm/storage/hsm.py
+++ b/vdsm/storage/hsm.py
@@ -1055,7 +1055,7 @@ class HSM:
statusList =
storage_connection.StorageServerConnection().connect(domType=domType, conList=conList)
# Connecting new device may change the visible storage domain list
# so invalidate caches
- SDF.invalidateStorage()
+ SDF.refreshStorage()
return dict(statuslist=statusList)