executor: add extra kubectl port-forward debug and releasenotes

This change documents how the kubectl was not working and it adds
a log statement to help debug future issue.

Change-Id: Iaf6ca030365d9e4e768bca716568cb2d4289665d
This commit is contained in:
Tristan Cacqueray 2020-05-27 12:59:12 +00:00
parent ccfeb49fcc
commit fc10e59033
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,8 @@
---
fixes:
- |
In some cases (such as when an older version of kubectl is present on the executor,
or the kubectl on the executor is from OpenShift), streaming logs from Kubernetes or
OpenShift pods did not work.
The log streaming system has been corrected to work with a wider range of kubectl
versions and error logging has been improved.

View File

@ -355,6 +355,7 @@ class KubeFwd(object):
self.port = m.group(1) self.port = m.group(1)
else: else:
try: try:
self.log.error("Could not find the forwarded port: %s", line)
fwd.kill() fwd.kill()
except Exception: except Exception:
pass pass