As explained by Christian on #4, I did further tests:

- Disables only open-iscsi
- To be sure, I moved out of the way what was in /etc/iscsi/nodes which is now 
empty
- To be sure, did the same with /etc/iscsi/send-targets
- To be extra sure, even removed those directory

And when I boot my machine, iscsid.service is still starting although it
is supposed to be "socket activated".

I also removed the 2 lines in iscsid.service:

#[Install]
# WantedBy=sysinit.target

Because according to http://0pointer.de/blog/projects/socket-activation.html
this also unconditionally starts iscsid.service


Here is the result after all that:
$ systemctl status open-iscsi.service iscsid.service iscsid.socket 
● open-iscsi.service - Login to default iSCSI targets
     Loaded: loaded (/lib/systemd/system/open-iscsi.service; disabled; vendor 
preset: enabled)
     Active: inactive (dead)
       Docs: man:iscsiadm(8)
             man:iscsid(8)

● iscsid.service - iSCSI initiator daemon (iscsid)
     Loaded: loaded (/lib/systemd/system/iscsid.service; enabled; vendor 
preset: enabled)
     Active: active (running) since Sat 2020-06-20 12:13:55 CEST; 16s ago
TriggeredBy: ● iscsid.socket
       Docs: man:iscsid(8)
    Process: 1430 ExecStartPre=/lib/open-iscsi/startup-checks.sh (code=exited, 
status=0/SUCCESS)
    Process: 1437 ExecStart=/sbin/iscsid (code=exited, status=0/SUCCESS)
   Main PID: 1440 (iscsid)
      Tasks: 2 (limit: 38305)
     Memory: 3.6M
     CGroup: /system.slice/iscsid.service
             ├─1439 /sbin/iscsid
             └─1440 /sbin/iscsid

juin 20 12:13:55 alain-HTPC systemd[1]: Starting iSCSI initiator daemon 
(iscsid)...
juin 20 12:13:55 alain-HTPC iscsid[1437]: iSCSI logger with pid=1439 started!
juin 20 12:13:55 alain-HTPC systemd[1]: iscsid.service: Failed to parse PID 
from file /run/iscsid.pid: Invalid argument
juin 20 12:13:55 alain-HTPC systemd[1]: Started iSCSI initiator daemon (iscsid).
juin 20 12:13:56 alain-HTPC iscsid[1439]: iSCSI daemon with pid=1440 started!

● iscsid.socket - Open-iSCSI iscsid Socket
     Loaded: loaded (/lib/systemd/system/iscsid.socket; enabled; vendor preset: 
enabled)
     Active: active (running) since Sat 2020-06-20 12:13:46 CEST; 25s ago
   Triggers: ● iscsid.service
       Docs: man:iscsid(8)
             man:iscsiadm(8)
     Listen: @ISCSIADM_ABSTRACT_NAMESPACE (Stream)
     CGroup: /system.slice/iscsid.socket

juin 20 12:13:46 alain-HTPC systemd[1]: Listening on Open-iSCSI iscsid
Socket.


And (as root)
# tree /etc/iscsi/
/etc/iscsi/
├── initiatorname.iscsi
└── iscsid.conf

0 directories, 2 files


According to Christian's explanation at  #4

- open-iscsi now cannot trigger the socket since it has been disabled
(see above) and also there are now no nodes or send-targets

- iscsid is still started, although the "database" (in fact the tree
directory under /etc/iscsi) is completely empty, and the "install"
clause has been removed from the service.



Where does this come from?

Is it a bug or some other "traces" I might have in my configuration that
make iscsid start?


** Changed in: open-iscsi (Ubuntu)
       Status: Invalid => New

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

Title:
  open-iscsi is slowing down the boot process

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to