]> xenbits.xensource.com Git - xenrt-citrix/xenrt.git/commitdiff
Forget operation on SR inherently release the associated LUN
authorVinod Pademar <vinod.pademar@citrix.com>
Tue, 10 Nov 2015 14:09:06 +0000 (14:09 +0000)
committerVinod Pademar <vinod.pademar@citrix.com>
Tue, 10 Nov 2015 14:09:06 +0000 (14:09 +0000)
exec/testcases/xenserver/tc/install.py
exec/testcases/xenserver/tc/lunpervdi.py

index 89ff5830cadca2b5d7d7d1751ae1d08e70858e71..9aa1459ab00ba1baadb1e6cd9e330febde8bbf5f 100755 (executable)
@@ -182,8 +182,8 @@ class TC9352(_HostInstall):
     def postRun(self):
         if self.iscsiSR:
             self.iscsiSR.release()
-        if self.fcLun:
-            self.fcLun.release()
+        if self.fcSR:
+            self.fcSR.forget() # which eventually release the LUN as well.
                 
 class TC12059(TC9352):
     """Install to a server with a boot disk on a SAN via Emulex HBAs with multipath root disk and single path SR"""
index 43e1d35443cd3415257790519345b920e1024fa6..b2f6f4eeb4d3647ac86dd7180ce3bcb1035aac0b 100755 (executable)
@@ -995,7 +995,7 @@ class TC18372(LunPerVDI):
 
         step("Cleaning up")  
         self.pool.disableHA()
-        lun.release()
+        hba.forget() # which eventually release the LUN as well.
 
 class TC18373(LunPerVDI):
     """Verify whether DR feature works with LUN/VDI SR"""