Pin pykube-ng and fix the CI

This change tries to fix the following issue:
  kubernetes.config.config_exception.ConfigException: Invalid kube-config file. No configuration found.

This change also provides input to the wsdump test to prevent the
command from hanging when testing the console stream connection.

Change-Id: I4880e0420b7a66639258aa84a8d61b5620313ee3
This commit is contained in:
Tristan Cacqueray 2022-06-27 19:15:11 +00:00
parent 88d532ea6e
commit 63685df30b
2 changed files with 4 additions and 3 deletions

View File

@ -164,9 +164,10 @@
delay: 1
- name: connect to console-stream
command: |
wsdump -r --eof-wait 5 -t '{"uuid":"{{ _job_uuid.stdout_lines[0] }}","logfile":"console.log"}' {{ zuul_ws_url }}/api/tenant/local/console-stream
shell: |
(sleep 60; echo "") | wsdump -r -t '{"uuid":"{{ _job_uuid.stdout_lines[0] }}","logfile":"console.log"}' {{ zuul_ws_url }}/api/tenant/local/console-stream
register: console_stream
failed_when: false
- name: show console stream
debug:

View File

@ -3,4 +3,4 @@ kopf<1.31.0
kubernetes
jinja2
pymysql
pykube-ng
pykube-ng<22.6.0