[Bug 1011640] Re: network configuration is not restored after host reboot
Yoann Dubreuil
yoann.dubreuil at gmail.com
Mon Jun 11 15:14:27 UTC 2012
Ok,
** Description changed:
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
+ the interface used to create vlan is not UP. In our case, this interface
+ is not connected to a physical network and doesn't have an IP address,
+ so it's not configured on boot.
- nova-network crashs because it lacks brXXX and vlanXXX interfaces.
+ It could be good to start nova-network even if vlan interfaces cannot be
+ set up. Here, it crashes while trying to put a vlan interface UP, as you
+ can see in the attached log file
- To restart the guest, i wrote this script to configure the network as
- nova did when creating the guest :
+ For other people eventually affected by the problem, i initially wrote
+ this script to manually configure network so nova-network can start
+ successfully
#!/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
+ 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
** Attachment added: "nova-network crash log"
https://bugs.launchpad.net/ubuntu/+source/nova/+bug/1011640/+attachment/3185031/+files/nova-network-error.log
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nova in 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
More information about the Ubuntu-server-bugs
mailing list