Commit Graph

449 Commits

Author SHA1 Message Date
ricolin eb2ce826ef Revert "Remove uwsgi by default"
This reverts commit 39aaeb3f32.

Change-Id: Ib607f3ecd5ada46ffe724fbc0d245d08f2a0fe01
2024-01-18 21:01:12 +08:00
Johannes Kulik f4cc70548a Make fetch-wheels PEP8 compliant
This is just a little cleanup.

Change-Id: I148369869e9aac1b3f4ba25d3780d6bca380d4c9
2023-12-05 23:22:49 +00:00
Vladimir Kozhukalov 6537fe480e Add nodesets.yaml and stop using tmpfs for docker
Change-Id: I6fa07a45f491e7101f85cb90731611409a279719
2023-12-05 17:06:42 -06:00
Zuul 235b8e9d65 Merge "Remove pyldap from pydep" 2023-11-02 18:25:06 +00:00
liyingjun 75b269d8d1 fix(nova): enable login ability for nova resizing or migrating
Login should be enabled for nova resizing or migrating between
hypervisors[1].

[1]: https://docs.openstack.org/nova/latest/admin/ssh-configuration.html

Change-Id: I1db692c3fbb371873ebe5432495130f4ecfdc930
2023-08-21 07:21:10 +00:00
okozachenko 82082bf82d Copy default configuration files to /etc/
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
2023-08-16 00:39:53 +03:00
Vladimir Kozhukalov 2f88cf4644 Fix build of those wheels which depend on python-nss
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
2023-07-13 03:25:03 +03:00
Vladimir Kozhukalov ce9fea8fe6 Fix building python-nss on Ubuntu Jammy
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
2023-07-12 22:45:24 +03:00
Vladimir Kozhukalov ec70407d68 Build jammy images
Change-Id: I639588a618816f6ff70a7736963589977bb36eb1
2023-07-11 19:34:19 +03:00
Vladimir Kozhukalov 7c3c53c375 Add more info to the /etc/image_info
Change-Id: I956985410f55293c998e75c9fa8960e2b9106d45
2023-06-16 20:30:51 +03:00
Vladimir Kozhukalov e09a032257 Fix setup-gate.yaml playbook
- Use roles from zuul-jobs
- Unpin docker python package version. It used
  to be pinned to 2.7 and it is incompatible
  with the latest docker api.
- Also do not build Ubuntu Bionic images which
  by default use Ussuri release (not supported).

Change-Id: I958677e3df88028d00ac0df812c0030419d517a7
2023-06-15 19:58:47 +03:00
Vladimir Kozhukalov c152ea081b Install dist packages before pip packages
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
2023-04-03 06:05:42 +03:00
Gage Hugo c4281d2291 Remove pyldap from pydep
The pyldap library was needed only through the queens release, which
we no longer support. This change removes the entry as well as
removes the checks for python-ldap for these older releases.

Change-Id: Id387d4d0bd901682d0aec87ef5e5ee784b9af10c
2023-02-16 06:03:04 +00:00
Vlad Gusev f725a1256a Install libldap-2.4-2 bindep library for the py3 ldap keystone profile
Change-Id: I86051fc48af907be05cfdd4fbb86d35aae704c4d
2022-12-06 18:18:46 +02:00
Zuul 5806885d68 Merge "Drop UWSGI from always being installed" 2022-11-22 22:56:15 +00:00
Sam Yaple 39aaeb3f32 Remove uwsgi by default
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
2022-11-18 16:44:58 +00:00
Gage Hugo 7dd55124c3 Add cryptography back for placement
The compute-kit jobs are currently failing in osh-images due to
placement not having cryptography available. At this time the
placement project does not specify cryptography in their
requirements, so in the meantime this change adds it back but
specifically for the placement project.

Change-Id: I4e7d8c81d3793d4d3b85b450ded673ad122dc266
2022-11-08 10:49:18 -06:00
Zuul 5688c6ffa3 Merge "Update fetch_wheels to add Accept header" 2022-10-06 04:10:38 +00:00
Zuul f3263f9505 Merge "Remove PYTHON3" 2022-10-06 03:59:13 +00:00
Zuul 2d422c3446 Merge "Do not always install libapache2-mod-oauth2" 2022-10-06 03:59:10 +00:00
Zuul 04f92fb2c7 Merge "Drop cryptography from dependencies" 2022-09-27 14:17:32 +00:00
Sam Yaple 2e4f6d555a Update fetch_wheels to add Accept header
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
2022-09-21 21:28:12 -04:00
Sam Yaple 4ff506ae5c Remove PYTHON3
The python2 is long dead and the PYTHON3 flag has been noop for a while.

