Re: iscsid : mgmt_ipc_write_rsp: rsp to fd 5

2009-06-14 Thread Philippe

Hi Mike,

GOOD NEWS, even if I don't be able to change code (I have a problem
with my compilator virtual (vmware) machine, stupid change I do ...) I
have follow you remarks and my intuition ... lol

So I have added (in first pos.) a named root user in the passwd file
(remember Qnap has only an admin user)and attach this root user to
the group 0 (administrators in Qnap) and the result is  (iscsid
run in -f -d 8) :
[/etc] # iscsiadm -m discovery -t sendtargets -p 127.0.0.1
iscsid: poll result 1
iscsid: mgmt_ipc_write_rsp: rsp to fd 5
iscsid: poll result 1
iscsid: mgmt_ipc_write_rsp: rsp to fd 5
iscsid: poll result 1
iscsid: mgmt_ipc_write_rsp: rsp to fd 5
iscsid: poll result 1
iscsid: mgmt_ipc_write_rsp: rsp to fd 5
iscsid: poll result 1
iscsid: mgmt_ipc_write_rsp: rsp to fd 5
iscsid: poll result 1
iscsid: mgmt_ipc_write_rsp: rsp to fd 5
127.0.0.1:3260,1 iqn.2004-04.com.qnap:TS-219:iSCSI.testEXT3.8C3E96
127.0.0.1:3260,1 iqn.2004-04.com.qnap:TS-219:iSCSI.testNTFS.8C3E96
127.0.0.1:3260,1 iqn.2004-04.com.qnap:TS-219:iSCSI.testFAT32.8C3E96

WHAOO  first step is passed even if it's not a real solution
to have two UID 0 (root and admin), so if you have time to identified
WHY you need a root user and not only a user with UID=0 ? (I do
the search when I get back running my virtual machine with my vmware
debian cross compile system).

