On 06/06/2013 18:01, Mike Christie wrote:
I think everything should be there. I thought I worked on iser when
doing the work too. You need the attached kernel patch.
In the other mails I think I said you need a change to the userspace
iser code, but ignore that. In the common iscsi code I did a hack for
all drivers.
Apply the patch and then run
iscsiadm -m discovery -t st -p ip -I iser -d 8
In the userspace discovery.c:iscsi_create_leading_conn() you will want
to check that the code path with this debug log statement is being hit:
log_debug(2, "%s discovery ep connect\n", __FUNCTION__);
and that it is the correct callout for your driver.
Mike,
I had some troubles building the user space part of the initiator from
the latest git, FWYI - for utils/open-isns./configure
--without-securityworks OK, but the default (which is --with-security)
seems to be broken (see below). Also once, I passed that, I failed to
get the usr directory utils to get built as of missing strlcpy/strlcat
-- probably my glibc is too old and doesn't contain these folks... do
you know of the latest initiator is buildable on RHEL 6.x nodes (e.g
with glibc-2.12-1.47.el6.x86_64) ?
auth.o: In function `acl_set_chap_alg_key':
/open-iscsi/usr/auth.c:743: undefined reference to `strlcpy'
/open-iscsi/usr/auth.c:746: undefined reference to `strlcat'
another failure I see there is for the fw_xxx functions, any idea what
should I build to make that work?
discovery.o: In function `discovery_fw':
/open-iscsi/usr/discovery.c:391: undefined reference to `fw_get_targets'
/open-iscsi/usr/discovery.c:419: undefined reference to `fw_free_targets'
Or.
checking openssl/crypto.h usability... yes
checking openssl/crypto.h presence... yes
checking for openssl/crypto.h... yes
checking for EVP_PKEY_new in -lcrypto... yes
checking slp.h usability... no
checking slp.h presence... no
checking for slp.h... no
checking for SLPOpen in -lslp... no
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir
setting
config.status: creating config.h
config.status: config.h is unchanged
[root@vsa3 open-isns]# make
gcc -Wall -fno-strict-aliasing -g -O2 -I. -D_GNU_SOURCE -c -o server.o
server.c
gcc -Wall -fno-strict-aliasing -g -O2 -I. -D_GNU_SOURCE -c -o client.o
client.c
gcc -Wall -fno-strict-aliasing -g -O2 -I. -D_GNU_SOURCE -c -o objects.o
objects.c
gcc -Wall -fno-strict-aliasing -g -O2 -I. -D_GNU_SOURCE -c -o
callback.o callback.c
gcc -Wall -fno-strict-aliasing -g -O2 -I. -D_GNU_SOURCE -c -o timer.o
timer.c
gcc -Wall -fno-strict-aliasing -g -O2 -I. -D_GNU_SOURCE -c -o vendor.o
vendor.c
gcc -Wall -fno-strict-aliasing -g -O2 -I. -D_GNU_SOURCE -c -o db.o db.c
gcc -Wall -fno-strict-aliasing -g -O2 -I. -D_GNU_SOURCE -c -o db-file.o
db-file.c
gcc -Wall -fno-strict-aliasing -g -O2 -I. -D_GNU_SOURCE -c -o
db-policy.o db-policy.c
gcc -Wall -fno-strict-aliasing -g -O2 -I. -D_GNU_SOURCE -c -o
relation.o relation.c
gcc -Wall -fno-strict-aliasing -g -O2 -I. -D_GNU_SOURCE -c -o scope.o
scope.c
gcc -Wall -fno-strict-aliasing -g -O2 -I. -D_GNU_SOURCE -c -o message.o
message.c
gcc -Wall -fno-strict-aliasing -g -O2 -I. -D_GNU_SOURCE -c -o
security.o security.c
security.c: In function ?isns_create_principal?:
security.c:40: warning: dereferencing ?void *? pointer
security.c:40: error: request for member ?type? in something not a
structure or union
security.c:41: error: ?EVP_PKEY_DSA? undeclared (first use in this function)
security.c:41: error: (Each undeclared identifier is reported only once
security.c:41: error: for each function it appears in.)
security.c:42: error: ?EVP_PKEY_RSA? undeclared (first use in this function)
security.c:47: warning: implicit declaration of function ?EVP_PKEY_bits?
security.c: In function ?isns_principal_set_key?:
security.c:61: warning: implicit declaration of function ?EVP_PKEY_free?
make: *** [security.o] Error 1
usr]# make
cc -O2 -g -Wall -Wstrict-prototypes -I../include -I.
-I../utils/open-isns -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE
iscsi_util.o io.o auth.o iscsi_timer.o login.o log.o md5.o sha1.o
iface.o idbm.o sysfs.o host.o session_info.o iscsi_sysfs.o
iscsi_net_util.o iscsid_req.o transport.o iser.o cxgbi.o be2iscsi.o
initiator_common.o iscsi_err.o flashnode.o uip_mgmt_ipc.o netlink.o
initiator.o scsi.o actor.o event_poll.o mgmt_ipc.o kern_err_table.o
strings.o discovery.o iscsid.o session_mgmt.o discoveryd.o -o iscsid
-L../utils/open-isns -lisns
io.o: In function `bind_conn_to_iface':
/mnt/sdb1/ogerlitz/open-iscsi/usr/io.c:237: undefined reference to `strlcpy'
auth.o: In function `acl_set_key_value':
/mnt/sdb1/ogerlitz/open-iscsi/usr/auth.c:547: undefined reference to
`strlcpy'
auth.o: In function `acl_set_user_name':
/mnt/sdb1/ogerlitz/open-iscsi/usr/auth.c:1890: undefined reference to
`strlcpy'
auth.o: In function `acl_send_key_val':
/mnt/sdb1/ogerlitz/open-iscsi/usr/auth.c:1520: undefined reference to
`strlcpy'
auth.o: In function `acl_set_chap_alg_key':
/mnt/sdb1/ogerlitz/open-iscsi/usr/auth.c:743: undefined reference to
`strlcpy'
/mnt/sdb1/ogerlitz/open-iscsi/usr/auth.c:746: undefined reference to
`strlcat'
/mnt/sdb1/ogerlitz/open-iscsi/usr/auth.c:748: undefined reference to
`strlcat'
--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.