[Bug 1755858] Re: iscsid autostarts on all servers when it has nothing to do
Launchpad Bug Tracker
1755858 at bugs.launchpad.net
Fri Jun 1 06:58:21 UTC 2018
This bug was fixed in the package open-iscsi - 2.0.874-5ubuntu4
---------------
open-iscsi (2.0.874-5ubuntu4) cosmic; urgency=medium
* debian/tests/install: ignore the potential stderr of the probing command
that is meant to activate iscsid indirectly via the socket.
open-iscsi (2.0.874-5ubuntu3) cosmic; urgency=medium
* make iscsid socket activated to only activate it as-needed (LP: #1755858)
- debian/iscsid.socket: systemd socket file for iscsid
- debian/open-iscsi.service: do not start or check iscsid.service
- debian/rules: install and enable iscsid.socket
- debian/patches/iscid-conf-use-systemd.socket-patch: default to the socket
- debian/open-iscsi.postinst:
+ run restart logic only if service is running on upgrade
+ drop no more reachable upgrade path that affects iscsid
+ disable iscsid.service on upgrade
+ handle iscsid.socket to be started if the service is not running yet
- debian/tests/install: fix tests to work with socket activation
-- Christian Ehrhardt <christian.ehrhardt at canonical.com> Wed, 30 May
2018 15:42:12 +0200
** Changed in: open-iscsi (Ubuntu)
Status: Fix Committed => Fix Released
--
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/1755858
Title:
iscsid autostarts on all servers when it has nothing to do
Status in open-iscsi package in Ubuntu:
Fix Released
Status in open-iscsi source package in Bionic:
Triaged
Status in open-iscsi package in Debian:
New
Bug description:
In bionic, the open-iscsi systemd unit has the following guards to
keep it from running on systems with no iscsi targets configured:
# Must have some pre-defined targets to login to
ConditionDirectoryNotEmpty=|/etc/iscsi/nodes
# or have a session to use via iscsid
ConditionDirectoryNotEmpty=|/sys/class/iscsi_session
However, iscsid starts from a separate unit and does not include this
check. Thus, iscsid starts on every Ubuntu Server install, whether or
not it has anything to do.
We should replicate these unit conditionals to the iscsid unit, to
ensure the daemon doesn't run (consuming memory, and slowing boot)
when not needed.
Related bugs:
* bug 1630946: ubuntu-server depends on open-iscsi and runs iscsid
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1755858/+subscriptions
More information about the foundations-bugs
mailing list