Change-Id: Ia7be53e84090cc8b80e1dd5753ba1460ff454851
Related-Id: I3f4f60756887ad07229cf522803b30d4e16463cd
2022-09-21 21:28:12 -04:00
Sam Yaple 361fd6e104 Do not always install libapache2-mod-oauth2
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
2022-09-21 21:28:12 -04:00
Zuul 1f2b4cb18f Merge "Remove suse references from bindep" 2022-09-21 18:32:29 +00:00
Zuul 8ac5d338db Merge "Remove Git repo data from NoVNC and SPICE HTML5 dirs - Story: 2010049" 2022-09-20 18:03:31 +00:00
Gage Hugo fd4e6ac1e3 Remove suse references from bindep
As part of our effort to clean up unsupported linux distros, this
change removes the suse references in loci's bindep.txt.

Also removed a few python2 leftover references.

Change-Id: I9443721d0f2bd78ecee6d29e3d603be08e98e537
2022-09-20 12:44:17 -04:00
Mohammed Naser f156030190 Drop cryptography from dependencies
There is no need to always install it, projects will usually
have it listed in their requirements.txt anyways.

Change-Id: I50b92ea36ab2d4157a8ec9e118a7f49fbd8ede2f
2022-08-17 18:39:21 -04:00
Mohammed Naser 8b4e21b35f Drop UWSGI from always being installed
UWSGI was always being installed no matter the release,
we only use this inside Barbican so we'll install it in this
scenario only.

Change-Id: I76612794c1ba8dbc45b62dff00cee43c6ba10a34
2022-08-17 18:37:42 -04:00
Gage Hugo e77485f8b0 Bump centos version up to 9-stream
This change updates the version of centos that we currently
contain in the repository to 9-stream.

Change-Id: Ia4f4d6eaee6d9e272f5276ce961691fa980cd957
2022-08-02 11:40:36 -05:00
Gage Hugo 2537db07aa Refactor docker image task values
Due to an ansible upgrade, the docker_image tasks are currently
failing. This was due to a change in ansible, several values were
deprecated and moved/renamed.

This change modifies the docker_image task definitions to be
up-to-date with the latest ansible changes to fix the gate.

Change-Id: I653cd55256426f8fac3fce2fed460a14aa6b1d37
2022-07-25 15:58:03 +00:00
Zuul 9a3d79d4a4 Merge "Reduce build targets" 2022-06-15 16:55:38 +00:00
Mohammed Naser 9e7b71c304 Reduce build targets
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
2022-05-23 15:59:49 +00:00
Jeremy Lamb fe9caeebbb Remove Git repo data from NoVNC and SPICE HTML5 dirs - Story: 2010049
Change-Id: I9f8a81ed160a5d09b01e846b091d5bbb2bee1656
2022-05-23 03:28:09 +00:00
Gage Hugo 6441c2fc1f Update cloud archive to yoga for focal
This change updates the cloud archive version to yoga in the
ubuntu_focal dockerfile sources.list. This is to facilitate the
upgrade to the latest version of openstack.

Change-Id: I56bce55adde466ad0b175b39e9d7b2820f03bdb8
2022-05-04 15:45:09 +00:00
Zuul eb95b4adab Merge "Remove supported releases for placement" 2022-04-27 22:13:41 +00:00
Zuul effe0b875e Merge "Remove python2 references from requirements.sh" 2022-04-27 22:12:29 +00:00
Zuul ff2c43e85a Merge "Remove python2 workaround in cleanup.sh" 2022-04-27 22:12:27 +00:00
Zuul a32aca4dc5 Merge "Remove python 2 workaround in fetch_wheels.sh" 2022-04-27 22:12:02 +00:00
Zuul fd750e06a8 Merge "Remove python 2 workaround in fetch_wheels.sh" 2022-04-27 22:11:59 +00:00
Zuul 9eb4aa152f Merge "Remove ubuntu xenial image building" 2022-04-27 22:05:55 +00:00
Gage Hugo 5c88d13eae Update README
The README currently contains some information about base linux
distros that are either no longer used or older and not supported
by loci. This change removes the list of supported distros in
favor of a more generic description.

Change-Id: I106ca7de063cfd62060da7b47dc728b18575c705
2022-04-27 14:21:32 -05:00
Gage Hugo 804023692e Remove ubuntu xenial image building
This change removes the ubuntu xenial image building support since
it's quite old at this point and most services have moved on to
newer releases.

Change-Id: I5b87806d2f07c4d49ac994c0bda8d1e154e02e1d
2022-04-27 14:19:50 -05:00
Gage Hugo 2ad0531bb0 Remove python 2 workaround in fetch_wheels.sh
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
2022-04-27 11:02:56 -05:00
Gage Hugo 8e486b84cf Remove python 2 workaround in fetch_wheels.sh
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
2022-04-27 08:24:41 -05:00
Gage Hugo 6c1f0290d6 Remove python2 workaround in cleanup.sh
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
2022-04-27 08:22:10 -05:00
Gage Hugo 23a95c5e19 Remove python2 references from requirements.sh
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
2022-04-27 08:19:16 -05:00
Zuul f1cb5448b8 Merge "Remove trollius workaround" 2022-04-26 23:16:05 +00:00
Zuul 6e91f1e877 Merge "debian: stop building images" 2022-04-26 22:10:06 +00:00
Gage Hugo 8b514187cc Remove trollius workaround
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
2022-04-26 20:31:51 +00:00