kuryr-kubernetes/kuryr_kubernetes/controller/handlers
Luis Tomas Bolivar 6d43ad4c78 Remove namespace leftover upon kuryr-controller restart
When a namespace is deleted, kuryr-controller is in charge of
deleting its associated openstack resources (net, subnet and ports)
as well as the associated KuryrNet CRD.

As removing OpenStack resources may take some time, if the
kuryr-controller is restarted by any different reason during that
process, the resources will be left behind as no new events for the
namespace (already deleted) will happen after the restart. This
patch fixes this problem by ensuring upon reboot that there are no
orphan KuryrNet CRDs for unexisting namespaces, and deleting them
in case there are (including its associated OpenStack resources).

Closes-Bug: 1848761

Change-Id: I0c4852f5bb816756cc1bf536354da20aa3948dc7
2019-10-21 16:45:10 +02:00
..
__init__.py Controller event handling pipeline 2016-11-03 13:08:29 +00:00
ingress_lbaas.py Reuse utils.get_lbaas_spec in lb handler 2019-09-03 14:30:03 +09:00
kuryrnet.py Ensure no KuryrNet addition is tried when namespace is not present 2019-10-04 14:26:42 +00:00
kuryrnetpolicy.py Skip exception in case kuryrnetpolicy CRD is already deleted 2019-02-19 12:03:39 +01:00
lbaas.py Avoid race between Retries and Deletion actions 2019-10-16 18:25:01 +02:00
namespace.py Remove namespace leftover upon kuryr-controller restart 2019-10-21 16:45:10 +02:00
pipeline.py Revert commits to use UID instead of SelfLink 2018-02-19 17:00:46 +09:00
pod_label.py Avoid race between Retries and Deletion actions 2019-10-16 18:25:01 +02:00
policy.py Ensure ports from pool do not reference deleted SGs/NPs 2019-10-04 18:32:37 +02:00
vif.py Avoid race between Retries and Deletion actions 2019-10-16 18:25:01 +02:00