5 Commits

Author SHA1 Message Date
James E. Blair
98e92bdd46 Switch to uwsgi
Use the opendev uwsgi base image.  A few additional changes are
needed beyond the container switch:

* WSGI protocol says headers must be a python list.  Uwsgi is very
  literal about that and does not permit an iterable, so we coerce
  items() to a list.
* Add the zuul_storage_proxy package to the setup.cfg files list so
  it gets installed.
* Remove a debug print.

Change-Id: I801d8b37699af8b937cc68d32f2a85c50eb91eb9
2021-02-11 15:54:54 -08:00
James E. Blair
8f35ff5f0f Just use CLOUD_NAMES as env variable
CLOUD_NAMES vs CLOUD_NAME is a one character difference which may
be easily overlooked.  The split method will work even with only
one item and no ','.  And in Zuul we already have the convention
of describing an input that accepts one or more items with a plural
noun.

Change-Id: I28b8b6be2b536d627bf77665b5c3e583000efbda
2021-02-11 15:54:53 -08:00
James E. Blair
6a0e496a5b Log at info level
Change-Id: Ie8fc849dfaa21ee5c170c571aea0d7b061f8f339
2021-02-11 15:54:52 -08:00
James E. Blair
7b2cba8657 Make container name prefix more generic
Currently the proxy expects the container name as the first element
of the path.  It then adds a prefix followed by a "-" character to
the container name before using it.

To additionally support the case where no prefix is desired (so that
the path that the Zuul base job returns is the entire path used by
the proxy), remove the automatic addition of the "-" character.  This
means that if no prefix is supplied, then the path is used as given.

To obtain the previous behavior, add a "-" character to the end of
the CONTAINER_PREFIX environment variable.

Change-Id: Ia480a11f78621ea0b2417f4b47878640f52db5da
2021-02-11 15:54:51 -08:00
Tobias Henkel
bf54ed0b03
Initial import of zuul storage proxy
Change-Id: I75f3910095b669e502127b3870dba9616da0b3c8
2021-02-10 20:29:50 +01:00