Commit Graph

19 Commits

Author SHA1 Message Date
Marc Gariepy 8cdad4a708 remove ansible_python_interpreter
ansible_python_interpreter is now set to auto in the tests repo.
it doesn't need to be overwritten in the test anymore.

Depends-On: https://review.opendev.org/734676/
Change-Id: Iad9eca9922613631e1300bd7fb0e380d03e1aa35
2020-06-11 15:59:07 -04:00
Dmitriy Rabotyagov 141db60ee6 Use systemd-journald instead of log files
This patch aims to migrate service from usage of regular syslog files
to journald.

Change-Id: I9ee285aeae85ccf6827a652dcd4ff06958141615
2019-07-22 16:40:36 +03:00
Mohammed Naser 9b0a15cf1c speedup: drop apt pinning dependency
We don't pin anything for memcache so we're just running things
for no reason.

Change-Id: I3a518204a28307cc9f8db593e3117933112a8410
2019-01-03 18:20:20 -05:00
Mohammed Naser d784ea1846 Increase default connection count to 4096
The current default is 1024 however this is not sufficent for most
deployments and it will cause a lot of issues if it does hit the
limit as the server will stop responding.

The overhead for this is very low and other deployment tooling
usually sets this to 8192[1], so 4096 is even very conservative.

[1]: https://github.com/saz/puppet-memcached/blob/bb9d55a2/manifests/init.pp#L26

Change-Id: I604f96a9431076e1f630d2045eac4c88a92935c1
2018-06-13 15:52:12 -04:00
Jesse Pretorius 163d9c15b4 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: I2ccaa1df08aaf772058607653059ba3ccfc3fc86
2018-03-28 10:11:54 +01:00
OpenStack Proposal Bot 9fc5cd4606 Updated from OpenStack Ansible Tests
Change-Id: I7aa9aaf3098a8182af58ea106f30c4d4591913e4
2018-02-14 20:04:18 +00:00
Andreas Jaeger 426a4f5f0d
Clean up the role and further isolate the service
This change cleans up the role a little bit making it more consistent.

A new configuration file has been added which will further isolate
our services using a named cgroup; this is similar to what we already do in
our openstack services. By further isolating the service from the system
we get quite a bit more control and accountability.

Change-Id: I02a84a2560853473c986ad0db26874341a23fc82
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-11-29 20:37:56 -06:00
Jean-Philippe Evrard 89319fd345 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: Iaee6f1c1836ee85770fd46a215e65cf2b2d517fa
2017-10-17 18:21:07 +00:00
OpenStack Proposal Bot efea06b81b Updated from OpenStack Ansible Tests
Change-Id: I7afa82420f7cfec9356519891d39e1187dc71cb9
2017-10-12 20:43:55 +00:00
OpenStack Proposal Bot 3dce07315b Updated from OpenStack Ansible Tests
Change-Id: Id451d0d50b7b49ff52ff3adbeb22e8430be1166e
2017-07-06 21:07:54 +00:00
Jesse Pretorius c6c2dbd7fb 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.

Change-Id: I6de4c78710f655b3a8a8be070e6dec4ad2c65e7e
Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
2017-05-04 16:49:47 +01:00
Jimmy McCrory 114a6322ed 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: I5e703e24fe0b3aed2784fbf63d0f2e8f81d44f0b
2017-04-26 09:06:26 -07:00
Jesse Pretorius 82d81c9b02 Use centralised Ansible test scripts
This patch consumes the centralised Ansible test scripts
implemented in https://review.openstack.org/381853

Change-Id: I486582d6793f61a08e09da8fe04203fac9c214bd
2016-10-05 12:42:00 +01:00
Jesse Pretorius 3e5bde5254 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: Iece5efb32143979f4d4a0322e3b26aaa5f10d66a
2016-09-27 16:03:38 +00:00
Matt Thompson f0185d9d88 Updated role using the Multi-Distro framework
This commit updates the memcached_server role to work on Trusty,
Xenial, and CentOS 7.

NOTES:

1. This role no longer creates the memcache user since both Ubuntu and
   CentOS already install a suitable user
2. We have temporarily disabled testing of the log file since CentOS and
   Xenial do not log to file
3. On Ubuntu we drop ulimits into /etc/defaults/memcached, we need to
   figure out how to do the equivalent on CentOS
4. We update tasks/memcached_config.yml to use the correct memcached
   user in limits.conf, however neither these limits or the ones in
   templates/memcached.debian.j2 actually seem to be taking effect.
   More work in an additional review will need to be done to clean this
   all up.

Implements: blueprint multi-platform-host

Change-Id: I4c32f3d60939615c5d0c6fb202e96aacb35ab9b4
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-05-26 16:52:54 +01:00
Jean-Philippe Evrard 2d937511d6 Improved logging for memcached
- Moved to the right folder to get it accessed on bare metal
  when containerized
- Making it work for rsyslog and logrotation's existing
  roles
- Changed the gate tests to reflect path change

Closes-Bug: #1569171

Change-Id: I3a1c2f50ab63b55b39318ba40c0921f6b738cafb
2016-04-13 18:16:07 +01:00
Jesse Pretorius 552ad6d10f 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: I7c4b2e14487dcfa63e3b85e1cd4e7ff7c4113d23
2016-02-12 11:38:06 +00:00
Kevin Carter 40aa9e7df5
updated repo pathing for new org
Change-Id: I80feddde8f79f86f0cb6089becca941cdd708b89
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2015-12-10 16:51:45 -06:00
Kevin Carter b818df54e2
first commit
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2015-12-09 09:24:22 -06:00