I have now a new error ... but not sure that it's not due to a mix
between all modules that I will test ... I try to restart with a full
coherent modules (I think I have modules in ver. 2.0-724 (native
compile on another Qnap) and iscsid in 2.0-870 ... sorry for that mix,
I try lot of tests .

For information the error when I try to log to a target 

[/etc] # iscsiadm -m node -T iqn.
2004-04.com.qnap:TS-219:iSCSI.testEXT3.8C3E96 -p 127.0.0.1:3260 -l
Logging in to [iface: default, target: iqn.
2004-04.com.qnap:TS-219:iSCSI.testEXT3.8C3E96, portal: 127.0.0.1,3260]
iscsid: poll result 1
iscsid: in read_transports
iscsid: Adding new transport tcp
iscsid: sysfs_attr_get_value: open '/class/iscsi_transport/
tcp'/'handle'

iscsid: sysfs_attr_get_value: new uncached attribute '/sys/class/
iscsi_transport/tcp/handle'

iscsid: sysfs_attr_get_value: add to cache '/sys/class/iscsi_transport/
tcp/handle'

iscsid: sysfs_attr_get_value: cache '/sys/class/iscsi_transport/tcp/
handle' with attribute value '3205089176'

iscsid: sysfs_attr_get_value: open '/class/iscsi_transport/tcp'/'caps'

iscsid: sysfs_attr_get_value: new uncached attribute '/sys/class/
iscsi_transport/tcp/caps'

iscsid: sysfs_attr_get_value: add to cache '/sys/class/iscsi_transport/
tcp/caps'

iscsid: sysfs_attr_get_value: cache '/sys/class/iscsi_transport/tcp/
caps' with attribute value '0x39'

iscsid: Matched transport tcp

iscsid: Allocted session 0x413f0
iscsid: no authentication configured...
iscsid: resolved 127.0.0.1 to 127.0.0.1
iscsid: get conn context 0x48838
iscsid: set TCP recv window size to 524288, actually got 262142
iscsid: set TCP send window size to 524288, actually got 262142
iscsid: connecting to 127.0.0.1:3260
iscsid: sched conn context 0x48838 event 2, tmo 0
iscsid: thread 0x48838 schedule: delay 0 state 3
iscsid: Setting login timer 0x467a8 timeout 15
iscsid: thread 0x467a8 schedule: delay 60 state 3
iscsid: thread 000467a8 wait some more
iscsid: exec thread 00048838 callback
iscsid: put conn context 0x48838
iscsid: connected local port 36504 to 127.0.0.1:3260
iscsid: in kcreate_session
iscsid: in __kipc_call
iscsid: in kwritev
iscsiadm: got read error (0/0), daemon died?
iscsiadm: Could not login to [iface: default, target: iqn.
2004-04.com.qnap:TS-219:iSCSI.testEXT3.8C3E96, portal:
127.0.0.1,3260]:
iscsiadm: initiator reported error (18 - could not communicate to
iscsid)
[/etc] # ps -eaf | grep iscsid
17480 root548 S   grep iscsid
[/etc] #

Thanks again for your effort ... I also continue and try to clarify
all points.
best regards.

Philippe.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: iscsid : mgmt_ipc_write_rsp: rsp to fd 5

2009-06-13 Thread Philippe

Hi Mike,

On 13 juin, 05:07, Mike Christie micha...@cs.wisc.edu wrote:
 I am really really sorry about this. I am really swamped at work, so I
 have been avoiding lots of problems on the list. Your problem is a
 little more difficult since I have no way to replicate it too.

Don't be worry ... I understand that I am not on a standard linux
box, and have only a partial visibility of source provided as is by
Qnap and at all, I am oblige to use crosscompilation ... so it's clear
that it's not a priority at all. I just continue to put some message
in case of somebody have a idea for way to search.


 iscsid does not directly read /etc/passwd. We are probably calling some
 lib function which is doing it. I think it might be the getpwuid call in
 mgmt_ipc.c:mgmt_peeruser(). If you are building and are ok with C then
 you might want to checkout if SO_PEERCRED is defined or if SCM_CREDS is?

 Also is this code compiled statically? There is a getpwuid() defined in
 static.c as a hack when compiling statically.

Ok, thanks I search this way and sending back result of search and I
hope new test.

Philippe.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: iscsid : mgmt_ipc_write_rsp: rsp to fd 5

2009-06-12 Thread Philippe

Hi,

Even if I don't receive more help ... I try to understand my prob.

I have remarked that just before closing the pipe cnx with
iscsidadm ... iscsid read the /etc/passwd file ??

My question is : what iscsid search in this file ... if it's linked to
root, it's possible a problem because Qnap team create an admin user
group administrators in place of root:root   and I clearly don't
know if it's possible to change it ...

Can you explain me why iscsid open /etc/passwd in case of ?.

Thanks for help.

Philippe.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: iscsid : mgmt_ipc_write_rsp: rsp to fd 5

2009-06-01 Thread Ulrich Windl

On 29 May 2009 at 3:01, Philippe wrote:

 
 NO news ...
 Nobody can help me ... I want idea to search or any method to solve my
 problem.

Could you try some standard distribution on the client side?

 
 Thanks
 Philippe.
 
 On 19 mai, 16:44, Philippe father.ma...@gmail.com wrote:
  UP!
  Philippe
 
  On 13 mai, 16:21, Philippe father.ma...@gmail.com wrote:
  



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: iscsid : mgmt_ipc_write_rsp: rsp to fd 5

2009-05-13 Thread Philippe



 When you run this and do not kill iscsid, does iscsiadm just hang until
 you kill iscsid?


No iscsiadm hang without error ... only the 2 mess. output
iscsiadm: ip 192.168.1.79, port 3260, tgpt -1
iscsiadm: Max file limits 1024 1024

then iscsid write output :
iscsid: poll result 1
iscsid: mgmt_ipc_write_rsp: rsp to fd 5

I can enter new same or different iscsiadm command with the same
result.
I killed iscsid to stop the strace write that iscsid continue to poll
strace output.
poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=0, events=0}],

