[Bug 669142] Re: if-up.d/if-down.d scripts restart iSCSI inappropriately
SW
launchpad at mailinator.com
Thu Apr 11 13:40:29 UTC 2013
I am not sure if my iscsi config is general for all ubuntus, but at
least I replaced
if [ "$IFACE" = lo ]; then
exit 0
fi
with
if iscsiadm -m iface --op=show | grep -q ",$(ip link show $IFACE
2>/dev/null | awk '$1=="link/ether" {print $2}')," ; then
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to open-iscsi in Ubuntu.
https://bugs.launchpad.net/bugs/669142
Title:
if-up.d/if-down.d scripts restart iSCSI inappropriately
Status in “open-iscsi” package in Ubuntu:
Confirmed
Bug description:
Binary package hint: open-iscsi
When any interface that is not named "lo" is brought up or down, it
will cause open-iscsi to restart. This is regardless of if the
interface has anything to do with iSCSI traffic, which can cause
problems for LUNs still in use.
The fragment of the script /etc/init.d/open-iscsi that causes this is
near the top:
# Support for ifupdown script.
# Don't bother to restart when lo is configured.
if [ "$IFACE" = lo ]; then
exit 0
fi
Restricting restarts purely for the loopback interface is not
sufficient, although adequately determining if a restart is actually
required may be somewhat tricky. Sadly I have no suggestions for a
solution at the moment.
### System Information ###
Description: Ubuntu 10.04.1 LTS
Release: 10.04
open-iscsi 2.0.871-0ubuntu4
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/669142/+subscriptions
More information about the foundations-bugs
mailing list