Commit Graph

15 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 611fb2bf4c Deprecate OpenStack-Ansible nspawn repositories
Since nspawn support has been removed with [1] we now
start repositories deprecation process.

[1] https://review.opendev.org/c/openstack/openstack-ansible/+/782569

Depends-On: https://review.opendev.org/c/openstack/project-config/+/797723
Change-Id: I113f0f2b5befc4bca830c130d7f60e621c86798e
2021-06-23 17:22:41 +00:00
Jonathan Rosser cb736cbc02 Add vars file for ubuntu focal
Change-Id: I3e61f1dfa44ea6b612b5f12ffe704ec06ffddcad
2020-10-12 07:57:17 +00:00
Jonathan Rosser d591b0ddb9 Fix CI jobs
Remove centos-7 job
Mark centos-8 as non-voting
Rename ubuntu vars file to cover focal and bionic
Add functional jobs to gate as well as check
Fix linter errors

Change-Id: Iacdcda303d483617c6e94b815e2c5c1d65145f0d
2020-10-05 11:04:02 +00:00
Marcus Klein 660e1453ef Python 3 library is needed for uWSGI.
Since Train Python 3 is used by default and running uWSGI requires then
Python 3 libraries.

Change-Id: I56cb5a4db48b09e42f0407891860cf6275267e5b
2020-04-20 20:05:43 +02:00
Kevin Carter 2795982ba3 Install the timezone package by default
The timezone package is required in order to have the containers report
correct time the timezone package is required. This change install the
tz package across all of the distros we support.

Change-Id: I2aa2561cc6e2c71db0a16590f5d9dbab24b393d2
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-10-03 23:36:43 -05:00
Jesse Pretorius f3fe949711 Simplify inserting apt keys into nspawn image
Bionic requires a functioning gpg-agent to run apt-key add. This means
that gpg-agent must be working properly in the chroot when the nspawn
image preparation script runs.

Previous changes [1] have enabled apt-key to communicate with gpg-agent
during the nspawn_hosts role checks, however the cache prep fails almost
every time when nspawn_hosts is used within other role checks.

This is not a new issue, debian-installer is affected too [2].

This change adopts the same route as d-i, and simply copies the host
/etc/apt/trusted.gpg.d directory to the nspawn image, removing the
need for apt-key and in turn gpg-agent.

This is a re-implementation of https://review.openstack.org/588962
for nspawn.

[1] https://review.openstack.org/590431
[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851774

Change-Id: I3c56da445377d7ba27a623fb7ebe95c20d28a327
2018-08-25 21:12:51 +01:00
Kevin Carter d35a7c99cb
Ensure development libs are installed in containers
These development libs are required by some services to build and
start. This change adds the dev libs to the base image, which mirrors
the base lxc image .

Change-Id: If359aefbe5dfd57347e55465b8a7f990801501a5
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-08-18 18:00:54 -05:00
Kevin Carter 209b7e3b52
Ensure libpython is included in base container builds
the python libs are required to start uwsgi services and because the
container images are so minimal the basic libs need to be installed.

Change-Id: I01cf4222c27bda3945d506fbc31a68bc717d480e
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-08-18 02:43:13 -05:00
Kevin Carter cfb3f9e7cd
Set container create tasks to non-voting/fix pkg
There are some inter-dependencies here where the container tasks will
not pass until a few updates are in both here and elsewhere. This change
sets the container create tasks to non-voting until all of the required
updates get in.

Remove the aria2 requirement

While aria2 has some nice features, the get_url command can do most of
what we need and does so in a far more universal way. This change
removes the aria2 dependency and updates the aria2 tasks to use the
get_url module.

Change-Id: Iab422c718d789ef13b8ec55938fdb7e73e40061b
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-06-21 00:56:33 -05:00
Kevin Carter eececf267f Add trailing slash to copy files
Without the trailing slash the sync task will create a nested directory
for the target when is a directory. This change ensures we're copying
copying the directories correctly.

This behaviour has been documented in the defaults file.

Change-Id: I6965e132674238727d69606464f2140ec42d6434
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-05-21 04:49:35 +00:00
Kevin Carter d520e80462
Make host copying more selective
The host copy process was taking too much, this makes that process more
selective.

Change-Id: Ic25559d9b68b6208ffdbed020cc79bd6b3d52fdd
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-05-18 19:16:03 -05:00
Kevin Carter 559987522a
Update copy from host options
This change removes some more boiler plate and ensures all of the
required files are copied into the base container image.

Change-Id: I4f74364d0969363297b286ae8327291659d20a00
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-05-18 00:41:55 -05:00
Kevin Carter cc12447bfd
Add required packages back to the role
These packages were removed because they were thought not be required,
however they are.

Change-Id: I174d5f0311ea1ac54e14a58fa4603a135353c6cb
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-05-17 20:59:45 -05:00
Kevin Carter 556748bc4e
Document everything in config
Update container pkg list and use qgroups

Other roles within OSA require additional packages that were removed
from the base cache. This change puts those packages back.

Additionally this change implements qgroups which will resolve an issue
where the containers are spamming a reoccuring error message indicating
an issue with the loopback file system.

Change-Id: If658e5f332e4580cc51182ac92331a2ef91fbcb8
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-05-14 20:42:33 -05:00
Jean-Philippe Evrard 488a7ca5d2 Add Bionic testing
Now that bionic testing is added into the tests repos, we can
start testing it in the repo.

Depends-On: https://review.openstack.org/#/c/566959/
Change-Id: I669204cce8c671ae14a9758fee29c8ff58d29e73
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-05-14 19:34:17 +00:00