]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Catch errors on 'port not found' while deleting subnet
authorarmando-migliaccio <armamig@gmail.com>
Tue, 1 Sep 2015 22:45:50 +0000 (15:45 -0700)
committerAssaf Muller <amuller@redhat.com>
Wed, 2 Sep 2015 15:28:18 +0000 (15:28 +0000)
commitafd1983680aea739ef0e4b0ff2c07ab09c4a86fb
treec17d5c1a229794ced2453ac88d76fb38e0be45f0
parent4405b3c640c2cd7dfd111a7301ce11d1497ea457
Catch errors on 'port not found' while deleting subnet

In some circumstances (like the one triggered by the test_dhcp_ipv6 testcase)
calls to deleting a port and calls to deleting subnets can happen in straight
sequence.

If this happens the execution of the operations can interleave leading
to the subnet deletion to fail because the port has already gone. This patch
ensures a missing port is handled correctly.

The method delete_subnet is ginormous and hence impossible to test at a unit
level without proper refactoring. That can happen with a follow-up patch.

Closes-bug: #1490832

Change-Id: I80c3733c93b2b66c2a1c4bc3bc24272afdd88b1f
neutron/plugins/ml2/plugin.py