without strace iscsid continue to run ...
herefater a simple trace (debug) without kill of scsid.
[~] # iscsid -f -d 8 
iscsid: sysfs_init: sysfs_path='/sys'

16853
iscsid: sysfs_attr_get_value: open '/module/
scsi_transport_iscsi'/'version'

iscsid: sysfs_attr_get_value: new uncached attribute '/sys/module/
scsi_transport_iscsi/version'

iscsid: sysfs_attr_get_value: add to cache '/sys/module/
scsi_transport_iscsi/version'

iscsid: sysfs_attr_get_value: cache '/sys/module/scsi_transport_iscsi/
version' with attribute value '2.0-870'

iscsid: transport class version 2.0-870. iscsid version 2.0-870
iscsid: in ctldev_open
iscsid: created NETLINK_ISCSI socket...
iscsid: InitiatorName==iqn.2009-03.noos.fr:Nasaphil
iscsid: InitiatorName=iqn.2009-03.noos.fr:Nasaphil
iscsid: InitiatorAlias=NAS219aPhil
iscsid: in ctldev_close
iscsid: Max file limits 1024 1024

[~] # iscsid: reaped pid 16854, reap_count now 0
iscsiadm -d 8 -m discovery -t sendtargets -p 192.168.1.79
iscsiadm: ip 192.168.1.79, port 3260, tgpt -1
iscsiadm: Max file limits 1024 1024

iscsid: poll result 1
iscsid: mgmt_ipc_write_rsp: rsp to fd 5
[~] # ps -eaf | grep iscsid
16853 admin  2388 S  iscsid -f -d 8
17684 admin   548 R   grep iscsid
[~] #

 Are you starting iscsiadm and iscsid by hand or is a script that
 launches them at about the same time?

I start iscsid by hand in console mode and foreground for iscsid
(without -f same result).

FYI : One other things is I run iscsi target on the same system ...
[~] # ps | grep ie
 1582 admin  1732 S   /sbin/ietd --port=3260
[~] # /sbin/ietd --v
iscsid version 0.4.17


Philippe.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: iscsid : mgmt_ipc_write_rsp: rsp to fd 5

2009-05-11 Thread Philippe

Hi,

I have apply the patch to discovery.c ... success
recompile under usr iscsid and iscsiadm
and do a strace of iscsiadm and iscsid here after

ISCSIADM STRACE :

 # strace iscsiadm -d 8 -m discovery  -t sendtargets -p 192.168.1.79
