Bug 683984 - 2.2.7 VDSM: unable to reconnect SD after DC was removed with Error that the Domain is already used by another Data Center
Summary: 2.2.7 VDSM: unable to reconnect SD after DC was removed with Error that the D...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: vdsm22
Version: 5.6
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: ---
Assignee: Eduardo Warszawski
QA Contact: Omri Hochman
URL:
Whiteboard:
Depends On: 678309
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-10 20:43 UTC by Chris Pelland
Modified: 2013-01-09 06:49 UTC (History)
11 users (show)

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.
Clone Of:
Environment:
Last Closed: 2011-04-11 16:06:59 UTC
Target Upstream Version:


Attachments (Terms of Use)
screen shot and logs (902.86 KB, application/x-gzip)
2011-03-15 16:28 UTC, Dafna Ron
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0424 0 normal SHIPPED_LIVE vdsm bug fix update 2011-04-11 16:06:34 UTC

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


Note You need to log in before you can comment on or make changes to this bug.