Commit Graph

16 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 3cdcb1115f Fix linters issue and metadata
With update of ansible-lint to version >=6.0.0 a lot of new
linters were added, that enabled by default. In order to comply
with linter rules we're applying changes to the role.

With that we also update metdata to reflect current state.

Change-Id: I6a9986cd948dbeaf2847ea4dd04deed974f80d20
2023-07-11 21:43:23 +02:00
Dmitriy Rabotyagov 4e0d864ff0 Drop plugins from role requirements
Change-Id: I055ec8c40ede15ee0b0e3534550e4c166106eadc
2022-01-12 10:03:51 +00:00
Jonathan Rosser 06ac9563a4 Remove references to unsupported operating systems
All references to Gentoo, SUSE, Debian stretch and Centos-7  are removed.
Conditional tasks, ternary operators and variables are simplified where possible
OS specific variables files are generalised where possible

Change-Id: I2defac928ff0081b262ba31bdb9981274f13b32b
2021-03-17 08:36:24 +00:00
Jonathan Rosser 3ffa57d561 Remove support for Centos-7
Openstack-ansible does not support Centos-7 beyond Ussuri so drop
support for Victoria.

Depends-On: https://review.opendev.org/742166
Depends-On: https://review.opendev.org/742103
Change-Id: I6f72eb69f54ae780712831dbcb2f9151478e8b83
2020-10-05 18:08:11 +01:00
Jonathan Rosser a66fe0bca2 Remove Xenial support and CI jobs
OSA does not support Xenial beyond Rocky.

Change-Id: I5b0f1e251052d01c05f8be6c90b6483e57c364e4
2019-05-16 09:42:37 +00:00
Dmitriy Rabotjagov 39b986844f Drop Suse 42.3 support
Drop checks for suse 42.3 since it's support was dropped since stein.

Change-Id: Ifdeff3307a268cf97d4762809afa26589123391e
2019-05-12 13:30:19 +03:00
Mohammed Naser fdc5f44798 debian: add ci and update meta
This patch adds the Debian jobs for this role to make sure
it's always passing as well as updates the meta to reflect
it's support of Debian accordingly.

Depends-On: I135ea73604890eae5e9e2a7cdcab81b2b39ad426
Change-Id: I0708ae9b1c28a309873719228ded1b71a0fc5843
2019-04-07 13:30:08 -04:00
Jonathan Rosser 594ec63341 Add bionic to galaxy_info metadata
Change-Id: I76c226fef20ee68ff80f0ac3b20e07317ef8174c
2018-08-02 15:20:18 +01:00
Markos Chandras 107c21c220 SUSE: Add support for openSUSE Leap 15
Depends-On: https://review.openstack.org/#/c/578281
Change-Id: I21cf4143fb2489f4d5a0e7c78e32ba703d78faa2
2018-06-27 07:40:53 +01:00
Kevin Carter 815ece7454 Unify container network interfaces with networkd
Unify container network interfaces using Systemd Networkd for ubuntu,
centos, and openSUSE. This change allows the role to use a single way to
configure container networks.

Care has been taken to ensure we're able to cleanly upgrade to the new
capabilities within existing environments without breaking any feature
compatibility or causing any container restarts.

It's also worth noting that all of the pre/post networking up/down
script options have been converted to systemd "oneshot" services. This
retains the ability to run adhoc scripts post network availability
while also opening up this capability, which used to be ubuntu only,
to all of our supported operating systems.

> Our usage of `lxc-attach` was removed in favor of `nsenter` to fix a
  issue where multiple `lxc-attach` commands issued to a single physical
  host could result in a hang.

> Scripts that were being generated inline have been placed into
  template files. This solves a long standing memory consumption issue
  when creating lots of containers. The old shell tasks will now be 
  executed from a generated script. While this should also help with 
  debugging, the main driver is to ensure better system stability.

> A lot of cleanup has been done throughout the task files and
  templates. In the process of updating the role to use unified
  networking a lot of duplicate tasks, scripts, and processes have
  consolidated.

> Handlers have been added for network connection wait conditions and
  to various service restarts.

> The OSA plugins have been added to this role as a dependency. We
  rely on the connection plugins throughout the stack however we were
  doing a lot of workarounds to cater to the possibility of a deployer
  running this role without them. This change simply adds the plugins
  as a known dependency which allows for a more streamlined setup.

Change-Id: I5d3ddcfa11d575648a69a04f2fb30236c2c89da3
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-03-01 10:55:14 +00:00
Major Hayden 1d2840a6a8
Update minimum Ansible version
Change-Id: If6927aebeaa101909d9418a32041b7cc0138b5da
2018-02-15 10:22:59 -06:00
Jean-Philippe Evrard 43e842819c Add OpenStack-Ansible metadata
We need to add openstack ansible information in the role
metadata to be able to track role maturity. With it,
we can create a role maturity table and take decisions about
role deprecations.

Change-Id: I166785874665fe9879434432c96215da4033a18d
2017-10-11 08:32:14 +00:00
Markos Chandras ce700c1fad Add SUSE support
Add support for SUSE based distributions. We also update the bindep.txt,
run_tests.sh, tests-repo-clone.sh and Vagrantfile files from the
openstack-ansible-tests repository.

Change-Id: I9ac018ac1a94dac74a2ef213dccedf95b4272134
2017-05-15 14:04:42 +01:00
Andy McCrae ae22ddc970 Remove Trusty support from lxc_container_create role
Change-Id: Ib1c83be6ed07c3c804704c2419e32c4d50fce04e
Implements: blueprint trusty-removal
2016-12-15 12:38:59 +00:00
Kevin Carter 0c16334a2c
updated for lxc-container-create for multi-distro support
This change updates the lxc-container-create role to build lxc containers
using the download template. The build supports ubuntu 14.04/16.04 and
RedHat/CentOS 7 using the multi-distro framework.

This change is incorporating updates built into the lxc_hosts role. Once
merged this should unblock all work geared toward multi-distro support and
testing. The testing structure has been updated to match what is being done
in other roles.

A new file was created "manual-tests.rc" which assists in manual testing
by exporting the needed environment variables to run the role tests without
requiring everything to run through tox which has undesirable side-effects
when running tests that span multiple roles.

Change-Id: Iee304dd026e0865e0444259d2132122233d90f5f
Depends-On: Ie13be2322d28178760481c59805101d6aeef4f36
Co-Authored-By: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-05-03 15:15:34 -05:00
Kevin Carter 8f8cf55edd
IRR for lxc_container_create
The change moves the role out from the main repo lxc_container_create
repository and into its own standalone repository.

Items within this change:
  * The role has been updated to ensure it runs standalone.
  * Tests added to the role within tox.
  * Functional tests added to the role that can either be run
    via the run_tests.sh script or using tox.
  * dev requirements have been updated for testing usecases.
  * Docs added to both the README.rst file as well as the docs
    folder.

Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2015-11-03 08:00:45 -06:00