[Bug 495394] Re: autostart almost always fails on boot time host
Serge Hallyn
495394 at bugs.launchpad.net
Thu Jun 30 20:01:37 UTC 2011
@Mika,
thanks for posting your patches along the way. Regarding your third
version (in comment #24), is it just the net-device-up for the bridge
which you're not seeing? Have you tried leaving bridge-network-
interface.conf enabled, and, at the bottom of the loop in its pre-start
script, doing
ifup $i
(to force /etc/network/if-up.d/upstart to do the initctl emit for us).
So the script would look like:
pre-start script
. /lib/bridge-utils/bridge-utils.sh
mkdir -p /var/run/network
for i in $(ifquery --list --allow auto); do
ports=$(ifquery $i | sed -n -e's/^bridge_ports: //p')
for port in $(bridge_parse_ports $ports); do
case $port in
$INTERFACE|$INTERFACE.*)
ifup --allow auto $i
brctl addif $i $port && ifconfig $port 0.0.0.0 up
break
;;
esac
done
ifup $i
done
end script
Clint, does that look reasonable to you?
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in Ubuntu.
https://bugs.launchpad.net/bugs/495394
Title:
autostart almost always fails on boot time host
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/495394/+subscriptions
More information about the Ubuntu-server-bugs
mailing list