Public bug reported: Before deleting a network, neutron.services.segments.db._delete_segments_for_network callback fails to delete the network's segments in the case of a routed network. This is due to the fact that in a routed network, segments are associated to subnets with a foreign key DB relationship. Therefore, a segment cannot be deleted before clearing the segment_id attribute in all the related subnets. Otherwise, the foreign key constraint is violated.
This has been uncovered during work to add segment api tests to the gate: https://review.openstack.org/#/c/353115/. When the tearDown method of the tempest test is executed, the following traceback can be seen in the q-svc screen: http://paste.openstack.org/raw/612268/ ** Affects: neutron Importance: Medium Assignee: Miguel Lavalle (minsel) Status: New ** Changed in: neutron Importance: Undecided => Medium ** Changed in: neutron Assignee: (unassigned) => Miguel Lavalle (minsel) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to neutron. https://bugs.launchpad.net/bugs/1697324 Title: _delete_segments_for_network callback fails with routed networks Status in neutron: New Bug description: Before deleting a network, neutron.services.segments.db._delete_segments_for_network callback fails to delete the network's segments in the case of a routed network. This is due to the fact that in a routed network, segments are associated to subnets with a foreign key DB relationship. Therefore, a segment cannot be deleted before clearing the segment_id attribute in all the related subnets. Otherwise, the foreign key constraint is violated. This has been uncovered during work to add segment api tests to the gate: https://review.openstack.org/#/c/353115/. When the tearDown method of the tempest test is executed, the following traceback can be seen in the q-svc screen: http://paste.openstack.org/raw/612268/ To manage notifications about this bug go to: https://bugs.launchpad.net/neutron/+bug/1697324/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp