[Bug 1802354] Re: iscsid does not run if there are only initramfs initiated targets

Scott Moser ssmoser2+ubuntu at gmail.com
Thu Nov 8 22:11:50 UTC 2018


The goal here should be simple.
 If there are iscsi sessions, then iscsid should be started/running.

You can tell if there are iscsi sessions by either:
 - 'iscsiadm --mode=session' exits 0
 - /sys/class/iscsi_session is non-empty.

The current open-iscsi.service implementation will not result in a
iscsid.service running if it did not create sessions (either because
they already existed or because there was nothing to do).

I'm trying to work out the best way to implement that logic in the
systemd services that we have now.

Would it be acceptable for the open-iscsi.service file to simply execute
 'systemctl start iscsid.service'
if there was content in /sys/class/iscsi_session ?

My testing shows that 'systemctl start SERVICE' for a service that
is already running exits 0 and is not harmful.

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

Title:
  iscsid does not run if there are only initramfs initiated targets

Status in open-iscsi package in Ubuntu:
  Confirmed

Bug description:
  It was reported that after the changes made in bug 1755858, the iscsid
  service was not running when initramfs (via iscsi_* params or iBft)
  set up an iscsi mount.

  This seems to not be a problem until there is a restart of the iscsi
  *host* service or some other hiccup.  Thus, in normal testing you will
  not see this issue.

  --
  Related bugs:
   * bug 1755858: iscsid autostarts on all servers when it has nothing to do.

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: open-iscsi 2.0.874-5ubuntu2.3 [modified: lib/systemd/system/open-iscsi.service]
  ProcVersionSignature: Ubuntu 4.15.0-36.39-generic 4.15.18
  Uname: Linux 4.15.0-36-generic x86_64
  ApportVersion: 2.20.9-0ubuntu7.4
  Architecture: amd64
  Date: Thu Nov  8 17:42:46 2018
  ProcEnviron:
   TERM=screen.xterm-256color
   PATH=(custom, no user)
   LANG=C.UTF-8
   SHELL=/bin/bash
  SourcePackage: open-iscsi
  UpgradeStatus: No upgrade log present (probably fresh install)
  mtime.conffile..etc.iscsi.iscsid.conf: 2018-10-12T16:51:00.187144

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-iscsi/+bug/1802354/+subscriptions



More information about the foundations-bugs mailing list