kuryr-kubernetes/kuryr_kubernetes/tests
Michał Dulko 2141dba99c KuryrPort cleanup: Fix issue of subport not found
It can happen that during the cleanup of KuryrPort when Pod is already
gone we'll fail trying to find the parent port ID. We have a bug that in
this case finalizing of KuryrPort fails.

This commit changes the way we look for the hostIP of the pod to
actually look up a node using the info from KuryrPort CRD. If this fails
(node removed?) we try querying OpenStack API to get this information.
If this fails too, we just don't pass hostIP to mocked Pod.

Change-Id: I72aea5713f90c8df2f5d0269fa83b8fdd5220c59
2023-04-25 12:46:08 +02:00
..
unit KuryrPort cleanup: Fix issue of subport not found 2023-04-25 12:46:08 +02:00
__init__.py cookiecutter commit for kuryr-kubernetes 2016-05-22 08:54:07 +03:00
base.py Prevent pyroute2.IPDB threads leaking 2017-11-17 12:30:54 +01:00
fake.py Added method for creating k8s events object. 2021-09-15 13:52:12 +02:00