Change in vdsm[master]: sdc.py: Remove domain before activating

amureini at redhat.com amureini at redhat.com
Sun Aug 25 08:44:04 UTC 2013


Allon Mureinik has uploaded a new change for review.

Change subject: sdc.py: Remove domain before activating
......................................................................

sdc.py: Remove domain before activating

When a domain is activated, we should not rely on the cache as the
domain's connection data may have been edited while it was deactivated.

Change-Id: I458132878f2ae39f9efec6420dd582bfc2f888fc
Bug-Url: https://bugzilla.redhat.com/950055
Signed-off-by: Allon Mureinik <amureini at redhat.com>
---
M vdsm/storage/sp.py
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/58/18458/1

diff --git a/vdsm/storage/sp.py b/vdsm/storage/sp.py
index 3f3c1bf..5aafd9c 100644
--- a/vdsm/storage/sp.py
+++ b/vdsm/storage/sp.py
@@ -1102,6 +1102,7 @@
         """
         self.log.info("sdUUID=%s spUUID=%s", sdUUID, self.spUUID)
 
+        sdCache.manuallyRemoveDomain(sdUUID)
         dom = sdCache.produce(sdUUID)
         # Avoid domain activation if not owned by pool
         self.validateAttachedDomain(dom)


-- 
To view, visit http://gerrit.ovirt.org/18458
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I458132878f2ae39f9efec6420dd582bfc2f888fc
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Allon Mureinik <amureini at redhat.com>


More information about the vdsm-patches mailing list