Bug 1759973

Summary: Kuryr - occasional "BadRequest: Invalid input for operation: Non unique UUID for subport" when namespace gets deleted
Product: OpenShift Container Platform Reporter: Michał Dulko <mdulko>
Component: NetworkingAssignee: Michał Dulko <mdulko>
Networking sub component: kuryr QA Contact: Jon Uriarte <juriarte>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: gcheresh, juriarte, ltomasbo
Version: 4.2.0   
Target Milestone: ---   
Target Release: 4.2.z   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1759971 Environment:
Last Closed: 2019-10-30 04:44:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1759971    
Bug Blocks:    

Description Michał Dulko 2019-10-09 14:25:43 UTC
+++ This bug was initially created as a clone of Bug #1759971 +++

Description of problem:
This traceback can be seen in kuryr-controller when namespace gets deleted:

2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool [-] Error removing subports from trunk: f392a842-87c2-4db0-a261-f6084bd7f0ef: BadRequest: Invalid input for operation: Non unique UUID
 for subport: '3505b133-83f6-407b-a54a-4557dd3934cd'.
Neutron server returns request_ids: ['req-fcf04b5f-872e-4c1f-bb71-2c16cc5eb188']
2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool Traceback (most recent call last):
2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool File "/usr/lib/python2.7/site-packages/kuryr_kubernetes/controller/drivers/vif_pool.py", line 984, in delete_network_pools
2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool self._drv_vif._remove_subports(neutron, trunk_id, ports_id)
2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool File "/usr/lib/python2.7/site-packages/kuryr_kubernetes/controller/drivers/nested_vlan_vif.py", line 225, in _remove_subports
2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool {'sub_ports': subports_body})
2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 2136, in trunk_remove_subports
2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool return self.put(self.subports_remove_path % (trunk), body=body)
2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 363, in put
2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool headers=headers, params=params)
2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 331, in retry_request
2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool headers=headers, params=params)
2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 294, in do_request
2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool self._handle_fault_response(status_code, replybody, resp)
2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 269, in _handle_fault_response
2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool exception_handler_v20(status_code, error_body)
2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 93, in exception_handler_v20
2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool request_ids=request_ids)
2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool BadRequest: Invalid input for operation: Non unique UUID for subport: '3505b133-83f6-407b-a54a-4557dd3934cd'.
2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool Neutron server returns request_ids: ['req-fcf04b5f-872e-4c1f-bb71-2c16cc5eb188']
2019-10-08 10:58:25.306 1 ERROR kuryr_kubernetes.controller.drivers.vif_pool

Version-Release number of selected component (if applicable):
4.2

How reproducible:
Occasional

Steps to Reproduce:
1. Run openshfit-tests suite

Actual results:
From time to time you'll see that error in the logs

Expected results:
No error

Additional info:

Comment 2 Jon Uriarte 2019-10-25 14:42:04 UTC
Verified on OCP 4.2.0-0.nightly-2019-10-25-021846 build on top of OSP 13 2019-10-01.1 puddle.

release image: registry.svc.ci.openshift.org/ocp/release@sha256:8f97aa21e1c0b2815ec7c86e4138362940a5dcbc292840ab4d6d5b67fedb173f

Could not find the traceback described in the BZ ("BadRequest: Invalid input for operation: Non unique UUID") in the kuryr-controller
logs after running K8s NP upstream tests and openshift/origin e2e kubernetes/conformance tests.

Comment 4 errata-xmlrpc 2019-10-30 04:44:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:3151