test_router_add_interface_delete_port_after_failure may fail due to extra port created

Bug #1612894 reported by Shih-Hao Li
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Shih-Hao Li

Bug Description

In test_router_add_interface_delete_port_after_failure,
when a subnet is created, a neutron DHCP port could be created
if this subnet is DHCP-enabled.

In this case, the test will fail because it only checks if a
router-interface port is deleted and expects no more port in
the system. But it misses the internal DHCP port is still there.

Revision history for this message
Shih-Hao Li (shihli) wrote :

A possible solution is posted at

https://review.openstack.org/#/c/354951/

Changed in neutron:
assignee: nobody → Shih-Hao Li (shihli)
status: New → In Progress
Revision history for this message
Nate Johnston (nate-johnston) wrote :

Do you know how frequently this happens in the gate? What error message is thrown when this error is encountered?

Changed in neutron:
importance: Undecided → Medium
tags: added: l3-dvr-backlog unittest
Revision history for this message
Shih-Hao Li (shihli) wrote :

Sorry I don't how frequently this happens in the gate.
When it happens, assertFalse(plugin.get_ports(context.get_admin_context())) fails
because a DHCP port is still there.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/354951
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=aa52367f78be0941ab7a75ade29a30cd853bbbec
Submitter: Jenkins
Branch: master

commit aa52367f78be0941ab7a75ade29a30cd853bbbec
Author: Shih-Hao Li <email address hidden>
Date: Fri Aug 12 11:59:38 2016 -0700

    Fix test_router_add_interface_delete_port_after_failure

    In test_router_add_interface_delete_port_after_failure,
    when a subnet is created, a neutron DHCP port could be created
    if this subnet is DHCP-enabled.

    In this case, the test will fail because it only checks if a
    router-interface port is deleted and expects no more port in
    the system. But it misses the internal DHCP port is still there.

    The patch here is to explicitly set enable_dhcp=False when
    creating the subnet.

    Change-Id: I4acbf2c83f9145f7b99519ec90934fa862de67f7
    Closes-Bug: #1612894

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 9.0.0.0b3

This issue was fixed in the openstack/neutron 9.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.