18 Commits

Author SHA1 Message Date
Tobias Urdin
81687e2ead Convert all class usage to relative names
In Puppet 3 there was a need to use absolute
names to prevent issues. Since Puppet 4 everything
is absolute by default which makes this not needed.

We need to change this everywhere so that we can
revert the pin in [1] that now prevents us from
using the latest version of the puppet-lint check
puppet-lint-absolute_classname_check that properly
checks that we dont use absolute names.

[1] https://review.opendev.org/#/c/697742/

Change-Id: I78b74fbeb08be7234189e4d266412fb7fb7a73c0
2019-12-08 14:58:12 +01:00
Tobias Urdin
53e188a5e6 Change keystone v2.0 to v3
Change-Id: I1ac39c21de46cb45b5c534761350345fa37cbb08
2019-02-24 13:48:48 +01:00
Alfredo Moralejo
df32382900 Switch role name from Member to member
keystone is creating default roles for member since [1]. This
is "member" and it's not configurable so we need to switch it
in p-o-i too to avoid conflicting names errors (keystone is not
case sensitive in object names).

[1] https://review.openstack.org/#/c/572243/

Depends-On: Icd91bd27d0c0f375d2e99e9c018d3971fc49ce18
Change-Id: Id838d69e4ace9b2ea6c2a9cc6f8fd079d2115dd6
2018-06-18 13:14:27 +02:00
Thomas Goirand
423c5d0b5e Debian: correct /var/log/swift unix rights
Debian package uses swift:adm with 0750, let's not force something else,
as this makes the puppet run not indempotent.

Change-Id: I325e2f722b11deb51a1b8f40d21fddac4593834c
2018-05-16 15:05:02 +02:00
Thomas Goirand
fabd6bbd00 No syslog user in Debian
manifests/swift.pp attemps to create /var/log/swift using the syslog user
in Debian, but this user doesn't exist in this OS (it only exists in
Ubuntu). This patch fixes this.

Change-Id: I2ef53b6f5865eb0d42834d9c4580caea530d54c1
2018-05-04 09:56:26 +02:00
c40fe8dc24 Create directories for devices in advance
Swift after [1] requires directories to pre exist when
using mount_check=False, so we need to create the directories
in advance.

[1] https://review.openstack.org/#/c/500158

Change-Id: I136f481ad542b35d945c84c4348691392bfca5c3
2017-11-08 17:29:30 +05:30
Alfredo Moralejo
65de5ca9f9 Increase timeout for swift proxy operations
In RDO-CI we are hitting timeouts in swift operations
intermittently when running swift tempest tests in
scenario002.

This patch increases timeout swift::proxy as default
value seems to be too low for slow hardware as the one
used in RDO CI.

Change-Id: I05da916f9cef54873aa70460a293f16c79c0d8b4
2017-03-06 13:14:58 +01:00
Emilien Macchi
0564a673c3 Finish to configure authtoken with modern parameters
Change-Id: I1c6f3fad8ea1896b409f57b0268883bb99a2decd
2016-08-30 14:56:51 -04:00
David Moreau-Simard
7aa1cca7d7 In-process token caching is deprecated, use memcached instead
Change-Id: Ia92ca1e56118e8fd625d20848c2554c446ad3dda
Closes-Bug: #1556164
2016-08-05 10:40:16 -04:00
David Moreau-Simard
927f0a0a74 Setup logging to rsyslog for swift
This makes it so Swift logs will be sent to /var/log/swift
instead of staying in journal/syslog

Change-Id: Iee7d5eac496a49b3776d0ded756159dfd821d9e9
2016-08-05 10:39:01 -04:00
Emilien Macchi
83dc8eadf7 Cleanup some warnings
1) Remove usage of verbose in Trove.
2) Rename Tempest parameter.
3) Rename Swift parameter.
4) Update parameters for Heat so we use 'password' auth_plugin.
5) Remove metering_secret, replaced by telemetry_secret.

Change-Id: Id770a7b03323b72ba37317e48085d9c15f106bc1
2016-05-20 15:16:37 +02:00
Emilien Macchi
3b02e5afc8 swift: use ipv6 binding on centos7 nodes
If IPv6 is enabled (on centos7 now), deploy Swift using this binding.
Note: adding notes in TODO to also deploy memcached in IPv6 later.

Change-Id: I8c8e8e8870212765f8b8a0d639194e040963d6e0
2016-04-09 00:02:11 -04:00
Emilien Macchi
3874255b9f scenario002: switch Keystone/Glance/Ironic/Nova to SSL
* Deploy Self-Signed Certificates for both IPv6 & IPv4 deployments.
* Disable IPv6 for RabbitMQ now, for SSL reasons, will be enabled again
  later in a next iteration.
* Deploy Ironic API under WSGI instead of eventlet.
* Switch Glance API, Ironic API and Keystone to SSL.
* Configure Tempest with SSL endpoints when needed.
* Reduce the Ironic tests because of [1].

[1] https://bugs.launchpad.net/ironic/+bug/1554237

Note #1: puppet-swift, and puppet-cinder will require some work to support SSL, so it's not
implemented in this patch.
Note #2: we don't enable SSL for Neutron because of
https://bugs.launchpad.net/neutron/+bug/1514424

Change-Id: Ib2b5289b6f5e82f43cf60dee3152b2c2ddd5a014
2016-03-14 16:34:29 -04:00
Emilien Macchi
6140ae6fc3 Reduce number of workers to 2 when possible
Reducing workers will help us to consume less memory reduce the number
of timeouts we have in upstream CI.

* Neutron & Swift: reduce from 4 to 2 workers
* When possible, set workers to 2: aodh, ceilometer, gnocchi.

Change-Id: Ie064a9ad0389f112bbb69f4253f7f6dbc26deb0a
2016-02-24 12:36:11 -05:00
Jenkins
f3bdf37186 Merge "scenario002 swift ring devices >= replica count" 2016-01-07 21:17:15 +00:00
Adam Vinsh
838e2e44ac scenario002 swift ring devices >= replica count
New in mitaka: swift-ring-builder requires that
ring devices be >= replica count.

Change-Id: I4a3997ca53d1c632c395a90e51debe37c9aafadb
2016-01-05 16:15:40 -05:00
Emilien Macchi
335a105aca swift: set mount_check to false
mount_check is about [1] to change from False to True in puppet-swift.
This patch keeps this parameter to False which is required to make Swift
working All-In-One in our CI.

[1] https://review.openstack.org/#/c/261333/

Change-Id: I0bb1ccf4c0adc4e217e2989bd50d96741fa156f7
2016-01-03 15:33:19 +00:00
Emilien Macchi
62eb545ad9 Refactor fixtures & manifests to reduce code lines
Create manifests for each project and include them in the right
fixtures manifests, so we can reduce the code and avoid dupplicated
puppet manifests.

Change-Id: I66a98691b3014998f4c2529d2e3389ef1cbcc5f4
2016-01-02 17:43:03 -05:00