Bug 677107

Summary: [VDSM] vdsm generates general error "status 200" to any iSCSI-initiator error code
Product: Red Hat Enterprise Linux 6 Reporter: David Naori <dnaori>
Component: vdsmAssignee: Igor Lvovsky <ilvovsky>
Status: CLOSED CURRENTRELEASE QA Contact: yeylon <yeylon>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1CC: abaron, bazulay, danken, dnaori, hateya, iheim, lpeer, mgoldboi, srevivo, ykaul
Target Milestone: rc   
Target Release: 6.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: vdsm-4.9-50.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-19 15:13:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 698523    
Attachments:
Description Flags
full vdsm log none

Description David Naori 2011-02-13 12:25:37 UTC
Created attachment 478463 [details]
full vdsm log

For example when trying to login to a target when iscsid is down, iscsiadm reports exit message <rc> = 20 which means :  ISCSI_ERR_ISCSID_NOTCONN - could not connect to iscsid. and vdsm reports "status: 200" which means: "General Storage Exception"

Versions:
-vdsm-4.9-48.el6.x86_64
-iscsi-initiator-utils-6.2.0.872-16.el6.x86_64

How reproducible:
stop iscsid and try to login to a target.

relevant part of vdsm log:

 Thread-186136::DEBUG::2011-02-13 12:06:13,341::iscsi::469::Storage.Misc.excCmd::(addiSCSINode) '/usr/bin/sudo -n /sbin/iscsiadm -m node -T iscsi-error1 -l -p 10.35.64.25:3260' (
cwd None)
Dummy-73::DEBUG::2011-02-13 12:06:14,973::storage_mailbox::632::Storage.Misc.excCmd::(_checkForMail) 'dd if=/rhev/data-center/fad50a22-9f5b-4444-881e-b06d43ad6861/mastersd/dom_m
d/inbox iflag=direct,fullblock count=1 bs=1024000' (cwd None)
Dummy-73::DEBUG::2011-02-13 12:06:15,009::storage_mailbox::632::Storage.Misc.excCmd::(_checkForMail) SUCCESS: <err> = '1+0 records in\n1+0 records out\n1024000 bytes (1.0 MB) co
pied, 0.0232658 s, 44.0 MB/s\n'; <rc> = 0
Thread-186136::DEBUG::2011-02-13 12:06:16,387::iscsi::469::Storage.Misc.excCmd::(addiSCSINode) FAILED: <err> = 'iscsiadm: iscsid is not running. Could not start it up automatica
lly using the startup command in the /etc/iscsi/iscsid.conf iscsid.startup setting. Please check that the file exists or that your init scripts have started iscsid.\niscsiadm: can not connect to iSCSI daemon (111)!\niscsiadm: Could not login to [iface: admin, target: iscsi-error1, portal: 10.35.64.25,3260].\niscsiadm: initiator reported error (20 - could not connect to iscsid)\niscsiadm: iscsid is not running. Could not start it up automatically using the startup command in the /etc/iscsi/iscsid.conf iscsid.startup setting. Please check that the file exists or that your init scripts have started iscsid.\niscsiadm: can not connect to iSCSI daemon (111)!\niscsiadm: Could not login to [iface: david, target: iscsi-error1, portal: 10.35.64.25,3260].\niscsiadm: initiator reported error (20 - could not connect to iscsid)\niscsiadm: iscsid is not running. Could not start it up automatically using the startup command in the /etc/iscsi/iscsid.conf iscsid.startup setting. Please check that the file exists or that your init scripts have started iscsid.\niscsiadm: can not connect to iSCSI daemon (111)!\niscsiadm: Could not login to [iface: sfdf, target: iscsi-error1, portal: 10.35.64.25,3260].\niscsiadm: initiator reported error (20 - could not connect to iscsid)\niscsiadm: Could not log into all portals\n'; <rc> = 20

...


Thread-186136::INFO::2011-02-13 12:06:16,414::dispatcher::100::Storage.Dispatcher.Protect::(run) Run and protect: connectStorageServer, Return response: {'status': {'message': '
OK', 'code': 0}, 'statuslist': [{'status': 200, 'id': '00000000-0000-0000-0000-000000000000'}]}

full log attached.

Comment 2 David Naori 2011-02-23 21:22:38 UTC
Verified - connection to a target with wrong CHAP user name and password:


Thread-11445::DEBUG::2011-02-23 22:58:12,785::iscsi::468::Storage.Misc.excCmd::(addiSCSINode) FAILED: <err> = 'iscsiadm: Could not login to [iface: default, target: iscsi-error1
, portal: 10.35.64.25,3260].\niscsiadm: initiator reported error (24 - iSCSI login failed due to authorization failure)\niscsiadm: Could not log into all portals\n'; <rc> = 24


Thread-11445::INFO::2011-02-23 22:58:12,856::dispatcher::100::Storage.Dispatcher.Protect::(run) Run and protect: connectStorageServer, Return response: {'status': {'message': 'OK', 'code': 0}, 'statuslist': [{'status': 464, 'id': '00000000-0000-0000-0000-000000000000'}]}

which means:

class iSCSILoginError(StorageServeriSCSIError):
    code = 464
    message = "Failed to login to iSCSI node"