test_trunk_subport_lifecycle scenario fails with subport status never reaches DOWN state

Bug #1943679 reported by Lajos Katona
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
New
Medium
Unassigned

Bug Description

neutron_tempest_plugin.scenario.test_trunk.TrunkTest.test_trunk_subport_lifecycle fails in the step where expects the port to be DOWN after subport was removed from VM, see [1].

example:
https://storage.gra.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_640/805366/1/gate/neutron-tempest-plugin-scenario-openvswitch-iptables_hybrid/640d9ab/testr_results.html

Seems like a race between update_device_down and unbound, and neutron-server fails to set port status:
https://opendev.org/openstack/neutron/src/branch/master/neutron/plugins/ml2/rpc.py#L267-L271

[1]: https://opendev.org/openstack/neutron-tempest-plugin/src/branch/master/neutron_tempest_plugin/scenario/test_trunk.py#L260-L264

Tags: trunk
tags: added: trunk
summary: test_trunk_subport_lifecycle scenario fails with subport status never
- rich DOWN state
+ reach DOWN state
summary: test_trunk_subport_lifecycle scenario fails with subport status never
- reach DOWN state
+ reaches DOWN state
Revision history for this message
Lajos Katona (lajos-katona) wrote :

Perhaps not related but another failure for test_trunk_subport_lifecycle:
https://review.opendev.org/c/openstack/neutron/+/809268
https://dd25c8fff5148bff9a3d-e4098ecd70541ccfec6de5edaad12e3e.ssl.cf5.rackcdn.com/809268/1/check/neutron-tempest-plugin-scenario-openvswitch/aafed35/testr_results.html

This time the exception was this:
tempest.lib.exceptions.Conflict: Conflict with state of target resource
Details: {'type': 'PortInUse', 'message': 'Unable to complete operation on port 62105403-77f1-4f28-a2d8-54e64048def7 for network b528d78b-5f74-4b74-8a2e-6cb71c06ec79. Port already has an attached device 985e5be8-0e5f-48e6-abb7-59b961828205.', 'detail': ''}

So it seems that the after the suports are removed from the trunk of VM2 (see https://opendev.org/openstack/neutron-tempest-plugin/src/branch/master/neutron_tempest_plugin/scenario/test_trunk.py#L266 ) and the ports go down, the suports can't be added to the trunk of vm2 as the subport still has an attached device id

Revision history for this message
Lajos Katona (lajos-katona) wrote :
Changed in neutron:
importance: Undecided → Medium
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.