Hi,
First of all there are two services - and maybe outlining the difference and 
the reasoning will help here.

# Reasons

It is fair to say that probably >99% of the users are not using open-
iscsi and therefore having the daemon started on install (and it is
default installed for cases that need it on start to connect to their
data) would mean that millions of system would consume a little bit of
memory and cpu. This is a matter of scale, so it might not matter for me
or you on your system, but on millions of nodes that adds up to power &
space consumption.

# Two Services

There is:
a) ● iscsid.service - iSCSI initiator daemon (iscsid)
     Loaded: loaded (/lib/systemd/system/iscsid.service; disabled; vendor 
preset: enabled)
     Active: inactive (dead)
TriggeredBy: ● iscsid.socket
       Docs: man:iscsid(8)

This one you can see is socket activated, that means by default it also
isn't started but the iscsiadm command mentioned by Simon will find the
socket, then it is transparently started and will work. Again to have it
off by default, but working right away. That is enough to probe &
configure iscsi - you don't need more than that extra socket provided by
systemd.

b) ● open-iscsi.service - Login to default iSCSI targets
     Loaded: loaded (/lib/systemd/system/open-iscsi.service; enabled; vendor 
preset: enabled)
     Active: inactive (dead)
  Condition: start condition failed at Mon 2021-06-07 06:44:26 UTC; 3 days ago
       Docs: man:iscsiadm(8)
             man:iscsid(8)

This one is responsible to log into configured targets, and as long as
none are configured there is no reason to start it, hence the
conditions.


I'd be concerned if targets were configured and it would not start, but that 
isn't the case here.
As presented here I guess it is not a problem, but I'm open for discussion.

If one thinks that this clarification was very helpful let us know,
because then maybe we should make it part of the official docs that
Simon pointed to.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1931455

Title:
  open-iscsi fails to create nodes directory

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to