execve(/usr/sbin/iscsiadm, [iscsiadm, -d, 8, -m,
discovery, -t, sendtargets, -p, 192.168.1.79], [/* 26 vars
*/]) = 0
brk(0)  = 0x3e000
uname({sys=Linux, node=NAS219aPhil, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001d000
access(/etc/ld.so.preload, R_OK)  = -1 ENOENT (No such file or
directory)
open(/etc/ld.so.cache, O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=13735, ...}) = 0
mmap2(NULL, 13735, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001e000
close(3)= 0
open(/lib/libc.so.6, O_RDONLY)= 3
read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0`J
\1\0004\0\0\0..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1243580, ...}) = 0
mmap2(NULL, 1257892, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x40026000
mprotect(0x4014d000, 28672, PROT_NONE)  = 0
mmap2(0x40154000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_DENYWRITE, 3, 0x126) = 0x40154000
mmap2(0x40157000, 8612, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0x40157000
close(3)= 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40022000
syscall_983045(0x400224a0, 0x400256ec, 0x40022b78, 0x40025050, 0x40,
0x40025000, 0, 0xf0005, 0x40025730, 0x1, 0, 0xbee5850c, 0, 0xbee584f0,
0x88, 0x4000221c, 0x2010, 0x400224a0, 0, 0, 0xdb1c, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0) = 0
mprotect(0x40154000, 4096, PROT_READ)   = 0
munmap(0x4001e000, 13735)   = 0
rt_sigaction(SIGINT, {0x241c8, [], 0x400 /* SA_??? */}, {SIG_DFL},
8) = 0
umask(0177) = 022
write(2, iscsiadm: , 10iscsiadm: )  = 10
write(2, ip 192.168.1.79, port 3260, tgpt..., 35ip 192.168.1.79,
port 3260, tgpt -1) = 35
write(2, \n, 1
)   = 1
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
write(2, iscsiadm: , 10iscsiadm: )  = 10
write(2, Max file limits 1024 1024\n, 26Max file limits 1024 1024
) = 26
write(2, \n, 1
)   = 1
setrlimit(RLIMIT_NOFILE, {rlim_cur=16*1024, rlim_max=16*1024}) = 0
access(/etc/iscsi/, F_OK) = 0
mmap2(NULL, 462848, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x4015a000
access(/var/lock/iscsi, F_OK) = 0
open(/var/lock/iscsi/lock, O_RDWR|O_CREAT, 0666) = 3
close(3)= 0
link(/var/lock/iscsi/lock, /var/lock/iscsi/lock.write) = 0
access(/etc/iscsi/ifaces, F_OK)   = 0
unlink(/var/lock/iscsi/lock.write)= 0
brk(0)  = 0x3e000
brk(0x5f000)= 0x5f000
open(/sys/class/iscsi_host, O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
getdents(3, /* 2 entries */, 4096)  = 32
getdents(3, /* 0 entries */, 4096)  = 0
close(3)= 0
SYS_281(0x1, 0x1, 0, 0xe1e4, 0xbee5242c) = 3
SYS_283(0x3, 0xbee52382, 0x6e, 0x45434150, 0x1) = 0
write(3, \n
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0...,
5244) = -1 EPIPE (Broken pipe)
--- SIGPIPE (Broken pipe) @ 0 (0) ---
+++ killed by SIGPIPE +++


NOW ISCSID SRACE :

[~] # strace iscsid -f -d 8
execve(/usr/sbin/iscsid, [iscsid, -f, -d, 8], [/* 25 vars
*/]) = 0
brk(0)  = 0x37000
uname({sys=Linux, node=NAS219aPhil, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001d000
access(/etc/ld.so.preload, R_OK)  = -1 ENOENT (No such file or
directory)
open(/etc/ld.so.cache, O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=13735, ...}) = 0
mmap2(NULL, 13735, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001e000
close(3)= 0
open(/lib/libc.so.6, O_RDONLY)= 3
read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0`J
\1\0004\0\0\0..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1243580, ...}) = 0
mmap2(NULL, 1257892, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x40026000
mprotect(0x4014d000, 28672, PROT_NONE)  = 0
mmap2(0x40154000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_DENYWRITE, 3, 0x126) = 0x40154000
mmap2(0x40157000, 8612, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0x40157000
close(3)= 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40022000
syscall_983045(0x400224a0, 0x400256ec, 0x40022b78, 0x40025050, 0x40,
0x40025000, 0, 0xf0005, 0x40025730, 0x1, 0, 0xbe94556c, 0, 0xbe945550,
0x88, 0x4000221c, 0x2010, 0x400224a0, 0, 0, 0xdb1c, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0) = 0

Re: iscsid : mgmt_ipc_write_rsp: rsp to fd 5

2009-05-09 Thread Philippe

Hi,

Thanks,
I will try this week-end and return result .
Philippe.

On 8 mai, 18:19, Mike Christie micha...@cs.wisc.edu wrote:
 Philippe wrote:
  NO news 
  Nobody can try to help me . ?

 I am not sure. It looks like it is failing when iscsiadm wants to get
 the initiator name from iscsid. We had another bug like that the other
 week. It was solved by the user just doing a clean build

 make clean
 make

 Could you also try this patch for iscsiadm. It is built over
 open-iscsi-2.0-870.3. It will not fix the problem. It will just verify
 where it is failing and print out some more info.

  iname-debug.patch
  1 000AfficherTélécharger
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: iscsid : mgmt_ipc_write_rsp: rsp to fd 5

2009-05-08 Thread Philippe

NO news 
Nobody can try to help me . ?

Philippe.

On 29 avr, 17:45, Philippe father.ma...@gmail.com wrote:
 Hi,

 I just think ... that a strace of iscsid -f is also a good
 information ... so hereafter the iscsid strace during the iscsadm
 command 

 SORRY it's large  stopped iscsid by CRTLC
 
 [/proc/27706] # strace iscsid -f -d 8
 execve(/usr/sbin/iscsid, [iscsid, -f, -d, 8], [/* 26 vars
 */]) = 0
 brk(0)                                  = 0x37000
 uname({sys=Linux, node=NAS219aPhil, ...}) = 0
 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
 0) = 0x4001d000
 access(/etc/ld.so.preload, R_OK)      = -1 ENOENT (No such file or
 directory)
 open(/etc/ld.so.cache, O_RDONLY)      = 3
 fstat64(3, {st_mode=S_IFREG|0644, st_size=17045, ...}) = 0
 mmap2(NULL, 17045, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001e000
 close(3)                                = 0
 open(/lib/libc.so.6, O_RDONLY)        = 3
 read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0`J
 \1\0004\0\0\0..., 512) = 512
 fstat64(3, {st_mode=S_IFREG|0755, st_size=1243580, ...}) = 0
 mmap2(NULL, 1257892, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
 3, 0) = 0x40026000
 mprotect(0x4014d000, 28672, PROT_NONE)  = 0
 mmap2(0x40154000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
 MAP_DENYWRITE, 3, 0x126) = 0x40154000
 mmap2(0x40157000, 8612, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
 MAP_ANONYMOUS, -1, 0) = 0x40157000
 close(3)                                = 0
 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
 0) = 0x40023000
 syscall_983045(0x400234a0, 0x400256ec, 0x40023b78, 0x40025050, 0x40,
 0x40025000, 0, 0xf0005, 0x40025730, 0x1, 0, 0xbedb955c, 0, 0xbedb9540,
 0x88, 0x4000221c, 0x2010, 0x400234a0, 0, 0, 0xdb1c, 0, 0, 0, 0, 0,
 0, 0, 0, 0, 0, 0) = 0
 mprotect(0x40154000, 4096, PROT_READ)   = 0
 munmap(0x4001e000, 17045)               = 0
 rt_sigaction(SIGINT, {0x2551c, [], 0x400 /* SA_??? */}, {SIG_DFL},
 8) = 0
 rt_sigaction(SIGPIPE, {0x2551c, [], 0x400 /* SA_??? */},
 {SIG_DFL}, 8) = 0
 rt_sigaction(SIGTERM, {0x2551c, [], 0x400 /* SA_??? */},
 {SIG_DFL}, 8) = 0
 write(2, iscsid: , 8iscsid: )                 = 8
 write(2, sysfs_init: sysfs_path=\'/sys\'\n, 30sysfs_init:
 sysfs_path='/sys'
 ) = 30
 write(2, \n, 1
 )                       = 1
 access(/etc/iscsi/, F_OK)             = 0
 mmap2(NULL, 462848, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
 -1, 0) = 0x4015a000
 write(2, iscsid: , 8iscsid: )                 = 8
 write(2, sysfs_attr_get_value: open \'/mod...,
 68sysfs_attr_get_value: open '/module/scsi_transport_iscsi'/'version'
 ) = 68
 write(2, \n, 1
 )                       = 1
 write(2, iscsid: , 8iscsid: )                 = 8
 write(2, sysfs_attr_get_value: new uncach...,
 88sysfs_attr_get_value: new uncached attribute '/sys/module/
 scsi_transport_iscsi/version'
 ) = 88
 write(2, \n, 1
 )                       = 1
 brk(0)                                  = 0x37000
 brk(0x58000)                            = 0x58000
 write(2, iscsid: , 8iscsid: )                 = 8
 write(2, sysfs_attr_get_value: add to cac...,
 78sysfs_attr_get_value: add to cache '/sys/module/scsi_transport_iscsi/
 version'
 ) = 78
 write(2, \n, 1
 )                       = 1
 lstat64(/sys/module/scsi_transport_iscsi/version, {st_mode=S_IFREG|
 0444, st_size=4096, ...}) = 0
 open(/sys/module/scsi_transport_iscsi/version, O_RDONLY) = 3
 read(3, 2.0-870\n, 256)               = 8
 close(3)                                = 0
 write(2, iscsid: , 8iscsid: )                 = 8
 write(2, sysfs_attr_get_value: cache \'/sy...,
 102sysfs_attr_get_value: cache '/sys/module/scsi_transport_iscsi/
 version' with attribute value '2.0-870'
 ) = 102
 write(2, \n, 1
 )                       = 1
 write(2, iscsid: , 8iscsid: )                 = 8
 write(2, transport class version 2.0-870, 55transport class
 version 2.0-870. iscsid version 2.0-870) = 55
 write(2, \n, 1
 )                       = 1
 umask(0177)                             = 022
 SYS_281(0x1, 0x1, 0, 0x4, 0x36f24)      = 3
 SYS_282(0x3, 0xbedb95ca, 0x6e, 0x45434150, 0xbedb95ca) = 0
 SYS_284(0x3, 0x20, 0x6e, 0x45434150, 0) = 0
 write(2, iscsid: , 8iscsid: )                 = 8
 write(2, in ctldev_open, 14in ctldev_open)          = 14
 write(2, \n, 1
 )                       = 1
 SYS_281(0x10, 0x3, 0x8, 0x3d81c, 0x3681c) = 4
 getpid()                                = 32081
 SYS_282(0x4, 0x36848, 0xc, 0x1, 0x3681c) = 0
 write(2, iscsid: , 8iscsid: )                 = 8
 write(2, created NETLINK_ISCSI socket..., 31created NETLINK_ISCSI
 socket...) = 31
 write(2, \n, 1
 )                       = 1
 open(/etc/iscsi/initiatorname.iscsi, O_RDONLY) = 5
 fstat64(5, {st_mode=S_IFREG|0755, st_size=339, ...}) = 0
 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
 0) = 0x4001e000
 read(5, ## DO NOT EDIT OR REMOVE THIS FI..., 1024) = 339
 read(5, , 1024)                       = 0
 close(5)            

Re: iscsid : mgmt_ipc_write_rsp: rsp to fd 5

2009-05-08 Thread Mike Christie
Philippe wrote:
 NO news 
 Nobody can try to help me . ?
 

I am not sure. It looks like it is failing when iscsiadm wants to get 
the initiator name from iscsid. We had another bug like that the other 
week. It was solved by the user just doing a clean build

make clean
make


Could you also try this patch for iscsiadm. It is built over 
open-iscsi-2.0-870.3. It will not fix the problem. It will just verify 
where it is failing and print out some more info.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---

--- open-iscsi-2.0-870.3/usr/discovery.c	2009-02-22 15:32:46.0 -0600
+++ open-iscsi-2.0-870.3.work/usr/discovery.c	2009-05-08 11:17:59.0 -0500
@@ -521,16 +521,22 @@ static int request_initiator_name(void)
 	memset(req, 0, sizeof(req));
 	req.command = MGMT_IPC_CONFIG_INAME;
 
+log_error(requesting iname from iscsid\n);
 	rc = do_iscsid(req, rsp);
-	if (rc)
+	if (rc) {
+		log_error(failed %d\n, rc);
 		return EIO;
+	}
 
 	if (rsp.u.config.var[0] != '\0')
 		strcpy(initiator_name, rsp.u.config.var);
 
+log_error(got iname %s\n, initiator_name);
+
 	memset(req, 0, sizeof(req));
 	req.command = MGMT_IPC_CONFIG_IALIAS;
 
+log_error(get alias\n);
 	rc = do_iscsid(req, rsp);
 	if (rc)
 		/* alias is optional so return ok */


Re: iscsid : mgmt_ipc_write_rsp: rsp to fd 5

2009-04-29 Thread Philippe

hi, . et voila
[/share/Public] # iscsid -f -d 8 
iscsid: sysfs_init: sysfs_path='/sys'

iscsid: sysfs_attr_get_value: open '/module/
scsi_transport_iscsi'/'version'

iscsid: sysfs_attr_get_value: new uncached attribute '/sys/module/
scsi_transport_iscsi/version'

iscsid: sysfs_attr_get_value: add to cache '/sys/module/
scsi_transport_iscsi/version'

iscsid: sysfs_attr_get_value: cache '/sys/module/scsi_transport_iscsi/
version' with attribute value '2.0-870'

iscsid: transport class version 2.0-870. iscsid version 2.0-870
iscsid: in ctldev_open
iscsid: created NETLINK_ISCSI socket...
iscsid: InitiatorName==iqn.2009-03.fr.noos:Nasaphil
iscsid: InitiatorName=iqn.2009-03.fr.noos:Nasaphil
iscsid: InitiatorAlias=NAS219aPhil
iscsid: in ctldev_close
iscsid: Max file limits 1024 1024

21983
[/share/Public] # iscsid: reaped pid 21984, reap_count now 0
[/share/Public] # strace iscsiadm -m discovery -t sendtargets -p
192.168.1.79:3260
execve(/usr/sbin/iscsiadm, [iscsiadm, -m, discovery, -t,
sendtargets, -p, 192.168.1.79:3260], [/* 26 vars */]) = 0
brk(0)  = 0x3e000
uname({sys=Linux, node=NAS219aPhil, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001d000
access(/etc/ld.so.preload, R_OK)  = -1 ENOENT (No such file or
directory)
open(/etc/ld.so.cache, O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=17045, ...}) = 0
mmap2(NULL, 17045, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001e000
close(3)= 0
open(/lib/libc.so.6, O_RDONLY)= 3
read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0`J
\1\0004\0\0\0..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1243580, ...}) = 0
mmap2(NULL, 1257892, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0x40026000
mprotect(0x4014d000, 28672, PROT_NONE)  = 0
mmap2(0x40154000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_DENYWRITE, 3, 0x126) = 0x40154000
mmap2(0x40157000, 8612, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0x40157000
close(3)= 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40023000
syscall_983045(0x400234a0, 0x400256ec, 0x40023b78, 0x40025050, 0x40,
0x40025000, 0, 0xf0005, 0x40025730, 0x1, 0, 0xbeede50c, 0, 0xbeede4f0,
0x88, 0x4000221c, 0x2010, 0x400234a0, 0, 0, 0xdb1c, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0) = 0
mprotect(0x40154000, 4096, PROT_READ)   = 0
munmap(0x4001e000, 17045)   = 0
rt_sigaction(SIGINT, {0x2418c, [], 0x400 /* SA_??? */}, {SIG_DFL},
8) = 0
umask(0177) = 022
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
setrlimit(RLIMIT_NOFILE, {rlim_cur=16*1024, rlim_max=16*1024}) = 0
access(/etc/iscsi/, F_OK) = 0
mmap2(NULL, 462848, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x4015a000
access(/var/lock/iscsi, F_OK) = 0
open(/var/lock/iscsi/lock, O_RDWR|O_CREAT, 0666) = 3
close(3)= 0
link(/var/lock/iscsi/lock, /var/lock/iscsi/lock.write) = 0
access(/etc/iscsi/ifaces, F_OK)   = 0
unlink(/var/lock/iscsi/lock.write)= 0
brk(0)  = 0x3e000
brk(0x5f000)= 0x5f000
open(/sys/class/iscsi_host, O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
getdents(3, /* 2 entries */, 4096)  = 32
getdents(3, /* 0 entries */, 4096)  = 0
close(3)= 0
SYS_281(0x1, 0x1, 0, 0xe1e4, 0xbeed842c) = 3
SYS_283(0x3, 0xbeed8382, 0x6e, 0x45434150, 0x1iscsid: poll result 1
iscsid: mgmt_ipc_write_rsp: rsp to fd 5
) = 0
write(3, \n
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0...,
5244) = -1 EPIPE (Broken pipe)
--- SIGPIPE (Broken pipe) @ 0 (0) ---
+++ killed by SIGPIPE +++
[/share/Public] #

Philippe.

On 28 avr, 16:43, Mike Christie micha...@cs.wisc.edu wrote:
 Philippe wrote:
  Hi,
  [~] #iscsiadm -m discovery -d 8 -t sendtargets -p 192.168.1.79:3260 -d
  8
  iscsiadm: ip 192.168.1.79, port 3260, tgpt -1
  iscsiadm: Max file limits 1024 1024

  iscsid: poll result 1
  iscsid: mgmt_ipc_write_rsp: rsp to fd 5
  [~] #

  No change 

 What version of open-iscsi was this? Could you run it in strace:

 strace iscsiadm -m discovery -t sendtargets -p 192.168.1.79:3260
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: iscsid : mgmt_ipc_write_rsp: rsp to fd 5

2009-04-28 Thread Philippe

Hi,
[~] #iscsiadm -m discovery -d 8 -t sendtargets -p 192.168.1.79:3260 -d
8
iscsiadm: ip 192.168.1.79, port 3260, tgpt -1
iscsiadm: Max file limits 1024 1024

iscsid: poll result 1
iscsid: mgmt_ipc_write_rsp: rsp to fd 5
[~] #

No change 

Philippe.
On 27 avr, 17:53, Mike Christie micha...@cs.wisc.edu wrote:
  [~] # iscsiadm -m discovery -d 8 -t sendtargets -p 192.168.1.79:3260
  iscsiadm: ip 192.168.1.79, port 3260, tgpt -1
  iscsiadm: Max file limits 1024 1024

  iscsid: poll result 1
  iscsid: mgmt_ipc_write_rsp: rsp to fd 5

 Could you do

 iscsiadm -m discovery -d 8 -t sendtargets -p 192.168.1.79:3260 -d 8

 and send all that output?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: iscsid : mgmt_ipc_write_rsp: rsp to fd 5

2009-04-28 Thread Mike Christie

Philippe wrote:
 Hi,
 [~] #iscsiadm -m discovery -d 8 -t sendtargets -p 192.168.1.79:3260 -d
 8
 iscsiadm: ip 192.168.1.79, port 3260, tgpt -1
 iscsiadm: Max file limits 1024 1024
 
 iscsid: poll result 1
 iscsid: mgmt_ipc_write_rsp: rsp to fd 5
 [~] #
 
 No change 
 

What version of open-iscsi was this? Could you run it in strace:

strace iscsiadm -m discovery -t sendtargets -p 192.168.1.79:3260

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---



Re: iscsid : mgmt_ipc_write_rsp: rsp to fd 5

2009-04-27 Thread Mike Christie


 [~] # iscsiadm -m discovery -d 8 -t sendtargets -p 192.168.1.79:3260
 iscsiadm: ip 192.168.1.79, port 3260, tgpt -1
 iscsiadm: Max file limits 1024 1024
 
 iscsid: poll result 1
 iscsid: mgmt_ipc_write_rsp: rsp to fd 5
 

Could you do

iscsiadm -m discovery -d 8 -t sendtargets -p 192.168.1.79:3260 -d 8

and send all that output?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
open-iscsi group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to 
open-iscsi+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~--~~~~--~~--~--~---