Commit Graph

18 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 07ae836651 Deprecate rsyslog_server role
Depends-On: https://review.opendev.org/c/openstack/project-config/+/863079
Change-Id: I2abe014ede0e3fa4ed07b22990c95beb2b847222
2022-10-31 16:59:05 +01:00
Jonathan Rosser 1d49ff67cd Drop tests that rely on the presence of a pidfile
The use of pidfiles seems to be one which causes much debate [1] and
debain buster no longer creates a pidfile for rsyslog so the tests
in this role which rely on it are broken.

Given that systemd now knows the process pid and more distros are
likley to drop the use of the pidfile, and also that the rsyslog
functionality in OSA is largely replaced with systemd journal
remote forwarding, we can remove these tests that break without a
pidfile.

[1] https://github.com/rsyslog/rsyslog-pkg-ubuntu/issues/79

Change-Id: Ia2be525c75fb8bbc549cbc3aa53b3c0db05002fa
2020-05-13 10:45:33 +01:00
melissaml abc9892eb7 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Ifad0fb43db0e1ba1885cf138bb029a89b289b934
2019-07-10 21:57:21 +08:00
melissaml ca7a030dd9 Trivial: Fix the pep8 warning
The yaml should start with "---"

Change-Id: I44dcfad53cb4229becab0723fcb961bac5abe85a
2018-11-08 19:44:04 +08:00
Jesse Pretorius 958937cfe9 Remove tests-repo-clone.sh
Now that run_tests.sh handles the tests repo clone, we can
remove the use of the older tests-repo-clone.sh script.

Change-Id: I5dd34c9eb8a7a18462a90c68c7345920291094c8
2018-03-28 10:18:09 +01:00
OpenStack Proposal Bot cfc62f1862 Updated from OpenStack Ansible Tests
Change-Id: I8f240000405ac6331516006778adea74353082d7
2018-02-14 20:08:31 +00:00
Jean-Philippe Evrard c5c33793d0 Fix linting issues
Should fix the issues:
- ANSIBLE0012 Commands should not change things if nothing needs doing
- ANSIBLE0011 All tasks should be named

Change-Id: Ia6ecb913065eb09564ca3bf6be07bb03746dd838
2017-12-06 10:49:38 +00:00
Jesse Pretorius 8c80a8a574 Initial OSA zuul v3 role jobs
This patch implements an initial set of jobs intended to match
the current job execution method. It does not intend to improve
how the jobs are executed - only to replicate what is currently
in openstack-infra/openstack-zuul-jobs and provide the platform
to iterate on.

Change-Id: I8cae14c37422a5eb4b9580b0a8220ddfa5cb6053
2017-10-17 18:04:37 +01:00
OpenStack Proposal Bot 12fbc6d8dc Updated from OpenStack Ansible Tests
Change-Id: I057c15eb121c7fdc97ba0c5f38f676b9a1716056
2017-10-12 20:45:27 +00:00
Jesse Pretorius 5b9a0bdc0f Use zuul-cloner for tests repo in OpenStack-CI
When executing the tests repo clone in OpenStack-CI,
use zuul-cloner instead of git to enable cross-repo
testing. This ensures that if a dependent patch from
the tests repo is noted using 'Depends-On: <change-id>'
in the commit message, that patch will be included.

Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
Depends-On: I5da7802d61d2ab6b03908138e3a3ed2db22e3d29
Change-Id: I00c8e04c091177bc5c1692257204d6aac89c0bbc
2017-05-16 11:05:49 +00:00
Jesse Pretorius bb05f9cfe7 Fix role gate tests for Ansible 2.3
Add 'become' and root 'user' options to the playbook instead of using
'ansible_become' through an inventory variable.

Change-Id: I5f47dbb71cae8c61f1f814c1e9dfcb2d28e14b3f
2017-05-16 11:57:09 +01:00
Jarrad Battaglia a09e5ea5a6 Ensure rsyslog restarts after configuration file changes
Added rsyslog restart handlers to each rsyslog_server_post_install task.
There was an issue when rsyslog_post_install would stop its service,
it would automatically get restarted and the service would not listen
for incoming logs. This now ensures that the rsyslog service will
be restarted after configuration files are changed.
Add rsyslog_pid_name to variable files for distrubition changes for rsyslogd pid

Change-Id: I757387e8f7f7209b1ab928208894ecf4bf510efc
Partial-Bug: 1636017
2017-02-01 15:49:03 -05:00
Jesse Pretorius 73be7bee6b Use centralised test scripts
This patch consumes the test scripts implemented by
https://review.openstack.org/375061 to ensure that
the tests and test preparation is consistent and
more maintainable.

Change-Id: I38775ca18db04be8bcc40df8bb6194fcfa0e5adf
2016-09-28 12:08:30 +01:00
Kevin Carter e00580462e Update testing bits for consistency
Change-Id: I6263e91f7b83ace3a747569844a6218ec107c799
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-17 16:53:39 -04:00
Bjoern Teipel 2e9a46068f Separate remote log stream from local
This fix separates the remote log streams from the local
by binding the remote ruleset to the UDP and TCP input modules.
Additionally new overrides are provided to allow for better customization:
``rsyslog_server_logrotation_window`` defaults to 14 days
``rsyslog_server_ratelimit_interval`` defaults to 0 seconds
``rsyslog_server_ratelimit_burst`` defaults to 10000

The rsyslog.conf is also now using v7+ style configuration settings

Change-Id: I5759ea8fb7eaad79d857a335a4aede558aa0067d
Closes-Bug: #1621559
2016-09-08 15:58:31 -05:00
Jesse Pretorius b903273c7f Update tox config and add bashate E006, E040 exceptions
This patch updates the tox.ini the same bashate exceptions as are
currently in the OpenStack-Ansible playbook repo.

It also ensures that the linters and all lint targets work
appropriately and normalises the tox.ini configuration to use
uniform formatting.

The use of ansible.cfg is removed as there is no way of being
certain which paths can be used without reverting to an ugly
sed hack in the commands. This is why it is preferred to make
use of environment variables which make use of tox's default
substitutions instead. It's a more reliable way of achieving
the goal for the purpose of gating and testing.

The switch to using a git clone instead of ansible-galaxy to
download the plugins is due to the path spec not being able to
work in Ansible 2.x. [1]

[1] https://github.com/ansible/ansible/issues/13563

Change-Id: I2d5156028a9edc915f8d9a665d19e5a6e1728fb0
2016-02-12 12:01:56 +00:00
Kevin Carter 0cf98aeda8
updated repo pathing for new org
Change-Id: I5a3bcb95afcb0b9efe17c66e3c623c76418405e4
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2015-12-10 16:57:23 -06:00
Kevin Carter 2b4bf4547c
first commit
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2015-12-09 09:27:53 -06:00