Bug 853994

Summary: ovirt-engine-backend: when we fail DisconnectStoragePool the domains status's keep changing from active to inactive to unknown in a loop
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engineAssignee: Liron Aravot <laravot>
Status: CLOSED CURRENTRELEASE QA Contact: Dafna Ron <dron>
Severity: high Docs Contact:
Priority: high    
Version: 3.1.0CC: abaron, amureini, dyasny, hateya, iheim, lpeer, Rhev-m-bugs, sgrinber, yeylon, ykaul
Target Milestone: ---   
Target Release: 3.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: SI19 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 2012-09-03 13:59:52 UTC
Created attachment 609397 [details]
logs

Description of problem:

In a setup where the domains are made out of luns from different storage's (extended) I removed my host's from one of the Storage's access list. 
we fail to disconnect the pool so it appears to be in up state while the domains keep changing status from active/unknown/inactive. 

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

si16

How reproducible:

100%

Steps to Reproduce:
1. create domains which have luns from different storage servers
2. remove the hosts from one of the storage's access list's
3.
  
Actual results:

domains status's keeps changing in a loop 

Expected results:

we should create a time out in which the domains remain inactive in case we hace storage issues. 

Additional info:logs

Comment 1 Dafna Ron 2012-09-03 14:00:23 UTC
from db:

engine=# SELECT status from storage_domains;
 status 
--------
      3
      3
      3
      3
      0
      3
(6 rows)

engine=# SELECT status from storage_domains;
 status 
--------
      3
      3
      3
      3
      0
      3
(6 rows)

engine=# SELECT status from storage_domains;
 status 
--------
      3
      3
      3
      3
      3
      0
(6 rows)

engine=# SELECT status from storage_domains;
 status 
--------
      0
      0
      0
      0
      0
      0
(6 rows)

Comment 2 Ayal Baron 2012-09-12 06:26:28 UTC
Is 'autorecovery' enabled?

Comment 3 Dafna Ron 2012-09-12 06:35:19 UTC
no. auto recovery is disabled.

Comment 4 Liron Aravot 2012-09-24 12:21:06 UTC
http://gerrit.ovirt.org/#/c/7257/

verified by paikov on U/S.

Comment 5 Dafna Ron 2012-10-02 14:44:09 UTC
verified on si19