Change in vdsm[master]: If attachSD fails - rescan for new vgs not visible from spm
ykaplan at redhat.com
ykaplan at redhat.com
Sun Dec 30 17:00:37 UTC 2012
Yeela Kaplan has uploaded a new change for review.
Change subject: If attachSD fails - rescan for new vgs not visible from spm
......................................................................
If attachSD fails - rescan for new vgs not visible from spm
Change-Id: I7cb26397d8a38215aaec0287e7882751471a6d61
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=883390
Signed-off-by: Yeela Kaplan <ykaplan at redhat.com>
---
M vdsm/storage/sp.py
1 file changed, 6 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/95/10495/1
diff --git a/vdsm/storage/sp.py b/vdsm/storage/sp.py
index 40d15b3..0653634 100644
--- a/vdsm/storage/sp.py
+++ b/vdsm/storage/sp.py
@@ -37,6 +37,7 @@
import blockSD
import fileSD
import sd
+import multipath
import misc
import fileUtils
from vdsm.config import config
@@ -919,7 +920,11 @@
if len(domains) >= self.getMaximumSupportedDomains():
raise se.TooManyDomainsInStoragePoolError()
- dom = sdCache.produce(sdUUID)
+ try:
+ dom = sdCache.produce(sdUUID)
+ except se.StorageDomainDoesNotExist:
+ multipath.rescan()
+ dom = sdCache.produce(sdUUID)
dom.acquireHostId(self.id)
try:
--
To view, visit http://gerrit.ovirt.org/10495
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7cb26397d8a38215aaec0287e7882751471a6d61
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yeela Kaplan <ykaplan at redhat.com>
More information about the vdsm-patches
mailing list