Public bug reported: After rebooting a host, nova-compute fails to restart guests VM because the network is not configured correctly. I have resume_guests_state_on_host_boot=true and start_guests_on_host_boot=true flags in /etc/nova/nova.conf
nova-network crashs because it lacks brXXX and vlanXXX interfaces. To restart the guest, i wrote this script to configure the network as nova did when creating the guest : #!/bin/sh add_network() { BR=br$1 VLAN=vlan$1 LAN=$2 BCAST=$3 vconfig add eth1 $1 brctl addbr $BR brctl setfd $BR 0 brctl stp $BR off ip link set $BR up ip link show dev $BR brctl addif $BR $VLAN ip addr show dev $BR scope global ip addr add "$LAN" brd "$BCAST" dev $BR } vconfig set_name_type VLAN_PLUS_VID_NO_PAD add_network 100 "172.16.0.4/24" "172.16.0.255" add_network 101 "172.16.1.4/24" "172.16.1.255" add_network 102 "172.16.2.4/24" "172.16.2.255" add_network 103 "172.16.3.4/24" "172.16.3.255" add_network 104 "172.16.4.4/24" "172.16.4.255" I think nova-network should recreate lacking interfaces (brXXX and vlanXXX) upon reboot to allow nova-compute to start guests ** Affects: nova (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1011640 Title: network configuration is not restored after host reboot To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/1011640/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs