ebuild for new open-iscsi initiator release
Created attachment 91354 [details] open-iscsi-1.1.619.ebuild
Created attachment 91355 [details] iscsid init.d script
Created attachment 91357 [details] iscsi-login init.d script Add new script to automatic login on ISCSI target
Created attachment 91358 [details] initiatorname.iscsi
You may want to update the homepage; the authors don't seem to be updating www.open-iscsi.org (see http://tinyurl.com/jengt for an example). The place that seems to be updated is: http://kernel.org/pub/linux/kernel/people/mnc/open-iscsi/
> You may want to update the homepage; the authors don't > seem to be updating www.open-iscsi.org (see > http://tinyurl.com/jengt for an example). > > The place that seems to be updated is: > > http://kernel.org/pub/linux/kernel/people/mnc/open-iscsi/ > Yep. I'm add new ebuild with change.
Created attachment 92372 [details] open-iscsi-1.1.619.ebuild change homepage
Created attachment 92405 [details] iscsi-login init.d script Slightly updated iscsi-login script that uses "need" instead of "use" for depedency on iscsid.
I wanted to confirm that all the scripts worked for me, and the underlying open-scsi code worked fine. I added a new iscsi-login init.d script (I couldn't modify the existing one; I don't have the perms in bugzilla). the iscsi-login script "use"s the iscsid service; it should "need" it instead. That way if iscsid doesn't start iscsi-login won't be run, and if iscsid is restarted then iscsi-login will be rerun.
> the iscsi-login script "use"s the iscsid service; it should > "need" it instead. That way if iscsid doesn't start iscsi-login > won't be run, and if iscsid is restarted then iscsi-login will > be rerun. > Yep. I'm not check this %)
Created attachment 93755 [details] open-iscsi-1.1.648.ebuild This is the 1.1.648 version and it worked for me with Kernel ver 2.6.17-r4. Hope it helps.
I'm bump ebuild from open-iscsi-1.1.619 to open-iscsi-1.1.654. It's work fine with kernel 2.6.18
Time marches on, even though this bug doesn't. I just installed the latest open-iscsi release (r654) by renaming the attached open-iscsi-1.1.648.ebuild file to open-iscsi-1.1.654.ebuild. It works fine. Can we get one of these many versions pushed to the portage tree so we can start the 30 day "stability test" clock on the ebuild? Thanks.
guys, I'd love to, but the new releases don't WORK in my environment, and until they do, I'm not unleashing them on you. I am however involved with upstream on working out why, so stay tuned. The init scripts are going to need some work for the migration away from binary databases anyway.
(In reply to comment #14) > guys, I'd love to, but the new releases don't WORK in my environment, and >until they do, I'm not unleashing them on you. Hmmm can you tell about this enviroment ? May you add new build as unstable ? > The init scripts are going to need some work for the migration away from binary > databases anyway. > Hmmm it's realy need ?
I've attached a working ebuild for 2.0-711 of open-iscsi (based on the previous 1.1-648 ebuild) some notes from the 2.0 release: The "2" reflects a major change in the tool syntax and that the initiatorname, iscsid.conf and iscsi node info has moved to /etc/iscsi. And it reflects that this version is much more stable than previous releases. open-iscsi-2.0-707 supports 2.6.16 to 2.6.18. Please use the kernel modules in the tarball instead of the ones in the mainline kernel. And make sure the tools are updated. Thanks to everyone that has sent in patches, comments and tested the code. And a special thanks to Albert who tracked down a boat load of bugs in his spare time. That work is the reason for the stability improvement in this release. Please note that this version does not support 32 bit userspace with 64 bit kernels. You must compile the tools as 64 bits if using a 64 bit kernel. This will hopefully be fixed soon.
Created attachment 99942 [details] new 2.0-711 ebuild one thing that i just noticed, the directory /etc/iscsi/ needs to be created for the new version to work
Anatoly: sorry, this bug slipped away from me. My environment is a 64-bit kernel with a pure 32-bit userland, which is where things are broken at the moment in open-iscsi.
Created attachment 99980 [details] updated iscsi-login for 2.0.711 The arguments changed to iscsiadm. This is an updated iscsi-login script.
Created attachment 99981 [details] Updated ebuild for 2.0.711 I updated the ebuild to put the install files in the correct spot. The 2.0 iscsi daemons expect the files to be in /etc/iscsi, not in /etc.
Created attachment 99983 [details] iscsi-login to match the new 2.0 iscsiadm arguments I should have tested it better. Here's a new iscsilogin that works better.
I've tested the open-iscsi-2.0.711.ebuild (and uploaded my patched version into this bug). I can confirm that it works in my configuration under at least a light load (I'll be doing more extensive testing over the next few days). My environment is a pure 64 bit 2 and 4 cpu AMD My base kernel is 2.6.17-gentoo-r8.
I've downloaded the attached init.d scripts and I've had to modify the iscsid script on my system so that the CONFIG_FILE and INITIATORNAME settings look in /etc/iscsi/ I've also noticed that this package also uses the same directory as the sys-block/iscsi-initiator-core-tools i.e. /etc/iscsi. Not sure if this would cause a problem if both packages are installed for some reason.
I don't suppose there's been any progress on getting a recent version of open-iscsi into portage?
Created attachment 107990 [details] open-iscsi-2.0.754.ebuild There's a new ebuild of open-iscsi; the repository path changed so I'm uploading a new version of the ebuild. This version worked fine for me (2.6.18-r6 and 2-6.18-xen, x86_64 dual and quad processor).
This is in the "note to self" category, but the current (754) verision of iscsiadm supports autologin. I plan to modify our scripts to match the distribution functionality in the next few days if someone doesn't beat me to it...
(In reply to comment #26) > This is in the "note to self" category, but the current (754) verision of > iscsiadm supports autologin. I plan to modify our scripts to match the > distribution functionality in the next few days if someone doesn't beat me to > it... > Okey. Don't forget add new ebuild. :)
Created attachment 112830 [details] files/iscsid-init.d This is fixed for 2.0.754 version of /etc/init.d/iscsid script (all configs are in /etc/iscsi)
Created attachment 113871 [details] open-iscsi-2.0.754.ebuild I have some changes to the ebuild, taking into account that 2.6.19 already provide the modules for isci, and only need the userspace tool. Maybe we can go in the middle and provide the kernel modules from here, conditionally. Another thing: the script files were unversioned, so the new version could overwrite the old. I did the version, so the init file, under files/ should be copied with the version appended
*push* :)
Created attachment 114117 [details] open-iscsi-2.0.754.ebuild with conditional modules generation
I tested the new ebuild and it works flawlessly - great work Alfredo :) The tests of open-iscsi-2.0.754 where very successfull until now so please push the new version since the old 1.0.514 isn't working with newer kernels. FYI - I'm using it on AMD64/Opteron Servers with bonded gbit connections.
I'm keen to start testing this too :-)
(In reply to comment #33) Works great for me!
please bump. thanks!
Ebuild fails on hardened uclibc kernel 2.6.20-hardened-r2: * Found sources for kernel version: * 2.6.20-hardened-r2 * Checking for suitable kernel configuration options... [ ok ] >>> Unpacking source... >>> Unpacking open-iscsi-2.0-754.tar.gz to /var/tmp/portage/sys-block/open-iscsi-2.0.754/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/sys-block/open-iscsi-2.0.754/work/open-iscsi-2.0-754 ... * Building userspace cc -march=i386 -Os -pipe -fomit-frame-pointer -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o util.o util.c cc -march=i386 -Os -pipe -fomit-frame-pointer -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o io.o io.c cc -march=i386 -Os -pipe -fomit-frame-pointer -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o auth.o auth.c util.c: In function `iscsid_connect': util.c:87: warning: implicit declaration of function `socket' util.c:98: warning: implicit declaration of function `connect' util.c: In function `iscsid_response': util.c:123: warning: implicit declaration of function `recv' cc -march=i386 -Os -pipe -fomit-frame-pointer -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o login.o login.c cc -march=i386 -Os -pipe -fomit-frame-pointer -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o log.o log.c log.c:304: warning: '__dump_char' defined but not used cc -march=i386 -Os -pipe -fomit-frame-pointer -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o md5.o md5.c cc -march=i386 -Os -pipe -fomit-frame-pointer -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o sha1.o sha1.c cc -march=i386 -Os -pipe -fomit-frame-pointer -O2 -g -Wall -Wstrict-prototypes -I../include -DLinux -DNETLINK_ISCSI=8 -D_GNU_SOURCE -c -o iscsi_sysfs.o iscsi_sysfs.c iscsi_sysfs.c: In function `read_transports': iscsi_sysfs.c:98: error: `versionsort' undeclared (first use in this function) iscsi_sysfs.c:98: error: (Each undeclared identifier is reported only once iscsi_sysfs.c:98: error: for each function it appears in.) iscsi_sysfs.c: In function `sysfs_for_each_session': iscsi_sysfs.c:299: error: `versionsort' undeclared (first use in this function) iscsi_sysfs.c: In function `sysfs_for_each_device': iscsi_sysfs.c:539: error: `versionsort' undeclared (first use in this function) make: *** [iscsi_sysfs.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: sys-block/open-iscsi-2.0.754 failed.
I tried the 2.0.854 version too but it uses getifaddrs which is unsupported in uclibc :-(
*** Bug 189076 has been marked as a duplicate of this bug. ***
Created attachment 128241 [details] /usr/local/portage/sys-block/open-iscsi/open-iscsi-2.0.865.11.ebuild this could be placed here and emerge it: /usr/local/portage/sys-block/open-iscsi/open-iscsi-2.0.865.11.ebuild its homepage changed to: http://www.open-iscsi.org/
2.0.865.12 was committed by kingtaco now. The new init.d and iscsi-login are probably still needed (sorry, I don't have an iSCSI setup active at the moment).
*open-iscsi-2.0.865.12 (28 Aug 2007) 28 Aug 2007; Mike Doty <kingtaco@gentoo.org> metadata.xml, +open-iscsi-2.0.865.12.ebuild: version bump FIXED. Anything else, please file new bugs.