[stgt] Permissions error on tgtadm connection

jake at epperson.homelinux.net jake at epperson.homelinux.net
Tue Feb 8 00:32:05 CET 2011


This is a vanilla install from Centos repo on Centos 5.5.  Howto articles
indicate that it should pretty much work "out of the box", but I can't
ever get a successful result from tgtadm.  SELinux and iptables are turned
off.

tgtadm --lld iscsi --op show --mode target

persistently returns “tgtadm: can’t get the response, Connection reset by
peer”

Stracing the daemon thus

strace tgtd -d10 -f --iscsi portal=10.177.127.240:3260

and issuing that command results in:

epoll_wait(4, {{EPOLLIN, {u32=431875424, u64=431875424}}}, 1024, 2000) = 1

accept(6, {sa_family=AF_FILE, path=@""}, [11023936470388834306]) = 7

getsockopt(7, SOL_SOCKET, SO_PEERCRED, "\270.\0\0\0\0\0\0\4\0\0\0", [12]) = 0

write(2, "tgtd: ", 6tgtd: )                   = 6

write(2, "mgmt_event_handler(514) permissi"..., 41mgmt_event_handler(514)
permission error

) = 41

close(7)                                = 0

epoll_wait(4, {}, 1024, 2000)           = 0

epoll_wait(4, {}, 1024, 2000)           = 0

epoll_wait(4, {}, 1024, 2000)           = 0

epoll_wait(4, {}, 1024, 2000)           = 0

epoll_wait(4, {}, 1024, 2000)           = 0

**************************************************
Telnet to port 3260 also returns "Connection reset by peer".  "lsof -i"
shows tgtd listening on 3260.  Any help appreciated, but if this is not
appropriate to bring up to this list, just say so once and I'll go away
quietly.  Thanks.



--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list