Role lxc_container_create for OpenStack-Ansible
Go to file
Kevin Carter a372183af9 Add lxc.haltsignal to container configs
This change adds the lxc.haltsignal option to the container config which
ensures containers are gracefully stopped but quickly.

Presently, when a container is restart they can hang for 20 - 30 seconds
which is due to the fact that the default stop signal is SIGPWR.
While the hang when stopping a container is not 100% reproducible in all
environments it can be seen when simply executing `lxc-stop`. If the
user were to stream the container journal while stopping the container
it's would be seen that the container hangs when trying to shutdown some
systemd services. If the `lxc-stop` command is executed a second time the
container is stopped more forcibly with SIGRTMIN+3. This change is using
an example stop signal from the lxc documentation [0] which is
implementing a Real-time signal, SIGRTMIN+n. More on the signal used can
be found here [1].

[0] http://manpages.ubuntu.com/manpages/xenial/en/man5/lxc.container.conf.5.html
[1] http://manpages.ubuntu.com/manpages/xenial/en/man7/signal.7.html

Change-Id: I01e82eabf17d2ac5a89c13ef56616fd1fe0607dd
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-03-17 17:16:15 +00:00
defaults Fix 'properties' is undefined errors 2018-03-16 22:00:36 -04:00
doc Updated from global requirements 2018-03-15 07:30:04 +00:00
examples [DOCS] Move playbook example to separate file 2016-08-12 09:29:13 -05:00
files Unify container network interfaces with networkd 2018-03-01 10:55:14 +00:00
handlers Flush entire interface rather than just routes 2018-03-07 04:02:25 +00:00
meta Unify container network interfaces with networkd 2018-03-01 10:55:14 +00:00
releasenotes Always create containers with fixed MAC addresses 2018-03-06 17:00:36 +00:00
tasks Add lxc.haltsignal to container configs 2018-03-17 17:16:15 +00:00
templates Merge "Always create containers with fixed MAC addresses" 2018-03-07 00:07:39 +00:00
tests Merge "Always create containers with fixed MAC addresses" 2018-03-07 00:07:39 +00:00
vars Unify container network interfaces with networkd 2018-03-01 10:55:14 +00:00
zuul.d zuul: Add missing CentOS and openSUSE jobs 2018-03-02 15:40:55 +00:00
.gitignore Updated from OpenStack Ansible Tests 2017-06-22 15:19:00 +00:00
.gitreview New git dotfiles for independant repository 2015-11-26 00:43:02 +00:00
CONTRIBUTING.rst Update the outdated links 2018-02-27 13:45:28 +08:00
LICENSE IRR for lxc_container_create 2015-11-03 08:00:45 -06:00
README.rst Update the outdated links 2018-02-27 13:45:28 +08:00
Vagrantfile Updated from OpenStack Ansible Tests 2018-01-22 16:53:42 +00:00
bindep.txt Updated from OpenStack Ansible Tests 2017-12-06 00:05:32 +00:00
manual-test.rc Use centralised test scripts 2016-09-27 16:16:22 +01:00
run_tests.sh Updated from OpenStack Ansible Tests 2017-11-10 13:15:03 +00:00
setup.cfg Update URLs in documents according to document migration 2017-07-14 09:35:05 +08:00
setup.py Updated from global requirements 2017-03-02 11:51:15 +00:00
test-requirements.txt Updated from global requirements 2018-03-13 07:11:38 +00:00
tox.ini tox.ini: Expose USER environment variable to execution environment 2018-03-15 17:56:19 +00:00

README.rst

Team and repository tags

image

OpenStack-Ansible LXC container create

Documentation for the project can be found at:

https://docs.openstack.org/openstack-ansible-lxc_container_create/latest/

The project home is at:

https://launchpad.net/openstack-ansible