Bug 868681

Summary: [RACE]: Error in forceIScsiScan when putting hsm host in maintenance and deactivating domains at the same time (disconnect storage server is failing)
Product: Red Hat Enterprise Linux 6 Reporter: Dafna Ron <dron>
Component: vdsmAssignee: Yeela Kaplan <ykaplan>
Status: CLOSED ERRATA QA Contact: Leonid Natapov <lnatapov>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.3CC: abaron, bazulay, dpaikov, dyasny, hateya, iheim, ilvovsky, jbiddle, lpeer, mkenneth, oourfali, Rhev-m-bugs, sgrinber, thildred, vvyazmin, yeylon, ykaplan, ykaul
Target Milestone: rcKeywords: Regression, ZStream
Target Release: 6.3   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: vdsm-4.9.6-41.0 Doc Type: Bug Fix
Doc Text:
Previously, due to a race condition, an exception error would sometimes occur in forceIScsiScan when attempting to put a host containing the host storage manager into maintenance mode and deactivating the attached storage domains. This caused the deactivation to fail and also caused problems when attempting to reactivate the domain. The race issue has been corrected to prevent exception errors when forceIScsiScan is used.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 19:13:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
logs none

Description Dafna Ron 2012-10-21 17:14:19 UTC
Created attachment 630944 [details]
logs

Description of problem:

we get Error in forceIScsiScan when we put hsm host in maintenance and deactivating storage domains. 

event logs will show first: 

Failed to deactivate Storage Domain Dafna_New2 (Data Center iSCSI). (User: admin@internal)

and then we will deactivate the domains since it is not visible by the host:

Storage Domain Dafna_New2 (Data Center iSCSI) was deactivated by system because it's not visible by any of the hosts. 

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

si21.1

How reproducible:

30%

Steps to Reproduce:
1. have at least two hosts with a lot of iscsi domains.
2. start putting domains in maintenance + put the hsm hosts in maintenance. 
3.
  
Actual results:

we get Error in forceIScsiScan 
domains was disconnected and will be deactivated since the host cannot connect to it 

Expected results:

we should be able to put the hsm in maintenance and deactivate domains with no issues. 

Additional info:logs

Comment 2 Yeela Kaplan 2012-10-25 15:50:27 UTC
http://gerrit.ovirt.org/#/c/8820/

Comment 7 Daniel Paikov 2012-11-06 16:32:17 UTC
Checked on si24.

Comment 8 vvyazmin@redhat.com 2012-11-06 17:26:47 UTC
Verified on RHEVM 3.1 - SI24

RHEVM: rhevm-3.1.0-26.el6ev.noarch
VDSM: vdsm-4.9.6-41.0.el6_3.x86_64
LIBVIRT: libvirt-0.9.10-21.el6_3.5.x86_64
QEMU & KVM: qemu-kvm-rhev-0.12.1.2-2.295.el6_3.4.x86_64
SANLOCK: sanlock-2.3-4.el6_3.x86_64

Comment 10 errata-xmlrpc 2012-12-04 19:13:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2012-1508.html