$ systemctl status --full open-iscsi
● open-iscsi.service - LSB: Starts and stops the iSCSI initiator services and logs in to default targets
Loaded: loaded (/etc/init.d/open-iscsi)
Active: active (running) since Tue 2015-06-09 15:08:20 UTC; 12min ago
Docs: man:systemd-sysv-generator(8)
Process: 543 ExecStart=/etc/init.d/open-iscsi start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/open-iscsi.service
├─573 /usr/sbin/iscsid
└─574 /usr/sbin/iscsid
Jun 09 15:08:20 ubuntu open-iscsi[543]: ...done.
Jun 09 15:08:20 ubuntu systemd[1]: Child 543 belongs to open-iscsi.service
Jun 09 15:08:20 ubuntu systemd[1]: open-iscsi.service: control process exited, code=exited status=0
Jun 09 15:08:20 ubuntu systemd[1]: open-iscsi.service got final SIGCHLD for state start
Jun 09 15:08:20 ubuntu systemd[1]: open-iscsi.service changed start -> running
Jun 09 15:08:20 ubuntu systemd[1]: Job open-iscsi.service/start finished, result=done
Jun 09 15:08:20 ubuntu systemd[1]: Started LSB: Starts and stops the iSCSI initiator services and logs in to default targets.
Jun 09 15:08:21 ubuntu iscsid[573]: iSCSI daemon with pid=574 started!
Jun 09 15:08:21 ubuntu iscsid[573]: Could not read data from db. Using default and currently negotiated values
Jun 09 15:08:23 ubuntu iscsid[573]: connection1:0 is operational after recovery (1 attempts)
$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
I noticed this under MAAS when installing wily.
/etc/resolv.conf (managed by resolvconf) does not get updated by open-iscsi's systemd job.
I can recreate this outside of MAAS with tgt and maas images. tools to help with that are at: /code.launchpad .net/~smoser/ maas/maas- ephemeral- sniff
https:/
after system booted: open-iscsi. interface
$ cat /run/initramfs/
eth0
$ cat /run/network/ ifstate
lo=lo
$ cat /run/net-eth0.conf '192.168. 122.89' '192.168. 122.255' '255.255. 255.0' '192.168. 122.1' '192.168. 122.1' 'maas-enlist' '192.168. 122.1' '3600'
DEVICE='eth0'
PROTO='dhcp'
IPV4ADDR=
IPV4BROADCAST=
IPV4NETMASK=
IPV4GATEWAY=
IPV4DNS0=
IPV4DNS1='0.0.0.0'
HOSTNAME=
DNSDOMAIN=''
NISDOMAIN=''
ROOTSERVER=
ROOTPATH=''
filename=''
UPTIME='19'
DHCPLEASETIME=
DOMAINSEARCH=''
$ systemctl status --full open-iscsi d/open- iscsi) sysv-generator( 8) /etc/init. d/open- iscsi start (code=exited, status=0/SUCCESS) slice/open- iscsi.service
● open-iscsi.service - LSB: Starts and stops the iSCSI initiator services and logs in to default targets
Loaded: loaded (/etc/init.
Active: active (running) since Tue 2015-06-09 15:08:20 UTC; 12min ago
Docs: man:systemd-
Process: 543 ExecStart=
CGroup: /system.
├─573 /usr/sbin/iscsid
└─574 /usr/sbin/iscsid
Jun 09 15:08:20 ubuntu open-iscsi[543]: ...done. service/ start finished, result=done
Jun 09 15:08:20 ubuntu systemd[1]: Child 543 belongs to open-iscsi.service
Jun 09 15:08:20 ubuntu systemd[1]: open-iscsi.service: control process exited, code=exited status=0
Jun 09 15:08:20 ubuntu systemd[1]: open-iscsi.service got final SIGCHLD for state start
Jun 09 15:08:20 ubuntu systemd[1]: open-iscsi.service changed start -> running
Jun 09 15:08:20 ubuntu systemd[1]: Job open-iscsi.
Jun 09 15:08:20 ubuntu systemd[1]: Started LSB: Starts and stops the iSCSI initiator services and logs in to default targets.
Jun 09 15:08:21 ubuntu iscsid[573]: iSCSI daemon with pid=574 started!
Jun 09 15:08:21 ubuntu iscsid[573]: Could not read data from db. Using default and currently negotiated values
Jun 09 15:08:23 ubuntu iscsid[573]: connection1:0 is operational after recovery (1 attempts)
$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
$ cat /proc/cmdline name=tgt- boot-test- S2s2hi iscsi_target_ ip=192. 168.1.132 iscsi_target_ port=3260 iscsi_initiator =maas-enlist ip=:::: maas-enlist: BOOTIF ro BOOTIF_DEFAULT=eth0 root=/dev/ disk/by- path/ip- 192.168. 1.132:3260- iscsi-tgt- boot-test- S2s2hi- lun-1 overlayroot=tmpfs console=ttyS0 console=tty1 debug ds=nocloud- net;seedfrom=http:// 192.168. 1.132:32600/
nomodeset iscsi_target_
ProblemType: Bug ature: User Name 3.19.0- 20.20-generic 3.19.8 DIR=<set>
DistroRelease: Ubuntu 15.10
Package: open-iscsi 2.0.873-3ubuntu11
ProcVersionSign
Uname: Linux 3.19.0-20-generic x86_64
ApportVersion: 2.17.3-0ubuntu4
Architecture: amd64
Date: Tue Jun 9 15:11:06 2015
ProcEnviron:
TERM=linux
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: open-iscsi
UpgradeStatus: No upgrade log present (probably fresh install)