Commit Graph

31 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 bb73290f44 Update supported operating systems
Remove centos-7
Remove suse
Update vagrantfile for debian buster

Change-Id: I5ebef1d635c0dd9569fc1a61d821d66864f16e15
2020-10-05 11:39:28 +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
Jonathan Rosser 3dd476137e Fix debian buster variables
These should reflect buster, not bionic

Change-Id: If617cd74a701d5a67ab695ebf82705df81291a85
2020-03-03 21:36:33 +00:00
Jonathan Rosser 1218bcb3bf Add vars for debian buster
including I3eb65347b4988d376e02d7f4ff111b88b5043fb5
and I79d673e5b1fe9b9b1999a558b323821ddee970a9 as these
changes depend on each other.

Change-Id: I0121507e2f3ba63ec4b54283b588579f80f38965
2020-02-27 20:26:38 +00:00
Andreas Jaeger 3e81eb747b Update openSUSE job
openSUSE 42.3 is dead, switch to 15 instead.

Make the job non-voting for now.

Change-Id: I037456e6444d0ce83293157e0f1e257ff496b1b6
2019-08-19 20:55:43 +02:00
Dmitriy Rabotyagov 881ce9756a Drop support for Ubuntu Xenial
Change-Id: Ia93aa66438b84a8c8a4f8ddaaab3d94952d387bf
2019-07-19 12:05:37 +03:00
Guilherme Steinmüller 29bd1ed281 debian: add support
This patch adds the Debian jobs for this role to make sure
it's always passing as well as updates the meta and creates
debian.yml var file to reflect it's support of Debian accordingly.

Change-Id: I2653aea2aebc95bfc67fe49bc66fb68a4f996170
2019-04-12 20:49:56 +00:00
Kevin Carter 2f76119d7a Set the dnsmasq aa profile to complain
If a stock aa profile exists for dnsmasq (SUSE, Ubuntu) the nspawn
deployment will fail due to the profile being strict. This change
sets the profile to complain, which allows the deployment to
succeed. The new tasks will detect a stock dnsmasq aa profile and
set it to complain if found.

Change-Id: Ie565b683d2f06e47f7a46497ce3c38d604a0fed6
Signed-off-by: Kevin Carter <kevin@cloudnull.com>
2019-02-09 12:54:24 -06:00
Kevin Carter ef4aef4802
Add path variable for different distros
This change removes the assumption that ip and iptables are always in
the same location on any distro by setting the specific tool path per OS
package manager type.

This adapts the pattern set here:
fc9a2d03dc/tests/roles/bootstrap-host/defaults/main.yml (L106-L118)

Change-Id: If7ddd8f2afb8c990f2b5117947f103626663ad21
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2019-01-31 11:07:33 -06: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 ca6fe7df8d Document adding "extra" networks
This change moves the hidden `container_extra_networks` options to the
defaults file and adds a blerb regarding how this functions.

Change-Id: I4d7a9f05cf8382d0b83dd0ce574f7f4ba3783a63
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-08-20 18:50:35 -05: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
Zuul d681a15af5 Merge "Remove dependency on EPEL" 2018-06-22 18:13:50 +00: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
Mohammed Naser de7a2395a4 Remove dependency on EPEL
The EPEL repositories currently conflict with the RDO packages,
this commit drops it from openstack_hosts so new installs do not
get it.

Change-Id: I84c9c3e915207a79a54f613a382f92a1c1064196
2018-06-07 13:57:58 -04:00
Kevin Carter 4552c56f2b Add a single variable for combined networks
The combined networks variable will allow deployers to set basic
container networks, default nspawn networks, and any "extra" networks a
deployer may need outside of a standard build.

Change-Id: I5346fdf81967d6eb7f69e61a187166c076ca4b60
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-06-01 22:08:55 +00: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
Kevin Carter 50d7cc82c5
Update nspawn hosts
Use the common roles throught this role to remove all of the boilerplate
code we had. The common modules do most of the heavy lifing.

Update to fix the resolve.conf issue with the image cache prep.

Add legacy image support and use smaller upstream images by default.

Now that suse supports systemd-networkd we can enable suse support in
nspawn.

Change-Id: I5f6ceb928f5c0902adf2e34f96a5998840400777
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-05-13 14:28:16 -05:00
Kevin Carter 4e28ef6127
Remove openssh server as a default package
The openssh server package is not needed, this change removes that extra
dep.

Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-02-14 19:05:44 -06:00
Kevin Carter bccb77c6af
Convert containers to use systemd-resolved
While the legacy resolveconf service is fairly stable this change
updates us to use more of the built-in services and removes additional
dependencies.

Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-02-14 18:49:13 -06:00
Kevin Carter e97c013f67
First commit
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-02-08 11:39:40 -06:00