31 Commits

Author SHA1 Message Date
Takashi Kajinami
2f1d35f59c Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: I25d27829f66c4ee56e2755579dad21530ef09c3a
2023-03-01 13:30:01 +09:00
Takashi Kajinami
a8bcebadf2 Enable basic middlewares in storage server pipeline
This ensures a few basic middlewares such as the healthckech middleware
are enabled in (account|container|object)-server pipeline, to test
the functionality to enable these middlewares.

Change-Id: I3561737c3601ede64a40c2040a630ba577fa5f46
2022-12-08 20:19:08 +09:00
Zuul
519ed2dc59 Merge "Swift: Enable management of internal-client.conf" 2022-08-19 06:13:22 +00:00
Takashi Kajinami
2f5954cf91 Swift: stop overriding incoming_chmod/outgoing_chmod
... because the overridden values are exactly same as the current
default values.

Change-Id: Ibec3cddd6940eaedba7ac6a97725898631367212
2022-08-16 09:21:18 +09:00
Takashi Kajinami
e1a497ab54 Swift: Enable management of internal-client.conf
... because the file is used by several daemon processes like
container-sharder.

Depends-on: https://review.opendev.org/850122
Change-Id: I4136fe6c37860675b8510689975626bb9cdb5473
2022-08-16 09:20:25 +09:00
Takashi Kajinami
e392ec9e56 Revert "CentOS: Ensure /var/cache/swift has correct selinux type"
This reverts commit ac4c2ae979e08eaed02c5a50cc4e654649f0a41f.

Reason for revert:
The wrong selinux type was fixed in the latest openstack-selinux
package.

Change-Id: Ia943c2e1f93c35682a18fd604d17febd4de8ef57
2022-06-26 08:36:41 +00:00
Takashi Kajinami
ac4c2ae979 CentOS: Ensure /var/cache/swift has correct selinux type
This is a temporal fix until the new openstack-selinux package is
released for CentOS 8 and fixes the wrong selinux type assigned to
the /var/cache/swift directory. See [1] to find details.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=2050636

Change-Id: I81c6410b8759a04eb921b0b8fe7d7006541c8ebc
2022-02-16 10:32:09 +09:00
Takashi Kajinami
256dd9349c Swift: Refactor creation of log directory
... and ensure the rsyslog service is started before starting any of
swift services.

Change-Id: Id8427d47962dab1d8516b05a08f9e72f83c891c4
2022-02-16 01:59:45 +09:00
Takashi Kajinami
95696edafd Swift: Enable more middleware in proxy pipeline
This change updates pipeline of proxy-server to enable some middleware
which are enabled in the default pipeline setting in Swift.

Change-Id: I0f5ecf1480635221bdae3acec77b9990fab503b6
2022-01-26 00:07:08 +09:00
Takashi Kajinami
1668df9ec4 Remove usage of custom os_package_type fact
Currently we support usage of distro packages only, and this custom
fact can be simply replaced by the default fact.

Change-Id: I8cad680e0ec96388cf5fa0e34f50b2c4d5969523
2022-01-05 22:44:55 +09:00
Takashi Kajinami
c4b36922d5 Modernize swift-proxy-server pipeline
This change updates the pipeline parameter of swift-proxy-server,
so that some middlewares to use basic features are enabled in
integration/litmus jobs.

Depends-on: https://review.opendev.org/776826
Change-Id: I32ee15de80467ede3adceaf7bd34ed3edef7bc43
2021-02-21 18:51:21 +09:00
Takashi Kajinami
0f92f9ad05 Enable swift-object-expirer
Depends-on: https://review.opendev.org/772506
Change-Id: I6bb65eae0f3d0522bcf93e5dc5db3728c08774db
2021-01-27 11:13:43 +09:00
Takashi Kajinami
b7218eafef Use www_authenticate_uri instead of auth_uri in swift
... because we alwaredy deprecated auth_uri in puppet-swift[1].

[1] d409c7b6c6010708a0e0620e001938d1f1710ba9

Change-Id: I3c1d5f451900bb521505dd10f3a4b8f1aef35394
2020-02-24 03:13:36 +09:00
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