------=_Part_22914255_1975075169.1410679683778
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Piotr, this looks like JSON-RPC mishap.
Can you take a look please?
----- Original Message -----
From: "Gianluca Cecchi" <gianluca.cecchi(a)gmail.com>
To: "users" <users(a)ovirt.org>
Sent: Saturday, September 13, 2014 1:15:50 AM
Subject: [ovirt-users] ovirt 3.5 rc2 and iscsi error with chap enabled during
discovery
Hello,
trying to configure iSCSI storage domain.
I have configured a CentOS 6.5 server as sw iSCSI target with chap
authentication.
port 3260 is open for tcp connections.
I have an oVirt host that is CentOS 6.5 and when trying to discover targets I
get in /var/log/messages
Sep 12 23:50:19 ovnode04 vdsm jsonrpc.JsonRpcServer ERROR Internal
server
error#012Traceback (most recent call last):#012 File
"/usr/lib/python2.6/site-packages/yajsonrpc/__init__.py", line 486, in
_serveRequest#012 res = method(**params)#012 File
"/usr/share/vdsm/rpc/Bridge.py", line 264, in _dynamicMethod#012 raise
InvalidCall(fn, methodArgs, e)#012InvalidCall: Attempt to call function:
<bound method ISCSIConnection.discoverSendTargets of <API.ISCSIConnection
object at 0x7f0a48145150>> with arguments: (u'iscsiuser',
u'iscsipwd')
error: discoverSendTargets() takes exactly 1 argument (3 given)
Sep 12 23:50:22 ovnode04 vdsm jsonrpc.JsonRpcServer ERROR Internal server
error#012Traceback (most recent call last):#012 File
"/usr/lib/python2.6/site-packages/yajsonrpc/__init__.py", line 486, in
_serveRequest#012 res = method(**params)#012 File
"/usr/share/vdsm/rpc/Bridge.py", line 264, in _dynamicMethod#012 raise
InvalidCall(fn, methodArgs, e)#012InvalidCall: Attempt to call function:
<bound method ISCSIConnection.discoverSendTargets of <API.ISCSIConnection
object at 0x7f0a480e5ad0>> with arguments: (u'iscsiuser',
u'iscsipwd')
error: discoverSendTargets() takes exactly 1 argument (3 given)
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
The approach to successfully connect the LUN seems to be:
1) make discovery but with chap unchecked
2) the target then shows up
see
https://drive.google.com/file/d/0BwoPbcrMv8mvb1pET3VNMWJuRUk/edit?usp=sha...
3) now check the box for chap authentication and select login all
you now get the luns
https://drive.google.com/file/d/0BwoPbcrMv8mveExRMzN1Z0RtR1k/edit?usp=sha...
4) then select the lun(s) desired and select OK
is this correct? In case I think it should be disabled the chap
option during
discovery phase...
otherwise I have not configured correctly my iscsi target perhaps.
ovirt host network ip is 10.10.1.61
tgtadm --lld iscsi --mode target --op show
Target 1: iqn.2014-07.local.localdomain:store1
System information:
Driver: iscsi
State: ready
I_T nexus information:
I_T nexus: 1
Initiator: iqn.1994-05.com.redhat:5d9b31319a8e
Connection: 0
IP Address: 10.10.1.61
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 00010000
SCSI SN: beaf10
Size: 0 MB, Block size: 1
Online: Yes
Removable media: No
Prevent removal: No
Readonly: No
Backing store type: null
Backing store path: None
Backing store flags:
LUN: 1
Type: disk
SCSI ID: p_iscsi_store1_l
SCSI SN: 66666a41
Size: 214738 MB, Block size: 512
Online: Yes
Removable media: No
Prevent removal: No
Readonly: No
Backing store type: rdwr
Backing store path: /dev/drbd/by-res/iscsiha
Backing store flags:
Account information:
iscsiuser
ACL information:
10.10.1.61
10.10.1.62
10.10.1.63
Gianluca
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
------=_Part_22914255_1975075169.1410679683778
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html><body><div style=3D"font-family: times new roman,new
york,times,serif=
; font-size: 12pt; color: #000000"><div>Piotr, this looks like JSON-RPC
mis=
hap.</div><div>Can you take a look
please?</div><div><br></div><hr id=3D"zw=
chr"><blockquote style=3D"border-left:2px solid
#1010FF;margin-left:5px;pad=
ding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decorati=
on:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From:
</=
b>"Gianluca Cecchi"
&lt;gianluca.cecchi(a)gmail.com&gt;<br><b>To:
</b>"users"=
&lt;users(a)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 c=
hap
enabled during
discovery=
<br><div><br></div><div
dir=3D"ltr"><div>Hello,<br>trying to configure iSCS=
I 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 3=
260 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 ERRO=
R Internal server error#012Traceback (most recent call last):#012 Fil=
e "/usr/lib/python2.6/site-packages/yajsonrpc/__init__.py", line 486, in _s=
erveRequest#012 res =3D method(**params)#012 File
"=
/usr/share/vdsm/rpc/Bridge.py", line 264, in _dynamicMethod#012 =
raise InvalidCall(fn, methodArgs, e)#012InvalidCall: Attempt to call=
function: <bound method ISCSIConnection.discoverSendTargets of <API.=
ISCSIConnection object at 0x7f0a48145150>> with arguments: (u'iscsius=
er', u'iscsipwd') error: discoverSendTargets() takes exactly 1 argument (3 =
given)<br>Sep 12 23:50:22 ovnode04 vdsm jsonrpc.JsonRpcServer ERROR Interna=
l server error#012Traceback (most recent call last):#012 File "/usr/l=
ib/python2.6/site-packages/yajsonrpc/__init__.py", line 486, in _serveReque=
st#012 res =3D method(**params)#012 File
"/usr/shar=
e/vdsm/rpc/Bridge.py", line 264, in _dynamicMethod#012
ra=
ise InvalidCall(fn, methodArgs, e)#012InvalidCall: Attempt to call function=
: <bound method ISCSIConnection.discoverSendTargets of <API.ISCSIConn=
ection object at 0x7f0a480e5ad0>> with arguments: (u'iscsiuser',
u'is=
csipwd') 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=3D"https://drive.google.com/file/d/0BwoPbcrMv8mvbVlycnJCTW=
JtNXc/edit?usp=3Dsharing"
target=3D"_blank">https://drive.google.com/file/d=
/0BwoPbcrMv8mvbVlycnJCTWJtNXc/edit?usp=3Dsharing</a><br><div><br></div></di=
v><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></d=
iv><div>1) make discovery but with chap
unchecked<br></div><div>2) the targ=
et then shows up <br></div><div>see <br><a
href=3D"https://drive.google.com=
/file/d/0BwoPbcrMv8mvb1pET3VNMWJuRUk/edit?usp=3Dsharing"
target=3D"_blank">=
https://drive.google.com/file/d/0BwoPbcrMv8mvb1pET3VNMWJuRUk/edit?usp=3Dsha=
ring</a><br></div><div>3) now check the box for chap
authentication and sel=
ect login all<br>you now get the luns<br><a
href=3D"https://drive.google.co=
m/file/d/0BwoPbcrMv8mveExRMzN1Z0RtR1k/edit?usp=3Dsharing"
target=3D"_blank"=
aring</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 dis=
abled the chap option during discovery phase...<br></div><div>otherwise
I h=
ave 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 s=
how<br>Target 1:
iqn.2014-07.local.localdomain:store1<br> =
System
information:<br>
Driver: =
iscsi<br>
State: ready<br> &=
nbsp; I_T nexus
information:<br> &=
nbsp; I_T nexus:
1<br>  =
; Initiator:
iqn.1994-05.com.redhat:5d9b31319a8e<br>  =
;
Connection: 0<br>&n=
bsp;  =
; IP Address: 10.10.1.61<br> LUN
information:=
<br> LUN:
0<br> =
Type:
controller<br> =
SCSI ID: IET&n=
bsp;
00010000<br> &nbs=
p; SCSI SN:
beaf10<br>  =
; Size: 0 MB, Block size:
1<br> &n=
bsp;
Online: Yes<br>&=
nbsp;
Removable=
media:
No<br> &=
nbsp; Prevent removal:
No<br> &nbs=
p; Readonly:
No<br> &n=
bsp; Backing store type:
null<br> =
Backing
store path: None<b=
r>
Backin=
g store flags:
<br> LUN:
1<br>&nb=
sp;
Type: disk<=
br>
SCSI =
ID:
p_iscsi_store1_l<br> &nb=
sp; SCSI SN:
66666a41<br> &n=
bsp; Size: 214738 MB, Block size:
512<br> &nbs=
p;
Online: Yes<br>&nb=
sp;
Removable m=
edia:
No<br> &nb=
sp; Prevent removal:
No<br> =
Readonly:
No<br> &nbs=
p; Backing store type:
rdwr<br> &n=
bsp; Backing store
path: /dev/drb=
d/by-res/iscsiha<br> &=
nbsp; Backing store flags: <br> Account
information=
:<br>
iscsiuser<br> &n=
bsp; ACL
information:<br>
10.10.1=
.61<br>
10.10.1.62<br>  =
;
10.10.1.63<br></div><br><div>Gianluca<br><d=
iv><br></div> <br></div></div>
<br>_______________________________________________<br>Users mailing
list<b=
r>Users@ovirt.org<br>http://lists.ovirt.org/mailman/listinfo/users<br></blo=
ckquote><div><br></div></div></body></html>
------=_Part_22914255_1975075169.1410679683778--