Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 357027 - sys-block/lsopen-iscsi init script fails to restart after it logs out discovered targets and stops
Summary: sys-block/lsopen-iscsi init script fails to restart after it logs out discove...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High minor
Assignee: Mike Doty (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-01 22:53 UTC by REdOG
Modified: 2011-04-09 02:54 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description REdOG 2011-03-01 22:53:43 UTC
After installing open-iscsi and following the instructions at http://en.gentoo-wiki.com/wiki/ISCSI I am able to mount and use my target drives.

If I try to restart the iscsid service all targets are unmounted, logged out and then the init script fails with 

iscsiadm: No records found!



Reproducible: Always

Steps to Reproduce:
1. install & configure open-iscsi
2. discover targets
3. /etc/init.d/iscsid restart



Actual Results:  
you must manually login to targets with iscsiadm after each reboot or service restart

Expected Results:  
the devices should be made available for mounting when the service restarts.

I was able to fix this on my system by altering the 

starttargets() function in /etc/init.d/iscsid

changing: /usr/sbin/iscsiadm -m node --loginall=automatic
to
/usr/sbin/iscsiadm -m node --loginall=all
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2011-04-08 20:45:44 UTC
Wouldn't this log you into every single node available on your network? Not necessarily something people would want (like myself).
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2011-04-08 21:04:34 UTC
The current state of the configuration file, according to the man page, would result in it logging into the ones that are marked for automatic login. While the change you want to make would result in every node being logged in, which is definitely not something that we would want to make the default.

I recommend setting the ones you want to automatically login to as automatic.