Log when port resource is leaked during port delete
When a bound port is deleted in neutron, nova gets a
network-vif-deleted notification and the port is
detached from the server. However if the port had resource request
then the resulting allocation is leaked.
This patch makes sure nova at least logs an ERROR. Also this patch
asserts that the leaked allocation is reclaimed when the server is
deleted.
Change-Id: I5d905aeb5b25f84d406dbf238d0d3a46f0f81161
Related-Bug: #1820588
(cherry picked from commit e9d572ddfad10da18603c55da1aad2e70da15381)
Reviewed: https:/ /review. opendev. org/657581 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=a2b1ef5f11f 38a3359613babff 86ec861bff4373
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit a2b1ef5f11f38a3 359613babff86ec 861bff4373
Author: Balazs Gibizer <email address hidden>
Date: Fri May 3 16:14:48 2019 -0600
Log when port resource is leaked during port delete
When a bound port is deleted in neutron, nova gets a vif-deleted notification and the port is
network-
detached from the server. However if the port had resource request
then the resulting allocation is leaked.
This patch makes sure nova at least logs an ERROR. Also this patch
asserts that the leaked allocation is reclaimed when the server is
deleted.
Change-Id: I5d905aeb5b25f8 4d406dbf238d0d3 a46f0f81161 18603c55da1aad2 e70da15381)
Related-Bug: #1820588
(cherry picked from commit e9d572ddfad10da