Comment 15 for bug 1084355

Revision history for this message
YunQiang Su (wzssyqa) wrote : Re: Tap interface does not automatically get an IP address upon a reboot

This is my current workaround

1. /etc/init/{quantum-dhcp-agent,quantum-l3-agent}.conf
replace
start on runlevel [2345]
with
start on starting nova-compute

2. edit /etc/init/quantum-plugin-openvswitch-agent.conf to

start on starting nova-compute
stop on stopped openvswitch-switch

chdir /var/run

pre-start script
        mkdir -p /var/run/quantum
        chown quantum:root /var/run/quantum
        service openvswitch-switch restart
        quantum-ovs-cleanup
end script

exec start-stop-daemon --start --chuid quantum --exec /usr/bin/quantum-openvswitch-agent -- --config-file=/etc/quantum/quantum.conf --config-file=/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini --log-file=/var/log/quantum/openvswitch-agent.log

post-start script
        service openvswitch-switch restart
end script