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

Bug 913573

Summary: [TEXT][iSCSI] In maintenance master SD action get error in the logs: Error in readSessionInfo
Product: Red Hat Enterprise Virtualization Manager Reporter: vvyazmin <vvyazmin>
Component: vdsmAssignee: Allon Mureinik <amureini>
Status: CLOSED WONTFIX QA Contact: Aharon Canan <acanan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: abaron, amureini, bazulay, hateya, iheim, jkt, lnatapov, lpeer, scohen
Target Milestone: ---Keywords: Triaged
Target Release: 3.5.0Flags: lnatapov: needinfo-
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-09 20:19:36 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
## Logs vdsm, rhevm none

Description vvyazmin@redhat.com 2013-02-21 13:59:54 UTC
Created attachment 700551 [details]
## Logs vdsm, rhevm

Description of problem: In maintenance master SD action get error: Error in readSessionInfo

Version-Release number of selected component (if applicable):
RHEVM 3.2 - SF07 environment:

RHEVM: rhevm-3.2.0-8.el6ev.noarch
VDSM: vdsm-4.10.2-8.0.el6ev.x86_64
LIBVIRT: libvirt-0.10.2-18.el6.x86_64
QEMU & KVM: qemu-kvm-rhev-0.12.1.2-2.348.el6.x86_64
SANLOCK: sanlock-2.6-2.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Create iSCSI DC enviroment with multiple hosts
2. Maintenance master SD
  
Actual results:
 Get an error.

Expected results:
No exception should be found

Additional info:

/var/log/ovirt-engine/engine.log

/var/log/vdsm/vdsm.log
Thread-60297::DEBUG::2013-02-21 13:08:40,180::BindingXMLRPC::161::vds::(wrapper) [10.35.160.71]
Thread-60297::DEBUG::2013-02-21 13:08:40,181::task::568::TaskManager.Task::(_updateState) Task=`258868d7-01b0-4572-82ba-33669d239c45`::moving from state init -> state preparing
Thread-60297::INFO::2013-02-21 13:08:40,181::logUtils::37::dispatcher::(wrapper) Run and protect: disconnectStorageServer(domType=3, spUUID='e6cc4675-bf19-41e6-b890-808ff0df5b26', conList=[{'connection': '10.35.160.7', 'iqn': 'iqn.2008-05.com.xtremio:001e675b8ee0', 'portal': '1', 'user': '', 'password': '******', 'id': '3d7728e6-c5fb-4cfa-a544-96ee445377f1', 'port': '3260'}], options=None)
MainProcess|Thread-60297::ERROR::2013-02-21 13:08:40,184::supervdsmServer::81::SuperVdsm.ServerCallback::(wrapper) Error in readSessionInfo
Traceback (most recent call last):
  File "/usr/share/vdsm/supervdsmServer.py", line 79, in wrapper
    return func(*args, **kwargs)
  File "/usr/share/vdsm/supervdsmServer.py", line 145, in readSessionInfo
    return _readSessionInfo(sessionID)
  File "/usr/share/vdsm/storage/iscsi.py", line 83, in readSessionInfo
    raise OSError(errno.ENOENT, "No such session")
OSError: [Errno 2] No such session
Thread-60297::DEBUG::2013-02-21 13:08:40,186::misc::83::Storage.Misc.excCmd::(<lambda>) '/usr/bin/sudo -n /sbin/iscsiadm -m session -r 2 -u' (cwd None)
Thread-60297::DEBUG::2013-02-21 13:08:40,747::misc::83::Storage.Misc.excCmd::(<lambda>) SUCCESS: <err> = ''; <rc> = 0
Thread-60297::DEBUG::2013-02-21 13:08:40,748::misc::1025::SamplingMethod::(__call__) Trying to enter sampling method (storage.sdc.refreshStorage)
Thread-60297::DEBUG::2013-02-21 13:08:40,748::misc::1027::SamplingMethod::(__call__) Got in to sampling method
Thread-60297::DEBUG::2013-02-21 13:08:40,748::misc::1025::SamplingMethod::(__call__) Trying to enter sampling method (storage.iscsi.rescan)
Thread-60297::DEBUG::2013-02-21 13:08:40,749::misc::1027::SamplingMethod::(__call__) Got in to sampling method
Thread-60297::DEBUG::2013-02-21 13:08:40,749::misc::83::Storage.Misc.excCmd::(<lambda>) '/usr/bin/sudo -n /sbin/iscsiadm -m session -R' (cwd None)
Thread-60297::DEBUG::2013-02-21 13:08:40,784::misc::83::Storage.Misc.excCmd::(<lambda>) FAILED: <err> = 'iscsiadm: No session found.\n'; <rc> = 21
Thread-60297::DEBUG::2013-02-21 13:08:40,784::misc::1035::SamplingMethod::(__call__) Returning last result
MainProcess|Thread-60297::DEBUG::2013-02-21 13:08:40,786::misc::83::Storage.Misc.excCmd::(<lambda>) '/bin/dd of=/sys/class/scsi_host/host0/scan' (cwd None)
MainProcess|Thread-60297::DEBUG::2013-02-21 13:08:41,794::misc::83::Storage.Misc.excCmd::(<lambda>) '/bin/dd of=/sys/class/scsi_host/host1/scan' (cwd None)