Following on 92a388a1e34559b2ce69d31fdef996ff029495a6 we also
need to rollback VirtualInterfaces that we create if allocation
fails since a reschedule with a pre-existing port will fail
allocation with a duplicate VIF constraint error.
A new test is added for the rollback section being changed
since there isn't an obvious existing test that this could be
worked into.
Reviewed: https:/ /review. openstack. org/342416 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=7a8f1369c5d d9d6a6260ba0c16 8d06e9f0016d33
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7a8f1369c5dd9d6 a6260ba0c168d06 e9f0016d33
Author: Matt Riedemann <email address hidden>
Date: Thu Jul 14 16:51:35 2016 -0400
neutron: destroy VIFs if allocating ports fails
Following on 92a388a1e34559b 2ce69d31fdef996 ff029495a6 we also
need to rollback VirtualInterfaces that we create if allocation
fails since a reschedule with a pre-existing port will fail
allocation with a duplicate VIF constraint error.
A new test is added for the rollback section being changed
since there isn't an obvious existing test that this could be
worked into.
Change-Id: I04ca4fff319912 ce2a8dc07308a3a ec1c24dc58c
Closes-Bug: #1603197