Bug 683984

Summary: 2.2.7 VDSM: unable to reconnect SD after DC was removed with Error that the Domain is already used by another Data Center
Product: Red Hat Enterprise Linux 5 Reporter: Chris Pelland <cpelland>
Component: vdsm22Assignee: Eduardo Warszawski <ewarszaw>
Status: CLOSED ERRATA QA Contact: Omri Hochman <ohochman>
Severity: unspecified Docs Contact:
Priority: high    
Version: 5.6CC: abaron, bazulay, chetan, cpelland, danken, dpaikov, dron, ewarszaw, iheim, pm-eus, ykaul
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: vdsm22-4.5-63.22.el5_6 Doc Type: Bug Fix
Doc Text:
C: After removing a data center, storage domains that were previously attached to it would still register as being used by the removed data center C: Storage domains could not be reattached to another data center without restarting VDSM F: The update removes the error that the storage domains are still in use R: Storage domains can now be reattached to new data centers without restarting VDSM. Text: After removing a data center, the storage domains that were attached to it could not be allocated to another data center unless VDSM was restarted. With this update, storage domains can now be reattached to new data centers without restarting VDSM.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-11 16:06:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 678309    
Bug Blocks:    
Attachments:
Description Flags
screen shot and logs none

Description Chris Pelland 2011-03-10 20:43:16 UTC
This bug has been copied from bug #678309 and has been proposed
to be backported to 5.6 z-stream (EUS).

Comment 4 Daniel Paikov 2011-03-15 15:47:51 UTC
Checked on vdsm22-4.5-63.22.

Comment 5 Dafna Ron 2011-03-15 16:28:47 UTC
Created attachment 485545 [details]
screen shot and logs

this issue is not solved. 
I had this error again.
screen shot and log attached

Comment 6 Eduardo Warszawski 2011-03-23 10:26:23 UTC
BZ#678309 was verified in vdsm22-4.5-63.22.

The fix for BZ#678309 is not included in the buid used for the last reproduction (comment #5).

Please verify it with a build including the fix as vdsm22-4.5-63.25.


vdsm/storage/sp.py
     def validateUnattachedDomain(self, sdUUID):
         dom = SDF.produce(sdUUID)
-        spUUID = dom.getMetaParam(sd.POOL, False)
+        spUUID = dom.getInfo()['pool']
         if spUUID:
             raise se.StorageDomainAlreadyAttached(spUUID, sdUUID)

Comment 7 Dan Kenigsberg 2011-03-23 22:21:17 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
After removing a datacenter, the storage domains that comprise it sometimes could not be attached to another datacenter without restarting vdsm.

Comment 8 Dafna Ron 2011-03-24 15:51:15 UTC
verified on:

ic105
vdsm22-4.5-63.25.el5_6
vdsm22-cli-4.5-63.25.el5_6
vdsm22-debuginfo-4.5-63.25.el5_6
kvm-qemu-img-83-224.el5

reproduced several times in a raw. 

issue fixed.

Comment 9 Cheryn Tan 2011-04-07 05:49:44 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1,7 @@
-After removing a datacenter, the storage domains that comprise it sometimes could not be attached to another datacenter without restarting vdsm.+C: After removing a data center, storage domains that were previously attached to it would still register as being used by the removed data center
+C: Storage domains could not be reattached to another data center without restarting VDSM
+F: The update removes the error that the storage domains are still in use
+R: Storage domains can now be reattached to new data centers without restarting VDSM.
+
+Text:
+After removing a data center, the storage domains that were attached to it could not be allocated to another data center unless VDSM was restarted. With this update, storage domains can now be reattached to new data centers without restarting VDSM.

Comment 10 errata-xmlrpc 2011-04-11 16:06:59 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0424.html