<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div>Allon,</div><div><br></div><div>It looks like we pass more arguments than reqired. Will fix. Please open a bug.</div><div><br></div><div><br></div><div style="font-size:9px">Thanks,</div><div style="font-size:9px">Piotr</div><br><br><div>-------- Oryginalna wiadomość --------</div><div>Od: Allon Mureinik <amureini@redhat.com> </div><div>Data:14.09.2014  09:28  (GMT+01:00) </div><div>Do: Piotr Kliczewski <pkliczew@redhat.com> </div><div>DW: users <users@ovirt.org>,Gianluca Cecchi <gianluca.cecchi@gmail.com>,Oved Ourfali <ovedo@redhat.com> </div><div>Temat: Re: [ovirt-users] ovirt 3.5 rc2 and iscsi error with chap enabled        during discovery </div><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000"><div>Piotr, this looks like JSON-RPC mishap.</div><div>Can you take a look please?</div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Gianluca Cecchi" &lt;gianluca.cecchi@gmail.com&gt;<br><b>To: </b>"users" &lt;users@ovirt.org&gt;<br><b>Sent: </b>Saturday, September 13, 2014 1:15:50 AM<br><b>Subject: </b>[ovirt-users] ovirt 3.5 rc2 and iscsi error with chap enabled&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;during discovery<br><div><br></div><div dir="ltr"><div>Hello,<br>trying to configure iSCSI storage domain.<br><div><br></div></div><div>I have configured a CentOS 6.5 server as sw iSCSI target with chap authentication.<br></div><div>port 3260 is open for tcp connections.<br></div><div>I have an oVirt host that is CentOS 6.5 and when trying to discover targets I get in /var/log/messages <br><div><br></div>Sep 12 23:50:19 ovnode04 vdsm jsonrpc.JsonRpcServer ERROR Internal server error#012Traceback (most recent call last):#012&nbsp; File "/usr/lib/python2.6/site-packages/yajsonrpc/__init__.py", line 486, in _serveRequest#012&nbsp;&nbsp;&nbsp; res = method(**params)#012&nbsp; File "/usr/share/vdsm/rpc/Bridge.py", line 264, in _dynamicMethod#012&nbsp;&nbsp;&nbsp; raise InvalidCall(fn, methodArgs, e)#012InvalidCall: Attempt to call function: &lt;bound method ISCSIConnection.discoverSendTargets of &lt;API.ISCSIConnection object at 0x7f0a48145150&gt;&gt; with arguments: (u'iscsiuser', u'iscsipwd') error: discoverSendTargets() takes exactly 1 argument (3 given)<br>Sep 12 23:50:22 ovnode04 vdsm jsonrpc.JsonRpcServer ERROR Internal server error#012Traceback (most recent call last):#012&nbsp; File "/usr/lib/python2.6/site-packages/yajsonrpc/__init__.py", line 486, in _serveRequest#012&nbsp;&nbsp;&nbsp; res = method(**params)#012&nbsp; File "/usr/share/vdsm/rpc/Bridge.py", line 264, in _dynamicMethod#012&nbsp;&nbsp;&nbsp; raise InvalidCall(fn, methodArgs, e)#012InvalidCall: Attempt to call function: &lt;bound method ISCSIConnection.discoverSendTargets of &lt;API.ISCSIConnection object at 0x7f0a480e5ad0&gt;&gt; with arguments: (u'iscsiuser', u'iscsipwd') error: discoverSendTargets() takes exactly 1 argument (3 given)<br><div><br></div></div><div>screenshot that returns no new devices found is here:<br><a href="https://drive.google.com/file/d/0BwoPbcrMv8mvbVlycnJCTWJtNXc/edit?usp=sharing" target="_blank">https://drive.google.com/file/d/0BwoPbcrMv8mvbVlycnJCTWJtNXc/edit?usp=sharing</a><br><div><br></div></div><div>BTW: chap user and password input fields could be wider, so that the whole words input can seen on the screen. there is plenty of space... Also password field should not be in clear text as it is now<br><div><br></div></div><div>The approach to successfully connect the LUN seems to be:<br></div><div>1) make discovery but with chap unchecked<br></div><div>2) the target then shows up <br></div><div>see <br><a href="https://drive.google.com/file/d/0BwoPbcrMv8mvb1pET3VNMWJuRUk/edit?usp=sharing" target="_blank">https://drive.google.com/file/d/0BwoPbcrMv8mvb1pET3VNMWJuRUk/edit?usp=sharing</a><br></div><div>3) now check the box for chap authentication and select login all<br>you now get the luns<br><a href="https://drive.google.com/file/d/0BwoPbcrMv8mveExRMzN1Z0RtR1k/edit?usp=sharing" target="_blank">https://drive.google.com/file/d/0BwoPbcrMv8mveExRMzN1Z0RtR1k/edit?usp=sharing</a><br></div><div>4) then select the lun(s) desired and select OK<br><div><br></div></div><div>is this correct? In case I think it should be disabled the chap option during discovery phase...<br></div><div>otherwise I have not configured correctly my iscsi target perhaps.<br>ovirt host network ip is 10.10.1.61<br><div><br></div>tgtadm --lld iscsi --mode target --op show<br>Target 1: iqn.2014-07.local.localdomain:store1<br>&nbsp;&nbsp;&nbsp; System information:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Driver: iscsi<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; State: ready<br>&nbsp;&nbsp;&nbsp; I_T nexus information:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I_T nexus: 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Initiator: iqn.1994-05.com.redhat:5d9b31319a8e<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Connection: 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IP Address: 10.10.1.61<br>&nbsp;&nbsp;&nbsp; LUN information:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LUN: 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Type: controller<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SCSI ID: IET&nbsp;&nbsp;&nbsp;&nbsp; 00010000<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SCSI SN: beaf10<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Size: 0 MB, Block size: 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Online: Yes<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Removable media: No<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Prevent removal: No<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Readonly: No<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Backing store type: null<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Backing store path: None<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Backing store flags: <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LUN: 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Type: disk<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SCSI ID: p_iscsi_store1_l<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SCSI SN: 66666a41<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Size: 214738 MB, Block size: 512<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Online: Yes<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Removable media: No<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Prevent removal: No<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Readonly: No<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Backing store type: rdwr<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Backing store path: /dev/drbd/by-res/iscsiha<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Backing store flags: <br>&nbsp;&nbsp;&nbsp; Account information:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iscsiuser<br>&nbsp;&nbsp;&nbsp; ACL information:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10.10.1.61<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10.10.1.62<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10.10.1.63<br></div><br><div>Gianluca<br><div><br></div>&nbsp; <br></div></div>
<br>_______________________________________________<br>Users mailing list<br>Users@ovirt.org<br>http://lists.ovirt.org/mailman/listinfo/users<br></blockquote><div><br></div></div></body>