This will allow us to shorten the values.yaml
in many cases.
This is disabled by default. Set COPY_DEFAULT_CONFIG_FILES=yes
to enable it.
Change-Id: I244c29844d3ceb29b73e9a60b284d900bbeeb4ec
In the https://review.opendev.org/c/openstack/loci/+/888351
we build python-nss separately because we need to
patch it before building. Then we moved the result
.whl file to the root directory.
Now let's add --find-links / to all pip wheel commands.
Change-Id: I5faca92eb229af989b4bf63e6e044e49c7bacb5a
The libnss3 headers in Ubuntu Jammy are compatible
with python-nss===1.0.1. Ubuntu Jammy itself
provides the binary package python-nss and
they apply the patch that renames RSAPublicKey/DSAPublicKey
types into PyRSAPublicKey/PyDSAPublicKey.
This change applies the same patch before
building python-nss wheel.
Change-Id: I5211aac7b6a3bbc1f1b74e8662170dc8932525f9
Sometimes we need dist packages before
installing pip packages. For example
we might want gcc to be able to install
some pip packages from source.
Change-Id: I820a35f61999acbbed40a83b33ea523a0c15fcc6
Not all deploys will use uwsgi by default but there is no way to disable
it currently. Since uwsgi itself isnt truly a python app (just a C
program with a python building shim).
The user will still be able to install binary package based uwsgi or
include uwsgi in the extra pip packages to install if they wish to.
Related-Id: I76612794c1ba8dbc45b62dff00cee43c6ba10a34
Change-Id: I15008d41633168fda31e061003ccf4681cade68e
A private registry run from docker.io/registry:2 will use the Accept
content type added. This allows private repos to work:
WHEELS=192.168.1.50:5000/privateloci/requirements:ubuntu
Also remove the simple distutils function we used ahead of its removal
in python3.12
Change-Id: I7482e9097a7c0a5b332907c9e5849f2fe48af473
The python2 is long dead and the PYTHON3 flag has been noop for a while.
Change-Id: Ia7be53e84090cc8b80e1dd5753ba1460ff454851
Related-Id: I3f4f60756887ad07229cf522803b30d4e16463cd
This package is unavailable for 22.04 (the current LTS version of
Ubuntu). It is in 22.10 and may be backported to 22.04 through the
backports repo, but currently there is no prebuilt trusted source for
this package on 22.04.
This package is getting deployed on all ubuntu systems. In my opinion,
it should not have been merged, but we can gate the install around a
PROFILE='mod_oauth2' rather than revert the change entirely.
Related-Id: Ib3eac4269f7ac8365623f95a81b07a6436464ed0
Change-Id: I282b7b0aefa8aabc1f5c6495564d13b70cd0ec5d
OpenSUSE LEAP is currently not in use by any known downstream
users and it has been broken for quite sometime, leaving the gate
in a broken state and unable to land any code. There's no active
maintainer for it as well.
Debian support was added by us (VEXXHOST) but we decided that
we're not going to continue using it and move towards Ubuntu, so
we do not want to maintain it, as well as that it is building images
for Train only.
It also updates the README file accordingly as well as includes
focal in there which has been recently added.
Change-Id: Ideb497c169828184d301b6be4359a7c2228aa444
This change removes an import workaround for python 2 in the
fetch_wheels script that is no longer needed since openstack
has moved away from python 2. This is part of the effort to
remove all the python 2 workarounds in the loci repo.
Change-Id: Icccec48297cdd18577ec3fb28efa173e3a7ef000
This change removes a workaround to handle python 2 vs python 3
in the fetch_wheels.sh script. This is part of the effort to
remove the python 2 workarounds and references in the loci repo.
Change-Id: I7176d665548a14442b06214e450e7b17e54dd85d
This change removes a workaround for python 2 in the cleanup.sh
script. This is part of the effort to remove the python 2
handling in the loci repo.
Change-Id: I7edf860a0b035d91aa9a3f8e2e3af1e71ce61065
This change removes the python 2 references and workarounds from
the requirements.sh script. This is part of the effort to remove
the python 2 uses and workarounds from the loci repository.
Change-Id: I23271067587dff938c3bcce4f798db8dc33a428b
The workaround for trollius appears to be no longer needed since
openstack has moved away from python 2. This change removes the
logic to handle removing trollius since it's no longer present
in upper-constraints.
Change-Id: Icd832edffec2cea907276480fd8c67e44459ad90
This package requires a version of libfdkafka-dev that is too old inside
the distributinos to be able to build the wheel. In amd64, it has
wheels on PyPI so it doesn't attempt to build it but it fails to build
it inside an aarch64 system.
Change-Id: If0a90919cdddaf91a67ce96646dea87cf0b9632c
Without CPUCOUNT=1, uwsgi frequently fails to build in
certain environments. Once this was implemented, the
builds were stable again.
Change-Id: If85687046297c582b39ca591b21e93c76b7de876
mod_oauth2 is needed to enable oauth2 as mod_auth_oidc is
deprecating that feature. It's also not included by default
in the repos so we have to script installing it.
Change-Id: Ib3eac4269f7ac8365623f95a81b07a6436464ed0
This patch makes a change to allow LOCI to dynamically
determine the authentication server of the registry by
grabbing it from WWW-Authenticate if we get an unauthorized
request and then re-issue the request again with a token
afterwards.
Change-Id: Icb5eb390d64a944c6ad46c10581980076befda41
Current latest 20.8.0 have updated embedded pip 21.2.4 and setuptools
58.4.8 incompatible with some of constrainted packages.
Change-Id: I81ec48dbd123e6f24ff05d64906d47c31ae693f7
Also fixes related issue with distutils installation for Debian Stretch
and Ubuntu Xenial with py3: unlike in Bionic, distutils is installed with
python3 and python3-distutils package is not available in these distributions.
Run Debian build with py3 against stable/train, as master requires at
least python3.6, not available for distribution out of box.
Also increases job timeout to 5400 due to increased amount of builds.
Change-Id: I04c9253af80d941afb45231bee20f7bb1c4a96d4
With requirements image built with KEEP_ALL_WHEELS pip prefers to
download wheel from index.
With this commit and KEEP_ALL_WHEELS=yes during a component image
build packages will be installed from local wheels only. This brings
a requirement to ensure all wheels are present - in the case when
PIP_PACKAGES is provided to component image build, it should be also
passed to requirements image build.
Change-Id: Iea72ee68aa59f2fea2c82a98f7f637c4476f7d2a
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
opendev luminous ceph mirror is no longer available for xenial ocata
build, thus using original location.
Setting locale to resolve salt installation failure for master.
Change-Id: I8b25d7ddf5432de65cfd814193e10afee516fd1a
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
At the moment, the only missing piece of being able to build
multiarchitecture images is the fact that loci does not support pulling
an image that has a 'fat manifest' (i.e. pointing at many different
images of different architectures but with the same name, built using
buildx).
This patch adds support to fetch-wheels in order for it to be able to
understand how these manifests work and download the correct one for the
architecture that is being built.
This has been tested locally here in our environments and successfully
produces multiarchitecture images using docker buildx.
Change-Id: I5ea132d12fec50b4c2cddd8b8c7c1f251ee2c30b
New pip resolver is being released with pip 20.3 and does not support
unnamed constraints. Instead of using pip functionality to handle
unnamed constraints we'll instead first build corresponding wheels,
determine their versions and substitude unnamed constraints with named
ones in upper-constraints.txt. They'll be fed to general wheel build
afterwards and used by wheel bundle consumer.
Change-Id: Ie2acf93d4c91c6bbf3a3777b6ee697253207e2ef
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
If KEEP_ALL_WHEELS flag is not False, keep all packages specified in
upper-constraints.txt together with their dependencies.
Change-Id: I79051757780eabba15a2995fa8eaece0ff459f9e
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
The patch adds KEEP_ALL_WHEELS set to False by default.
The flag allows to do not remove wheels after built of
requirement image. This is useful where reproducibility
of builds with the same WHEEL image is needed as will allow
to keep 3rd party libs (not specified in upper-constraints.txt)
file with same versions.
Change-Id: I00fd3df2ba46072b3f19c9d08f69bb3c1f53d01f
Using urllib2.request.urlopen() from python3 will meet the IncompleteRead error.
Add an exception to avoid it.
Story: 2007474
Task: 39180
Change-Id: I2b60a81168f5c47eab316d2be31a4fe3ba9c2254