8f61307fa6
This combines a few error handling improvements fixing problems found by e2e K8s tests. 1. Logs on K8sNamespaceTerminating are no longer on WARNING but DEBUG level. This is because they're harmless, yet they can spam the logs when multiple namespaces are deleted, such as in e2e K8s tests. 2. 400 Bad Request is ignored on LB member creation. This happens when subnet got deleted in the meanwhile and the LB will be gone soon too. 3. 404 Not Found is ignored when subports are detached from a trunk. This can happen when some other thread already detached that port. If the request was just for a single port, then error can be safely ignored. In case of bulk request we don't really know which and how many subports are detached already, so on detach error we'll just proceed to delete ports and on errors attempt to detach them one-by-one. Change-Id: Ic11f15e44086f8b25380e20457f28c351403b4d9 |
||
---|---|---|
.. | ||
cmd | ||
cni | ||
controller | ||
handlers | ||
objects | ||
pod_resources | ||
tests | ||
__init__.py | ||
clients.py | ||
config.py | ||
constants.py | ||
exceptions.py | ||
health.py | ||
k8s_client.py | ||
linux_net_utils.py | ||
opts.py | ||
os_vif_plug_noop.py | ||
os_vif_util.py | ||
utils.py | ||
version.py | ||
watcher.py |