Did this not get merged? I'm seeing a "connection refused" in a strace output of iscsiadm -m session -P 3
20599 write(1, "Target: iqn.2010-01.com.myhostname"..., 53) = 53 20599 write(1, "\tCurrent Portal: 172.16.0.115:32"..., 37) = 37 20599 write(1, "\tPersistent Portal: 172.16.0.115"..., 40) = 40 20599 write(1, "\t\t**********\n", 13) = 13 20599 write(1, "\t\tInterface:\n", 13) = 13 20599 write(1, "\t\t**********\n", 13) = 13 20599 write(1, "\t\tIface Name: default\n", 22) = 22 20599 write(1, "\t\tIface Transport: tcp\n", 23) = 23 20599 write(1, "\t\tIface Initiatorname: iqn.2010-"..., 55) = 55 20599 write(1, "\t\tIface IPaddress: 172.16.4.41\n", 31) = 31 20599 write(1, "\t\tIface HWaddress: <empty>\n", 27) = 27 20599 write(1, "\t\tIface Netdev: <empty>\n", 24) = 24 20599 write(1, "\t\tSID: 9\n", 9) = 9 20599 socket(PF_FILE, SOCK_STREAM, 0) = 3 20599 connect(3, {sa_family=AF_FILE, path=@"ISCSIADM_ABSTRACT_NAMESPACE"}, 30) = -1 ECONNREFUSED (Connection refused) 20599 open("/etc/iscsi/iscsid.conf", O_RDONLY) = 4 20599 fstat(4, {st_mode=S_IFREG|0600, st_size=11608, ...}) = 0 20599 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f848fca4000 20599 read(4, "#\n# Open-iSCSI default configura"..., 4096) = 4096 20599 close(4) = 0 After updating from iscsi-initiator-utils-6.2.0.873-2 -> iscsi-initiator-utils-6.2.0.873-10 On Thursday, November 14, 2013 4:53:53 PM UTC-7, Mike Christie wrote: > > From: Yufei Ren <yufe...@stonybrook.edu <javascript:>> > > Got "can not connect to iSCSI daemon (111)!" error during > starting iscsi service by: > $ iscsiadm -m node --loginall=all > > Traced down and found that the sun_path was mis-used in both iscsid > and iscsiadm. > --- > usr/iscsid_req.c | 2 +- > usr/mgmt_ipc.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/usr/iscsid_req.c b/usr/iscsid_req.c > index 715c0aa..0ebde90 100644 > --- a/usr/iscsid_req.c > +++ b/usr/iscsid_req.c > @@ -71,7 +71,7 @@ static int ipc_connect(int *fd, char *unix_sock_name, > int start_iscsid) > > memset(&addr, 0, sizeof(addr)); > addr.sun_family = AF_LOCAL; > - memcpy((char *) &addr.sun_path + 1, unix_sock_name, > + memcpy((char *) addr.sun_path + 1, unix_sock_name, > strlen(unix_sock_name)); > > /* > diff --git a/usr/mgmt_ipc.c b/usr/mgmt_ipc.c > index 87bd346..6a422b9 100644 > --- a/usr/mgmt_ipc.c > +++ b/usr/mgmt_ipc.c > @@ -63,7 +63,7 @@ mgmt_ipc_listen(void) > > memset(&addr, 0, sizeof(addr)); > addr.sun_family = AF_LOCAL; > - memcpy((char *) &addr.sun_path + 1, ISCSIADM_NAMESPACE, > addr_len); > + memcpy((char *) addr.sun_path + 1, ISCSIADM_NAMESPACE, addr_len); > > if ((err = bind(fd, (struct sockaddr *) &addr, addr_len)) < 0 ) { > log_error("Can not bind IPC socket"); > -- > 1.7.1 > > -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscr...@googlegroups.com. To post to this group, send email to open-iscsi@googlegroups.com. Visit this group at http://groups.google.com/group/open-iscsi. For more options, visit https://groups.google.com/groups/opt_out.