Neutron resources deletion fails when sdn is used

Bug #1960303 reported by Ilya Popov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rally
New
Undecided
Unassigned

Bug Description

Some sdn (Tungsten for example) automatically copy neutron port id into name field for cases where no name provided. For example when we create VM or when we add router port to network. OpenStack deployment with OVS leave name field empty in this case.

So when we use rally on OpenStack with Tungsten integration, we got following errors:

==> 2022-02-07 12:08:12.099 3887062 RALLYDEBUG rally_openstack.task.cleanup.manager [-] Cleaning up neutron port objects
==> 2022-02-07 12:08:12.626 3887062 RALLYDEBUG rally_openstack.task.cleanup.manager [-] Deleting neutron.port object s_rally_beff7a42_NfSsWR2K (e4395cbb-79e6-43c0-b0e1-e53642cdfd89)
==> 2022-02-07 12:08:14.115 3887062 RALLYDEBUG rally_openstack.task.cleanup.manager [-] Cleaning up neutron subnet objects
==> 2022-02-07 12:08:14.545 3887062 RALLYDEBUG rally_openstack.task.cleanup.manager [-] Deleting neutron.subnet object s_rally_beff7a42_nLMswV7T (3ae6d7d1-42ec-415d-9004-cf451ab17bbc)
==> 2022-02-07 12:08:15.067 3887062 DEBUG neutronclient.v2_0.client [-] Error message: {"NeutronError": {"type": "SubnetInUse", "message": "Unable to complete operation on subnet 3ae6d7d1-42ec-415d-9004-cf451ab17bbc: One or more ports have an IP allocation from this subnet.", "detail": ""}} _handle_fault_response /root/venvs/rally/lib/python3.8/site-packages/neutronclient/v2_0/client.py:262
==> 2022-02-07 12:08:15.206 3887062 DEBUG neutronclient.v2_0.client [-] Error message: {"NeutronError": {"type": "SubnetInUse", "message": "Unable to complete operation on subnet 3ae6d7d1-42ec-415d-9004-cf451ab17bbc: One or more ports have an IP allocation from this subnet.", "detail": ""}} _handle_fault_response /root/venvs/rally/lib/python3.8/site-packages/neutronclient/v2_0/client.py:262
==> 2022-02-07 12:08:15.377 3887062 DEBUG neutronclient.v2_0.client [-] Error message: {"NeutronError": {"type": "SubnetInUse", "message": "Unable to complete operation on subnet 3ae6d7d1-42ec-415d-9004-cf451ab17bbc: One or more ports have an IP allocation from this subnet.", "detail": ""}} _handle_fault_response /root/venvs/rally/lib/python3.8/site-packages/neutronclient/v2_0/client.py:262
==> 2022-02-07 12:08:15.378 3887062 ERROR rally_openstack.task.cleanup.manager [-] Resource deletion failed, max retries exceeded for neutron.subnet: 3ae6d7d1-42ec-415d-9004-cf451ab17bbc.: neutronclient.common.exceptions.Conflict: Unable to complete operation on subnet 3ae6d7d1-42ec-415d-9004-cf451ab17bbc: One or more ports have an IP allocation from this subnet.
==> Neutron server returns request_ids: ['req-93840993-8429-4114-9107-95f3cabc4ee1']

It happens, because router port for subnet isn't deleted. It isn't deleted, because it has name not matched with rally-XXXX-XXXX template and deletion code isn't executed for this kind of port:

https://opendev.org/openstack/rally-openstack/src/branch/master/rally_openstack/task/cleanup/manager.py#L170

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.