Bug 896484

Summary: engine: we change SPM when we fail to mount Export domain (storage becomes unknown for a few minutes)
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engineAssignee: Liron Aravot <laravot>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.1.2CC: acathrow, amureini, bazulay, dyasny, iheim, lpeer, Rhev-m-bugs, sgrinber, yeylon, ykaul
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: SF9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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
logs none

Description Dafna Ron 2013-01-17 12:11:11 UTC
Created attachment 680158 [details]
logs

Description of problem:

I failed attaching an export domain because the resolve.conf did not have 'search qa.lab.tlv.redhat.com tlv.redhat.com redhat.com' in the file. 

when I tried attaching an export domain to the pool I failed mount and SPM was moved to second host. as a result all the domain were unknown for a few minutes and the vm's were non responsive. 

Version-Release number of selected component (if applicable):

si26

How reproducible:

100%

Steps to Reproduce:
1. in a two hosts cluster with iscsi data domains, create and attach an export domain to the setup (not the pool) but do not use full resulve name (wolf.qa.lab.tlv.redhat.com - just use wolf:/mount_point)
2. remove from /etc/resolve.conf the line 'search qa.lab.tlv.redhat.com tlv.redhat.com redhat.com' 
3. try to attach the export domain to the pool
  
Actual results:

when mount fails we move spm to the second host which causes the storage to become unavailable for several minutes until contending is done. 

Expected results:

we should not move SPM when Export domain fails to mount, the domain should fail attach to pool/ if its attach we should move domain to inactive. 

Additional info: logs

Comment 2 Liron Aravot 2013-02-04 10:13:28 UTC
merged upstream

http://gerrit.ovirt.org/#/c/11677/

Comment 3 Elad 2013-03-07 16:24:59 UTC
Tested on SF9

Comment 4 Itamar Heim 2013-06-11 09:47:50 UTC
3.2 has been released

Comment 5 Itamar Heim 2013-06-11 09:47:57 UTC
3.2 has been released

Comment 6 Itamar Heim 2013-06-11 09:56:59 UTC
3.2 has been released