zuul/zuul/lib
Felix Edel 8db6b6113a
Look up worker_zone for log streaming from executor
Currently, we are looking up the worker_zone for the log streaming from
the BuildRequest's path in ZooKeeper. This is a problem for unzoned
builds as those builds don't provide a zone information in their path
(zone=None).

Due to this, the log streaming won't use the FingerGateways and instead
always falls back to use the direct connection to the executor. This
works as long as the executor is located in the same region as zuul-web,
but in other cases the log streaming is broken.

To fix this, the executor will now store its zone information in the
worker_info of the BuildRequest when accepting the BuildRequest. In
the streamer_utils library we will use this zone information instead of
the zone from the ZooKeeper path.

Co-Authored-By: Simon Westphahl <simon.westphahl@bmw.de>
Change-Id: I63b148fa29e05157fce032d0f41b909da8a11e87
2022-02-24 20:50:03 +01:00
..
__init__.py Initial commit. 2012-05-29 14:49:32 -07:00
ansible-config.conf Add boto3 to default executor venv packages 2021-04-23 16:10:58 +02:00
ansible.py Cleanup Zuul's stdout/stderr output 2021-06-04 11:42:02 -07:00
auth.py Bump pyjwt to 2.0.0 2021-01-14 12:35:18 +00:00
capabilities.py OIDCAuthenticator: add capabilities, scope option 2020-03-27 16:47:21 +00:00
collections.py Implementation of Zookeeper backed event queues 2021-03-18 09:24:07 +01:00
commandsocket.py Add zuul-scheduler tenant-reconfigure 2022-02-08 14:14:17 -08:00
config.py Add gitlab disable_connection_pool option 2021-10-14 16:29:50 -07:00
connections.py Add a model API version 2022-01-27 12:19:11 -08:00
dependson.py Be more liberal with Depends-On: parsing 2021-08-30 15:59:51 +10:00
encryption.py Store secrets keys and SSH keys in Zookeeper 2021-04-14 08:22:07 +02:00
filecomments.py Make github file annotation levels configurable via zuul return 2020-03-06 08:27:48 +01:00
fingergw.py Make a global component registry 2022-02-14 10:58:34 -08:00
http.py Add TCP keepalive to gitlab 2021-10-05 15:08:56 -07:00
jsonutil.py Remove toDict from FrozenJob 2021-10-27 16:57:22 -07:00
keystorage.py Use sort_keys with json almost everywhere we write to ZK 2021-11-12 15:50:02 -08:00
log_streamer.py Replace deprecated Thread.isAlive() with Thread.is_alive() 2020-06-01 12:49:07 +02:00
logutil.py Identify cherrypy requests in logs 2022-02-02 16:16:27 -08:00
monitoring.py Add readiness/liveness probes to prometheus server 2021-12-09 07:37:29 -08:00
queue.py Improve test output by using named queues 2021-03-24 07:39:15 +01:00
re2util.py Remove ununecessary shebangs 2020-05-18 19:10:33 +02:00
repl.py Add repl server for debug purposes 2019-06-21 16:12:03 +00:00
result_data.py Support emitting warnings via zuul_return 2020-08-31 11:54:46 +02:00
statsd.py dict_object.keys() is not required for *in* operator 2018-12-03 12:04:55 +05:30
streamer_utils.py Look up worker_zone for log streaming from executor 2022-02-24 20:50:03 +01:00
strings.py Cleanup empty secrets dirs when deleting secrets 2021-10-19 09:38:21 -07:00
tarjan.py Add optional support for circular dependencies 2021-03-01 19:42:56 +01:00
times.py Make time estimation synchronous 2021-11-09 21:07:05 +00:00
varnames.py Block connection related variables 2021-06-24 06:24:23 -07:00
yamlutil.py Merge "Disable aliases in inventory.yaml for better readibility" 2021-09-29 16:41:44 +00:00