This commit fixes a bug that an instance can't obtain IP address by DHCP
when using LibvirtHybridOVSBridgeDriver. When nova-compute launches an
instance on KVM, vif driver plug() may be called twice and this causes
a behavior that a port of OVS cannot seen as a bridge port. So this patch
make sure create_veth_pair() is not called if a port already exists.
Reviewed: https:/ /review. openstack. org/13434 github. com/openstack/ nova/commit/ 577ba6267994bae cd5f9e051056245 36d320cc9b
Committed: http://
Submitter: Jenkins
Branch: master
commit 577ba6267994bae cd5f9e051056245 36d320cc9b
Author: Akihiro MOTOKI <email address hidden>
Date: Fri Sep 21 10:08:43 2012 +0900
Ensure hybrid driver creates veth pair only once.
Fixes bug 1053312
This commit fixes a bug that an instance can't obtain IP address by DHCP SBridgeDriver. When nova-compute launches an
when using LibvirtHybridOV
instance on KVM, vif driver plug() may be called twice and this causes
a behavior that a port of OVS cannot seen as a bridge port. So this patch
make sure create_veth_pair() is not called if a port already exists.
Change-Id: I76792df9f0dd28 224d7d57989bf1e 8ecadb92606