[Pkg-libvirt-maintainers] Bug#574358: libvirt-bin: libvirtd fails to autostart iscsi pool at boot time

Nicolas Greneche nicolas.greneche at univ-orleans.fr
Wed Mar 17 15:28:41 UTC 2010


Package: libvirt-bin
Version: 0.7.6-2
Severity: normal


Hi,

I've defined an iscsi target in a pool through XML file :

<pool type="iscsi">
<name>equalog</name>
<source>
<host name="10.10.0.1"/>
<device path="iqn.2001-05.com.equallogic:0-8a0906-4992c7f05-39c000000114b8fc-vglog"/>
</source>
<target>
<path>/dev/disk/by-path</path>
</target>
</pool>

At pool startup (virsh pool-start mypool) an entry is created in /dev/disk/by-path corresponding to my target.

I added this XML code in my VM config to make it usable in guest :
<disk type='block' device='disk'>
 <driver name='qemu'/>
 <source dev='/dev/disk/by-path/ip-10.10.0.1:3260-iscsi-iqn.2001-05.com.equallogic:0-8a0906-4992c7f05-39c000000114b8fc-vglog-lun-0'/>
 <target dev='vdc' bus='virtio'/>
 <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</disk>

The guest boots and a /dev/vdc is fully usable.

Guest and iscsi pool are flagged autostart.

When you reboot the host, libvirtd failed at autostarting iscsi pool with the folowing message (grep iscsi /var/log/syslog) :

Mar 17 15:15:51 sandi libvirtd: 15:15:51.035: error : virRunWithHook:869 : internal error '/usr/bin/iscsiadm --mode discovery --type sendtargets --portal 10.10.0.1:3260,1' exited with non-zero status 255 and signal 0: iscsiadm: cannot make connection to 10.10.0.1:3260 (113)#012iscsiadm: connection to discovery address 10.10.0.1 failed#012iscsiadm: cannot make connection to 10.10.0.1:3260 (113)#012iscsiadm: connection to discovery address 10.10.0.1 failed#012iscsiadm: cannot make connection to 10.10.0.1:3260 (113)#012iscsiadm: connection to discovery address 10.10.0.1 failed#012iscsiadm: cannot make connection to 10.10.0.1:3260 (113)#012iscsiadm: connection to discovery address 10.10.0.1 failed#012iscsiadm: cannot make connection to 10.10.0.1:3260 (113)#012iscsiadm: connection to discovery address 10.10.0.1 failed#012iscsiadm: connection login retries (reopen_max) 5 exceeded#012iscsiadm: Could not perform SendTargets discovery.#012

As a consequence, the guest does not start :

Mar 17 15:15:52 sandi libvirtd: 15:15:52.026: error : virStorageFileGetMetadata:415 : cannot open file '/dev/disk/by-path/ip-10.10.0.1:3260-iscsi-iqn.2001-05.com.equallogic:0-8a0906-4992c7f05-39c000000114b8fc-vglog-lun-0': No such file or directory
Mar 17 15:15:52 sandi libvirtd: 15:15:52.026: error : qemuAutostartDomain:595 : Failed to autostart VM 'gaelle': cannot open file '/dev/disk/by-path/ip-10.10.0.1:3260-iscsi-iqn.2001-05.com.equallogic:0-8a0906-4992c7f05-39c000000114b8fc-vglog-lun-0': No such file or directory

If you perform an /etc/init.d/libvirt-bin restart just after boot sequence (ie with the OS started and user logged as root) it operates smoothly.

It seems that libvirtd comes too early in booting process.

Regards,

Nicolas Greneche - Sysadmin at Orleans University (France)

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libvirt-bin depends on:
ii  adduser           3.112                  add and remove users and groups
ii  libavahi-client3  0.6.25-3               Avahi client library
ii  libavahi-common3  0.6.25-3               Avahi common library
ii  libc6             2.10.2-6               Embedded GNU C Library: Shared lib
ii  libcap-ng0        0.6.2-4+b1             An alternate posix capabilities li
ii  libdevmapper1.02. 2:1.02.39-1            The Linux Kernel Device Mapper use
ii  libgcrypt11       1.4.5-2                LGPL Crypto library - runtime libr
ii  libgnutls26       2.8.5-2                the GNU TLS library - runtime libr
ii  libparted1.8-12   1.8.8.git.2009.07.19-6 The GNU Parted disk partitioning s
ii  libpciaccess0     0.11.0-1               Generic PCI access library for X
ii  libreadline6      6.1-1                  GNU readline and history libraries
ii  libsasl2-2        2.1.23.dfsg1-5         Cyrus SASL - authentication abstra
ii  libudev0          151-2                  libudev shared library
ii  libuuid1          2.16.2-0               Universally Unique ID library
ii  libvirt0          0.7.6-2                library for interfacing with diffe
ii  libxenstore3.0    3.4.3~rc3-1            Xenstore communications library fo
ii  libxml2           2.7.6.dfsg-2+b1        GNOME XML library
ii  logrotate         3.7.8-4                Log rotation utility

Versions of packages libvirt-bin recommends:
ii  bridge-utils                  1.4-5      Utilities for configuring the Linu
ii  dnsmasq-base                  2.52-1     A small caching DNS proxy and DHCP
ii  iptables                      1.4.6-2    administration tools for packet fi
ii  netcat-openbsd                1.89-3     TCP/IP swiss army knife
ii  qemu                          0.11.1-2   fast processor emulator

Versions of packages libvirt-bin suggests:
pn  policykit-1                   <none>     (no description available)

-- no debconf information





More information about the Pkg-libvirt-maintainers mailing list