Commit Graph

16 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov be98c72394 Add upgrade jobs for zookeeper
Since we're already having zookeeper role in for at least 1 release, it
makes sense to add upgrade jobs to ensure they're performed well.

Change-Id: I8ab9414bb76811e13b7197653bcfd85b0da3aec9
2023-10-26 17:32:19 +00:00
Dmitriy Rabotyagov e01b64a34d Use jdk 17 for Zookeeper
openjdk 11 is not available for Debian bookworm, while openjdk 17 is
available for all currently supported releases of Debian and Ubuntu.

Change-Id: I8ab778d0fce4064e9cb35d0357495004b6518f55
2023-10-26 14:07:32 +02:00
Zuul 61615ac778 Merge "Use TOX_CONSTRAINTS_FILE" 2023-10-10 12:04:36 +00:00
Neil Hanlon c8637fb427 update zookeeper to 3.8.3
zookeeper 3.7.x is out of support and will stop receiving security fixes
in ~ 3 months (on 2024-01-19). 3.8.X should be in support for some time
longer.

log4j.properties was removed, but a logback config was added.

Change-Id: Ifb6af02abc9e889534f6620b296a9c5c8f0b8b6e
Signed-off-by: Neil Hanlon <neil@shrug.pw>
2023-10-09 19:13:26 +00:00
Neil Hanlon c0490d9060
change to using archive.apache.org for source downloads
archive.apache.org contains all the released versions, whereas dlcdn
only has the latest minor revision. using the archive link will allow
branches to continue to work indepdendently of the upstream's CDN and
release schedule

also, fix linter for example playbook

Closes-Bug: 2038826
Change-Id: Id95dbed736553b24341eb15c74b4a194369dda9f
2023-10-09 15:11:49 -04:00
niuke 4a16090267 Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated.
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: Ia0449207b7763c7f6dde72400a24a038df513fe4
2023-08-09 14:31:14 +08:00
Dmitriy Rabotyagov 52353e3771 Do not use notify inside handlers
Since latest ansible handlers are not triggered inside the same
handlers flush, which means that triggering mysql restart
the way we did does not work anymore. So instead of
notifying inside handlers, we add listen key to tasks
that are triggered by these newly produced notifications.

This could be due to the bug [1], but ansible-core version that has
backport included still shows inconsistent behaviour

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

Change-Id: If188ef9ef978332dc94b282893140de572bac6f3
2023-07-18 11:34:58 +02:00
Dmitriy Rabotyagov 6c783cde78 Fix linters and metadata
With update of ansible-lint to version >=6.0.0 a lot of new
linters were added, that enabled by default. In order to comply
with linter rules we're applying changes to the role.

With that we also update metdata to reflect current state.

Depends-On: https://review.opendev.org/c/openstack/ansible-role-systemd_service/+/888223
Change-Id: Iaa81bfe9c524d9818d19019d5a09cf8e817d8396
2023-07-18 09:32:19 +00:00
Zuul 259dedd6e1 Merge "Add configuration option for native Prometheus exporter" 2023-01-25 19:56:09 +00:00
Dmitriy Rabotyagov 6c79bd9bb5 Ensure zookeeper is not stopped after role re-run
Due to mis-usage of systemd_service role inlcude, zookeeper service
was stopped on sequental role runs, when nothing was changed.

Change-Id: I678d60f922273ead46ad51360b6b60a1a13e1f60
2023-01-23 17:50:29 +01:00
Andrew Bonney 1cd6ac5b4c Add configuration option for native Prometheus exporter
Zookeeper supports Prometheus metrics as documented in
https://zookeeper.apache.org/doc/r3.8.0/zookeeperMonitor.html#Prometheus

This patch adds configuration options to enable it and change
the default port.

Change-Id: I7017bb4c2eea855464989bf10d7984e130cad4b3
2023-01-13 09:48:09 +00:00
OpenStack Release Bot 93d5af2125 Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.

Sem-Ver: feature
Change-Id: I1f63d3c19ba058529fe3dbe2f4bed584520b3421
2022-12-13 13:06:39 +00:00
Dmitriy Rabotyagov 48174fac0d Add envi to the list of allowed commands
Envi is used by kazoo client to fetch zookeeper version. This is needed
for proper integration of Octavia, since Taskflow has a bug [1] that
does not respect config option that disables server version check

[1] https://bugs.launchpad.net/taskflow/+bug/1999174

Change-Id: I4405430b69b9810e8fa398ae09483df09344bbf5
2022-12-08 20:34:35 +01:00
Dmitriy Rabotyagov 4e9f5323c4 Add SSL support for zookeeper
This patch aim to add support for TLS encryption both for client and
quorum.

Depends-On: https://review.opendev.org/c/openstack/ansible-role-pki/+/865420
Change-Id: I171e0c587296d2a7eac126863eb8efa303a05a8c
2022-11-29 15:16:51 +00:00
Dmitriy Rabotyagov 73ab4bafc9 Initial commit to zookeeper role
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/864750
Change-Id: I19fc960131d1bebc7afcb2a9d0d8e0390936d75f
2022-11-17 14:41:02 +00:00
OpenDev Project Creator dd026f1cf2 Added .gitreview 2022-11-14 13:47:11 +00:00