In e2eb6659a426bae05a54b93ebf31ff3247125258 we started creating
VirtualInterface objects for instances/ports when allocating
networking in the neutronv2 API code. This is used to support
virtual device tagging.
We need to delete the VIFs when deallocating the networking for
the instance though otherwise we can hit unique constraint failures
when trying to re-use an existing port from one instance to another
since the VIF has a unique constraint on the address which is the
port's MAC and uuid when using neutron.
Reviewed: https:/ /review. openstack. org/341102 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=92a388a1e34 559b2ce69d31fde f996ff029495a6
Committed: https:/
Submitter: Jenkins
Branch: master
commit 92a388a1e34559b 2ce69d31fdef996 ff029495a6
Author: Matt Riedemann <email address hidden>
Date: Tue Jul 12 13:17:34 2016 -0400
neutron: delete VIFs when deallocating networking
In e2eb6659a426bae 05a54b93ebf31ff 3247125258 we started creating rface objects for instances/ports when allocating
VirtualInte
networking in the neutronv2 API code. This is used to support
virtual device tagging.
We need to delete the VIFs when deallocating the networking for
the instance though otherwise we can hit unique constraint failures
when trying to re-use an existing port from one instance to another
since the VIF has a unique constraint on the address which is the
port's MAC and uuid when using neutron.
Change-Id: I2254bad0df3ccc 00cd5c9438fa268 4e705442e2d
Closes-Bug: #1602357