Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 888209

Summary: cannot re-attach ISO domain detached during data center deletion
Product: Red Hat Enterprise Virtualization Manager Reporter: Petr Spacek <pspacek>
Component: ovirt-engineAssignee: Ayal Baron <abaron>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Haim <hateya>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: dyasny, iheim, lpeer, pspacek, Rhev-m-bugs, sgrinber, yeylon, ykaul
Target Milestone: ---Keywords: Reopened
Target Release: 3.1.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-30 22:12:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine.log none

Description Petr Spacek 2012-12-18 09:47:14 UTC
Created attachment 665384 [details]
engine.log

Description of problem:
After deleting data center it is not possible to re-attache ISO storage domain to another DC.


Version-Release number of selected component (if applicable):
rhevm-3.1.0-32.el6ev.noarch

How reproducible:
100 %

Steps to Reproduce:
1. create DC (I created it with 2 iSCSI storage domains)
1b. add two hosts
2. create ISO storage domain
3. upload some ISOs
4. delete whole DC
5. delete original cluster and all hosts
6. create new DC (also iSCSI)
7. create new cluster
8. add same hosts to the new DC
9. click to System->Storage (top tab)->iso domain iso-laika (in domains list)->Data center (bottom tab)->Attach button->check new DC->Ok


Actual results:
Message from event log: "Failed to attach Storage Domain iso-laika to Data Center IDM_BRQ. (User: admin@internal)"


Expected results:
ISO domain is attached to the new DC.

Additional info:
Log from rhev-m host is attached. DNS domain was changed a bit. Log contain two consecutive attempts (with same failure at the end).

Comment 2 Haim 2012-12-20 14:20:47 UTC
please attach full vdsm log from both hosts and full engine log compressed in tar.
make sure that logs captures also data-center deletion action.

how did you delete the data-center? were all domain went into un-attached state? also, can we have a look at ISO storage domain metadata, please dump the following:

# mount aika.example.com:/rhev-iso /mnt
# cd /mnt
# cat <SDUUID>/dom_md/metadata

Comment 7 Ayal Baron 2012-12-23 15:49:28 UTC
Please attach the vdsm.log as it looks like vdsm couldn't locate your domain:

2012-12-18 10:17:15,789 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.BrokerCommandBase] (pool-4-thread-50) [13f3abd1] Error code StorageDomainDoesNotExist and error message IRSGenericException: IRSErrorException: Failed to AttachStorageDomainVDS, error = Storage domain does not exist: ('93281396-002a-474c-be68-d3c00238a92a',)

Comment 9 Petr Spacek 2013-01-03 13:05:40 UTC
I can't reproduce it again for some reason.

If I remember correctly there were some changes related to fixing bug 889217 and then some changes to iSCSI and LVM configuration, but IMHO nothing which should affect NFS mounts.