Package: open-iscsi Version: 2.0.871.3-2squeeze1 Severity: normal
Running open-iscsi on system start does not login in to the iscsi targets although startup mode in iscsid.conf and node configuration has been set to automatic. The error reported during startup is: Setting up iSCSI targets: Logging in to [iface: default, target: iqn.2011-04.internal.debian7164m:storage.kvm.homes, portal: 192.168.254.1,3260] Logging in to [iface: default, target: iqn.2011-04.internal.debian7164m:storage.kvm.data, portal: 192.168.254.1,3260] iscsiadm: Could not login to [iface: default, target: iqn.2011-04.internal.debian7164m:storage.kvm.homes, portal: 192.168.254.1,3260]: iscsiadm: initiator reported error (4 - encountered connection failure) iscsiadm: Could not login to [iface: default, target: iqn.2011-04.internal.debian7164m:storage.kvm.data, portal: 192.168.254.1,3260]: iscsiadm: initiator reported error (4 - encountered connection failure) iscsiadm: Could not log into all portals. Err 4. Running service open-iscsi restart or iscsiadm -m node -L automatic after the system has been booted works as expected. To troubleshoot this issue I added the following lines before the line "starttargets": echo ">>> DEBUG" ifconfig -a netstat -nr echo "<<< DEBUG" and rebooted. The output of these lines showed that the network wasn't ready (yet): [ 1.746134] iscsi: registered transport (iser) . >>> DEBUG eth0 Link encap:Ethernet HWaddr 00:de:ad:be:22:79 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface <<< DEBUG Setting up iSCSI targets: [... snipp ...] The network has been configured as static: # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet static address 192.168.200.200 netmask 255.255.255.0 network 192.168.200.0 broadcast 192.168.200.255 gateway 192.168.200.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 192.168.200.2 dns-search internal Quick workaround that works for me: - Delaying the start of open-iscsi by a second (sleep 1 before starttargets) ensures that the network is up and running (eth0 is up an running with the configured address, route has been set) -- System Information: Debian Release: 6.0.1 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-amd64 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages open-iscsi depends on: ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib ii udev 164-3 /dev/ and hotplug management daemo open-iscsi recommends no packages. open-iscsi suggests no packages. -- Configuration Files: /etc/iscsi/initiatorname.iscsi changed: InitiatorName=iqn.1993-08.org.debian:01:3ba56ebad321 /etc/iscsi/iscsid.conf changed: isns.address = 192.168.254.1 isns.port = 3260 node.startup = automatic node.session.timeo.replacement_timeout = 120 node.conn[0].timeo.login_timeout = 15 node.conn[0].timeo.logout_timeout = 15 node.conn[0].timeo.noop_out_interval = 5 node.conn[0].timeo.noop_out_timeout = 5 node.session.err_timeo.abort_timeout = 15 node.session.err_timeo.lu_reset_timeout = 20 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org