-
Bug
-
Resolution: Done
-
Minor
-
None
-
4.12, 4.11, 4.10
-
-
-
Low
-
None
-
ShiftStack Sprint 224, ShiftStack Sprint 225, ShiftStack Sprint 226, ShiftStack Sprint 227, ShiftStack Sprint 228
-
5
-
False
-
-
None
This is a clone of issue OCPBUGS-577. The following is the description of the original issue:
—
If there was any SDK exception while adding Subnet to the Router
e.g. 504 Gateway Time-out, no router_id would be returned causing
the Kuryr controller to restart when trying to create an event with
the unbound variable router_id and producing the following traceback:
2022-08-24 17:06:17.946 1 ERROR kuryr_kubernetes.controller.managers.health openstack.exceptions.HttpException: HttpException: 500: Server Error for url: http://10.46.22.148:9696/v2.0/routers/9b31359e-812d-4eb3-a171-29117bec9fd4/add_router_interface, Request Failed: internal server error while processing your request. 2022-08-24 17:06:17.946 1 ERROR kuryr_kubernetes.controller.managers.health 2022-08-24 17:06:17.946 1 ERROR kuryr_kubernetes.controller.managers.health During handling of the above exception, another exception occurred: 2022-08-24 17:06:17.946 1 ERROR kuryr_kubernetes.controller.managers.health 2022-08-24 17:06:17.946 1 ERROR kuryr_kubernetes.controller.managers.health Traceback (most recent call last): 2022-08-24 17:06:17.946 1 ERROR kuryr_kubernetes.controller.managers.health File "/usr/lib/python3.6/site-packages/kuryr_kubernetes/handlers/logging.py", line 38, in __call__ 2022-08-24 17:06:17.946 1 ERROR kuryr_kubernetes.controller.managers.health self._handler(event, *args, **kwargs) 2022-08-24 17:06:17.946 1 ERROR kuryr_kubernetes.controller.managers.health File "/usr/lib/python3.6/site-packages/kuryr_kubernetes/handlers/retry.py", line 85, in __call__ 2022-08-24 17:06:17.946 1 ERROR kuryr_kubernetes.controller.managers.health self._handler(event, *args, retry_info=info, **kwargs) 2022-08-24 17:06:17.946 1 ERROR kuryr_kubernetes.controller.managers.health File "/usr/lib/python3.6/site-packages/kuryr_kubernetes/handlers/k8s_base.py", line 90, in __call__ 2022-08-24 17:06:17.946 1 ERROR kuryr_kubernetes.controller.managers.health self.on_present(obj, *args, **kwargs) 2022-08-24 17:06:17.946 1 ERROR kuryr_kubernetes.controller.managers.health File "/usr/lib/python3.6/site-packages/kuryr_kubernetes/controller/handlers/kuryrnetwork.py", line 99, in on_present 2022-08-24 17:06:17.946 1 ERROR kuryr_kubernetes.controller.managers.health f'Error adding Neutron subnet {subnet_id} ' 2022-08-24 17:06:17.946 1 ERROR kuryr_kubernetes.controller.managers.health UnboundLocalError: local variable 'router_id' referenced before assignment 2022-08-24 17:06:17.946 1 ERROR kuryr_kubernetes.controller.managers.health
- clones
-
OCPBUGS-577 unbound router_id variable while creating event
- Closed
- is blocked by
-
OCPBUGS-577 unbound router_id variable while creating event
- Closed
- links to