[Bug 669142] Re: if-up.d/if-down.d scripts restart iSCSI inappropriately

Razique Mahroua 669142 at bugs.launchpad.net
Fri Jul 8 15:02:32 UTC 2011


Actually, I've slighly updated it :

# Support for ifupdown script.
# Don't bother to restart when lo is configured.
if [ "$IFACE" != "$ISCSI_INTERFACE" ] && [ -n "$IFACE" ]; then
        echo "Not restarting ISCSI daemon... (check the value of ISCSI_INTERFACE)"
        exit 0
fi

Which means that I restart iscsi when the explicitely interface is set,
but you are still able to restart the iscsi daemon while you invoke the
script.

-- 
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