The pre-up-down oneshot service template was mistakenly being written to
the same path as the post-up-down oneshot service file.
Change-Id: Iba966b14c97cc3bfc0d6effe7a3df7b588639cfb
This patch removes a task which adds an entry to /etc/hosts for
the container hostname / 127.0.1.1.
Some services, such as rabbitmq, require that the ip address they
are configured to listen on resolves to a hostname with the same
ip. Before this patch there were two /etc/hosts entries for the
hostname of each container, 127.0.1.1 and the container mgmt
network address.
This patch ensures that the /etc/hosts file is unambiguous and
always resolves the container hostname to the mgmt network ip
address.
Change-Id: I900bda8031d7b0798f73adf8985e64d4535be769
OpenSUSE Leap 15.0 now ships with lxc 3.1 which changed two config
options:
1. lxc.kmsg was removed
2. lxc.pts was renamed to lxc.pty.max
This change updates these two options in the container config.
Change-Id: I7b4c657e9216b5e3926672b76cb370256b98ce3c
Depends-On: I8a94f340b8866f3369cebb5950dea873f5d2fece
Signed-off-by: Nicolas Bock <nicolas.bock@suse.com>
Add file to the reno documentation build to show release notes for
stable/stein.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.
Change-Id: I3e9d08a943fea462bfb9fe861e5a5c8e7e0a2886
Sem-Ver: feature
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
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I0948580a0a76a70d8276ead61de95c1965a1d324
Closes-Bug: #1801657
This patch adds support for this role to be able to deploy on
Debian Stretch.
Change-Id: I4ee130917373c643ae80bab7a778cc6f35868dc8
Needed-By: I135ea73604890eae5e9e2a7cdcab81b2b39ad426
The jobs seem to be broken right now and we can't land any code
in this repo for quite sometime because of it. This patch moves
it to non-voting until it's fixed.
Change-Id: I14bb4a2b837c3668b4748a8954028d66faf686e2
sphinxmark is no longer compatible with the latest release of Sphinx
which is causing all of our documentation jobs to fail. This patch
removes it as our current usage of openstacktheme for documentation
already provides watermarks for current branch and notices for which
branch the documentation covers.
Change-Id: I1735c255b3717dc8e82ce97c23c8ac188ff28128
Required to support Gentoo is the ability to bind mount a new shared
directory. In order to support this, _lxc_container_bind_mounts has
been created for use in per-distro variables. For Gentoo the new bind
mounts allows the sharing of package data, shrinking both the container
size and the time needed to install packages.
Also needed was the creation of the `sysctl_path` variable as Gentoo
installs sysctl to an alternate location.
Change-Id: I8c20631aff9ee30289ef2f7f862ba0d4e1bb4569
This patch updates the container interface template to disable DHCP routes,
including the default route thru eth0/lxcbr0, when a gateway address override
is set.
Change-Id: I3ec0b8ddc68fc30aff40e80face9e3a6b1ffd4bc
Partial-Bug: #1810319
Depends-On: https://review.openstack.org/629309
In Ica79472568799098ebf83c6cefc585f117975f37 some incorrect
variable names were used. This patch changes the variable
names to suit their purpose and ensures that they are used
consistently throughout the role.
Change-Id: If9e912641b5b6cb7791221b40dd4d56e215c2b98
openstack-dev was decomissioned this night in https://review.openstack.org/621258
Update openstack-dev to openstack-discuss
Change-Id: I829dad86b385d2b7eb53f7f94ca3f1c4480b634d
===
[DEPRECATION WARNING]: Using tests as filters is deprecated.
Instead of using `result|search` use `result is search`. This
feature will be removed in version 2.9.
===
Change-Id: Id2f8065cd81cd05c36fcbc33bb9c48b6574d30d1
This code was put in to handle upgrade and transitions from Queens
to Rocky and it is no longer necessary in Stein.
Change-Id: Iffc453ccb8af5d66e556da8427eb4fec1c2133ca
In RHEL-based operating systems, the update will actually attempt
to update every single package in the system which can result in
bad things (i.e. updating services when they're not supposed to).
The intention was to do the same as the apt-get update which simply
updates the repos. however this is not necessary in CentOS.
Change-Id: I5a1f86899406e125b3a790e2e85ce36d73fbc55e
The 'Ensure containers have access RO cgroups' will currently add the
same line to an lxc container's config file on every run of the role.
Add a regular expression to the task to check if the line to be inserted
already exists in the file, and if so, don't insert it again.
Change-Id: I5ac57bd59ea943c019dd0a5530c8246284b33269