Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139865 - sys-block/open-iscsi version bump to 2.0 (current: 2.0-754)
Summary: sys-block/open-iscsi version bump to 2.0 (current: 2.0-754)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Mike Doty (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
: 189076 (view as bug list)
Depends on:
Blocks: 180695
  Show dependency tree
 
Reported: 2006-07-10 05:33 UTC by Anatoly Shipitsin
Modified: 2007-10-12 11:34 UTC (History)
12 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
open-iscsi-1.1.619.ebuild (open-iscsi-1.1.619.ebuild,2.38 KB, text/plain)
2006-07-10 05:34 UTC, Anatoly Shipitsin
Details
iscsid init.d script (iscsid-init.d,2.48 KB, text/plain)
2006-07-10 05:35 UTC, Anatoly Shipitsin
Details
iscsi-login init.d script (iscsi-login-init.d,825 bytes, text/plain)
2006-07-10 05:43 UTC, Anatoly Shipitsin
Details
initiatorname.iscsi (initiatorname.iscsi,1.25 KB, text/plain)
2006-07-10 05:45 UTC, Anatoly Shipitsin
Details
open-iscsi-1.1.619.ebuild (open-iscsi-1.1.619.ebuild,2.41 KB, text/plain)
2006-07-20 21:48 UTC, Anatoly Shipitsin
Details
iscsi-login init.d script (iscsi-login,826 bytes, text/plain)
2006-07-21 07:17 UTC, Neil Katin
Details
open-iscsi-1.1.648.ebuild (open-iscsi-1.1.648.ebuild,2.41 KB, application/octet-stream)
2006-08-08 07:30 UTC, Travis Wu
Details
new 2.0-711 ebuild (open-iscsi-2.0.711.ebuild,2.41 KB, application/octet-stream)
2006-10-18 08:14 UTC, Rob Terhaar
Details
updated iscsi-login for 2.0.711 (iscsi-login,838 bytes, application/octet-stream)
2006-10-18 16:28 UTC, Neil Katin
Details
Updated ebuild for 2.0.711 (open-iscsi-2.0.711.ebuild,2.44 KB, application/octet-stream)
2006-10-18 16:30 UTC, Neil Katin
Details
iscsi-login to match the new 2.0 iscsiadm arguments (iscsi-login,1.00 KB, application/octet-stream)
2006-10-18 16:58 UTC, Neil Katin
Details
open-iscsi-2.0.754.ebuild (open-iscsi-2.0.754.ebuild,2.40 KB, text/plain)
2007-01-24 10:36 UTC, Neil Katin
Details
files/iscsid-init.d (iscsid-init.d,2.49 KB, text/plain)
2007-03-10 16:33 UTC, Sergey Belyashov
Details
open-iscsi-2.0.754.ebuild (open-iscsi-2.0.754.ebuild,1.51 KB, text/plain)
2007-03-20 14:17 UTC, Tupone Alfredo
Details
open-iscsi-2.0.754.ebuild with conditional modules generation (open-iscsi-2.0.754.ebuild,2.31 KB, text/plain)
2007-03-23 11:00 UTC, Tupone Alfredo
Details
/usr/local/portage/sys-block/open-iscsi/open-iscsi-2.0.865.11.ebuild (open-iscsi-2.0.865.11.ebuild,2.47 KB, text/plain)
2007-08-16 09:11 UTC, r01
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anatoly Shipitsin 2006-07-10 05:33:05 UTC
ebuild for new open-iscsi initiator release
Comment 1 Anatoly Shipitsin 2006-07-10 05:34:40 UTC
Created attachment 91354 [details]
open-iscsi-1.1.619.ebuild
Comment 2 Anatoly Shipitsin 2006-07-10 05:35:08 UTC
Created attachment 91355 [details]
iscsid init.d script
Comment 3 Anatoly Shipitsin 2006-07-10 05:43:35 UTC
Created attachment 91357 [details]
iscsi-login init.d script

Add new script to automatic login on ISCSI target
Comment 4 Anatoly Shipitsin 2006-07-10 05:45:52 UTC
Created attachment 91358 [details]
initiatorname.iscsi
Comment 5 Neil Katin 2006-07-20 15:01:48 UTC
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/

Comment 6 Anatoly Shipitsin 2006-07-20 21:47:51 UTC
> 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.
Comment 7 Anatoly Shipitsin 2006-07-20 21:48:52 UTC
Created attachment 92372 [details]
open-iscsi-1.1.619.ebuild

change homepage
Comment 8 Neil Katin 2006-07-21 07:17:52 UTC
Created attachment 92405 [details]
iscsi-login init.d script


Slightly updated iscsi-login script that uses "need" instead
of "use" for depedency on iscsid.
Comment 9 Neil Katin 2006-07-21 07:21:19 UTC
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.
Comment 10 Anatoly Shipitsin 2006-07-21 20:45:26 UTC
> 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 %)
Comment 11 Travis Wu 2006-08-08 07:30:29 UTC
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.
Comment 12 Anatoly Shipitsin 2006-09-26 03:24:44 UTC
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 
Comment 13 Neil Katin 2006-09-27 13:53:29 UTC
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.
Comment 14 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-09-28 13:24:08 UTC
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.
Comment 15 Anatoly Shipitsin 2006-09-28 21:21:58 UTC
(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 ?
Comment 16 Rob Terhaar 2006-10-18 08:09:06 UTC
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. 
Comment 17 Rob Terhaar 2006-10-18 08:14:54 UTC
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
Comment 18 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-10-18 11:41:53 UTC
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.
Comment 19 Neil Katin 2006-10-18 16:28:25 UTC
Created attachment 99980 [details]
updated iscsi-login for 2.0.711


The arguments changed to iscsiadm.  This is an updated iscsi-login script.
Comment 20 Neil Katin 2006-10-18 16:30:08 UTC
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.
Comment 21 Neil Katin 2006-10-18 16:58:01 UTC
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.
Comment 22 Neil Katin 2006-10-18 17:00:34 UTC
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.
Comment 23 Richard Scott 2006-10-26 07:30:22 UTC
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.
Comment 24 Dylan Vanderhoof 2006-12-04 18:52:10 UTC
I don't suppose there's been any progress on getting a recent version of open-iscsi into portage?
Comment 25 Neil Katin 2007-01-24 10:36:04 UTC
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).
Comment 26 Neil Katin 2007-01-25 18:46:16 UTC
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...
Comment 27 Anatoly Shipitsin 2007-01-25 18:54:15 UTC
(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. :)
Comment 28 Sergey Belyashov 2007-03-10 16:33:59 UTC
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)
Comment 29 Tupone Alfredo gentoo-dev 2007-03-20 14:17:12 UTC
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
Comment 30 Wolfram Schlich (RETIRED) gentoo-dev 2007-03-22 18:36:51 UTC
*push* :)
Comment 31 Tupone Alfredo gentoo-dev 2007-03-23 11:00:48 UTC
Created attachment 114117 [details]
open-iscsi-2.0.754.ebuild with conditional modules generation
Comment 32 Klaus Schleicher 2007-03-24 14:17:02 UTC
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.
Comment 33 Richard Scott 2007-04-27 14:27:16 UTC
I'm keen to start testing this too :-)
Comment 34 Torsten Kurbad 2007-04-30 15:47:39 UTC
(In reply to comment #33)

Works great for me!
Comment 35 Stefan Briesenick (RETIRED) gentoo-dev 2007-05-27 12:24:41 UTC
please bump. thanks!
Comment 36 Natanael Copa 2007-06-15 06:40:29 UTC
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.
Comment 37 Natanael Copa 2007-06-15 07:11:48 UTC
I tried the 2.0.854 version too but it uses getifaddrs which is unsupported in uclibc :-(

Comment 38 Jakub Moc (RETIRED) gentoo-dev 2007-08-16 08:38:04 UTC
*** Bug 189076 has been marked as a duplicate of this bug. ***
Comment 39 r01 2007-08-16 09:11:08 UTC
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/
Comment 40 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-08-29 09:44:05 UTC
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).
Comment 41 Jakub Moc (RETIRED) gentoo-dev 2007-10-12 11:34:55 UTC
*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.