kuryr-kubernetes/kuryr_kubernetes
Michał Dulko 84ad28ef65 Clean up watch resources after watcher.stop()
We were assuming that watcher threads will be cleaning up after
themselves - i.e. will remove paths from Watcher._watching dict on
Watcher._stop_watch(). Turns out _stop_watch() is killing the threads in
a hard way using thread.stop(). This means that paths are never removed
from Watcher._watching dict and on restart (i.e. Watcher.start()), the
method considers that there is no path that we're not already
processing and does nothing.

This commit fixes that by cleaning up Watcher._watching dict in
Watcher._stop_watch() method.

Closes-Bug: 1790912
Change-Id: I17baaab1769ca5882f0b8edf496f92ac39507969
(cherry picked from commit 346f76292a)
2018-09-24 06:59:09 +00:00
..
cmd CNI split - introducing CNI daemon 2017-11-21 08:50:04 +01:00
cni Fix compatiblity with old Pod annotation format 2018-08-16 17:28:55 +02:00
controller Fix small typo in controller/handlers/lbaas.py 2018-09-13 08:38:48 +00:00
handlers Merge "Log the exception-info when an error raises in hanlder" 2018-05-16 10:13:14 +00:00
objects Change Pod annotations format to o.vo 2018-08-01 15:30:42 +02:00
platform OCP-Router: Fix path route to support subpath 2018-07-23 18:06:36 +03:00
tests Clean up watch resources after watcher.stop() 2018-09-24 06:59:09 +00:00
__init__.py Implement Guru meditation reports 2017-04-13 03:19:08 +00:00
clients.py Use K8s API LB IP instead of HOST_IP in DevStack 2018-07-17 10:40:02 +02:00
config.py Add namespace isolation for services 2018-08-06 19:33:55 +02:00
constants.py Implement NPWG multi-vif driver 2018-08-09 17:31:21 +08:00
exceptions.py Implement NPWG multi-vif driver 2018-08-09 17:31:21 +08:00
k8s_client.py Namespace deletion functionality for namespace_subnet driver 2018-06-07 13:13:57 +00:00
linux_net_utils.py Remove log translations 2017-03-28 15:13:49 +08:00
opts.py Get subnet_caching_opts from utils 2018-08-16 08:07:59 -04:00
os_vif_plug_noop.py Add MACVLAN based interfaces for nested containers 2017-06-12 13:14:12 +01:00
os_vif_util.py fix typos 2018-06-21 18:43:08 +08:00
utils.py Fix compatiblity with old Pod annotation format 2018-08-16 17:28:55 +02:00
version.py Implement Guru meditation reports 2017-04-13 03:19:08 +00:00
watcher.py Clean up watch resources after watcher.stop() 2018-09-24 06:59:09 +00:00