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

Nicolas Greneche nicolas.greneche at univ-orleans.fr
Thu Mar 18 09:24:35 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Guido Günther wrote:
> On Wed, Mar 17, 2010 at 04:28:41PM +0100, Nicolas Greneche wrote:
>> It seems that libvirtd comes too early in booting process.
> Or the iscsi stuff to late. Could you add a 
> 
> Could you change:
> # Should-Start:      hal avahi
> # Should-Start:      hal avahi open-iscsi
> 
> to the LSB section of /etc/init.d/libvirt-bin and see if this helps
> (assuming you're using dependency based boot)?
> Cheers,
>  -- Guido
> 
> 

Hi Guido,

I've tried your suggestion, it doesn't work.

Whatever, I've found what was wrong. This an ARP issue.
I've dumped network traffic by a tcpdump in libvirtd startup script to
see what happens at network layer. The host send a "who has" and obtains
no reply.

By adding this ugly piece of code in startup (start section) script it
works :

if running ;  then
      log_progress_msg "already running"
      log_end_msg 0
      exit 0
fi
** arp -i eth1 -s 10.10.0.1 00:09:8A:05:7F:2C **
rm -f /var/run/libvirtd.pid
start-stop-daemon --start --quiet --pidfile $PIDFILE \
       --exec $DAEMON -- $libvirtd_opts

Here is my /etc/network/interfaces :

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
        address 194.167.31.37
        netmask 255.255.255.0
        network 194.167.31.0
        broadcast 194.167.31.255
        gateway 194.167.31.242
        bridge_ports eth0
        bridge_fd 9
        bridge_hello 12
        bridge_stp off

auto eth1
iface eth1 inet static
        address 10.10.0.23
        netmask 255.255.255.0
        network 10.10.0.0
        broadcast 10.10.0.255

Maybe there is a parameter to add to authorize arp cache altering during
boot process ? Do you have tips about it ?

Many thanks for your help,

- --
Nicolas Greneche -  RSSI et Sysadmin
Centre de Ressources Informatiques (CRI)
Doctorant au sein du projet SDS - www.sds-project.fr
Mail : nicolas.greneche_(at)_univ-orleans.fr
GPG  : http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x5FEBD0EF

Universite d'Orleans            Web  : http://blog.garnett.fr
Batiment 3IA - 2e etage         Tel  : 02 38 49 25 26
6 rue Leonard de Vinci
BP 6102 45061 ORLEANS Cedex 2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkuh8UwACgkQTx/Y+1/r0O/QzwCdG867f7ffaUMqQOfViDyVkMgI
plsAoJuy0V+YpJdzgxailjqqGSWjHdzK
=agLD
-----END PGP SIGNATURE-----





More information about the Pkg-libvirt-maintainers mailing list