Commit Graph

106 Commits

Author SHA1 Message Date
Michal Nasiadka a0e22caa8a Bump rabbitmq to 3.13
Pinning Erlang to 26.2.* (max supported version as per [1]),
so we don't break this in future when Erlang 26.3 becomes
available.

[1]: https://rabbitmq-website.pages.dev/docs/which-erlang

Change-Id: I1fd03a67914386129d7b0bb9be6aca86982f98f3
2024-03-11 15:11:54 +00:00
Michal Nasiadka 36df37be31 rabbitmq: Use timeout in healthcheck script
Currently we don't set timeout and the default is infinity.

Change-Id: Id1a87995a36e202fc0aaf82daf022ec10d78e37d
2023-11-22 06:48:07 +00:00
Michal Nasiadka 63e5fc7fbb rabbitmq: bump version to 3.12
Erlang has been bumped to 26 as well.

Change-Id: I5a6e90790d9c3c148e118fdf2ce6089e0a6a343e
2023-08-16 06:55:45 +00:00
Michal Nasiadka 1dba21d012 Revert "rabbitmq: pin to 3.11.16"
This reverts commit 600ed4f149.

Reason for revert: 3.11.18 is out with a fix

Change-Id: I4659bcd48ea32294b3ee84af9af94fae32b38bf3
2023-06-21 17:20:03 +00:00
Michal Nasiadka 600ed4f149 rabbitmq: pin to 3.11.16
Seems rabbitmq node drain got broken in 3.11.17

Related-Bug: https://github.com/rabbitmq/rabbitmq-server/issues/8414

Change-Id: I3a23670f85336344d8aebaded74dd65871837b82
2023-05-30 15:35:18 +00:00
Dr. Jens Harbott dbde2a8cdc Revert "rabbitmq: Pin to 3.11.11"
This reverts commit dda3bf45b2.

Reason for revert: fixed in 3.11.13

Change-Id: Ia1288a7fecb2e4a96564bd9adb9ce9d8415c61ac
2023-04-01 07:59:59 +00:00
Michal Nasiadka dda3bf45b2 rabbitmq: Pin to 3.11.11
Change-Id: I040b24c294e5daa07ece9f4a0f58fcab5cdf185f
2023-03-31 08:31:30 +00:00
Michal Nasiadka d9f4c78e87 rabbitmq: upgrade to 3.11
Change-Id: I4836806c0434caaff1e6fd1646aa5566b0c3d7e1
2023-02-01 11:26:44 +01:00
Marcin Juszkiewicz 3c70d5fc4e rabbitmq: use Erlang 25 on AArch64/CentOS/Rocky
We switched repo to provide Erlang 25 but not switched to it.

Change-Id: I8b0a2f27ccb3db61a38d8fe89676f99eed1e3d75
2022-10-27 11:11:00 +00:00
Marcin Juszkiewicz ac1ae84386 centos: use Erlang 24 on AArch64
We do not have Erlang 25 for CentOS Stream 9 on AArch64 so we revert to
use Erlang 24 from CentOS repository.

Also synced Erlang and RabbitMQ versions between images.

Change-Id: I1480de095eaea66c3a83a61ca3ff269953181e39
2022-09-28 17:05:29 +00:00
Marcin Juszkiewicz 878b00013b Move to CentOS Stream 9
OpenStack 'zed' requires Python 3.8+ so RHEL 8 family has to go.

This changeset moves to CentOS Stream 9 while move to RockyLinux 9 is
planned as final solution.

CI moved to CentOS Stream 9 nodes.

Depends-on: https://review.opendev.org/c/openstack/kolla-ansible/+/839715

Change-Id: I113b9984294cf8663d3fc0c8840320e1d40ea731
2022-09-27 07:40:06 +00:00
Marcin Juszkiewicz e511db7048 centos: we install 'hostname' in base image
There is no need to install it in other images.

Change-Id: I9fdb987533662ee532141b06fc23b64c92788429
2022-09-13 12:46:36 +02:00
Michal Nasiadka 1c0af66bfd rabbitmq: Update to 3.10
3.10 comes with quorum queues support, Erlang 25 is the recommended series.

Change-Id: I67f8df66b4896a9b223c02ed09f68f3f43693849
2022-08-22 12:32:14 +00:00
Tim Shearer 1d96a2bbe1 Adjust permissions on _extend_start files.
Explicitly set the permissions on the kolla-toolbox kolla_extend_start
file. Also, since all extend_start files are sourced rather than
executed, the executable bits are now cleared throughout the project.

Change-Id: I5c2deb4a2e33575d57c852089f856a9acc6818d0
2022-04-11 17:22:24 +02:00
Marcin Juszkiewicz a1510870e8 drop infra_image_prefix
We have one install_type only now so that infra stuff is not needed
anymore.

Change-Id: I60d50ba7699d46d001eaef365fb84b0ce8e9b262
2022-04-11 06:22:21 +00:00
Michal Nasiadka 732860302c rabbitmq: update to 3.9
Also update Erlang to 24

Change-Id: Ifbaccc54896bab096a6d16dc7733941dd600cf39
Depends-On: https://review.opendev.org/c/openstack/kolla-ansible/+/828594
2022-02-09 17:26:39 +00:00
Marcin Juszkiewicz f943c7d773 erlang: use packages from Erlang Solutions on AArch64
RabbitMQ requires Erlang 23+ and soon will bump to 24+.

On AArch64 we used version 22 as there was no other option. Now it is.

Change-Id: I667ccda5bb4edbfbfb97dfb0cea264837ed05cae
2022-02-05 10:37:41 +01:00
Radosław Piliszek b5dbcb8dcd Fix RabbitMQ and Erlang pins again
Change-Id: Ie5bacf5d76850e51aa5f20b34759f76f89f73a2c
2021-04-29 13:45:47 +00:00
Marcin Juszkiewicz 0ec6049a73 CentOS on AArch64 has only Erlang 22
RabbitMQ 3.8.14 is the last version with Erlang 22 support

Change-Id: I1d68a47f78b925af76c44c61af7da1465371e721
2021-04-29 11:16:24 +02:00
Radosław Piliszek b54789d093 Pin erlang
Now that we run without erlang pinned by the repository itself,
let's pin it on our side.

Change-Id: Ifa491b102ad0db7f6dc645ca552d83b53bcf3b46
2021-04-26 16:54:11 +00:00
Marcin Juszkiewicz 38fcd184e8 centos: enable repos where needed
With RDO use we did not disabled some repositories. This patch disable
them and enable where needed.

Change-Id: Ia9d537fe9c1ad54789d2bfb4027254fbb3defe7e
2021-04-13 11:21:39 +00:00
LinPeiWen 88bf6c71f4 Add the healthcheck_rabbitmq script to rabbitmq images
This script is used to check the health check of the rabbitmq container
Related patch of kolla-ansible:
  https://review.opendev.org/c/openstack/kolla-ansible/+/780407

Change-Id: Icbdc9f9686ec1b6f6e1c0ca51ef557b49f32d289
2021-04-07 10:05:05 +00:00
Marcin Juszkiewicz 90adc2b851 introduce 'infra_image_prefix' for infra images
Defaults to 'image_prefix' for now but shows which images gets their
names changed soon.

Change-Id: I0608e8f62f28d6667b4c8753c47553e4cbf75503
2020-07-09 23:31:42 +02:00
Marcin Juszkiewicz 53443c5c71 Remove support for CentOS 7
With the move to RHEL/CentOS 8 we no longer have Python 2 in our images
so there is no need for checking which Python version (2.x or 3.x) is
used inside of containers.

We also no longer have to support yum as a value for
distro_package_manager.

Partially-Implements: blueprint centos-rhel-8

Change-Id: Ie45cf3465fedddbde7856961527421883ba3d5c9
2020-04-15 09:32:06 +00:00
Dincer Celik f1f1d85459 Upgrade RabbitMQ to 3.8
Upgrade and pin RabbitMQ to 3.8.

Upgrade Erlang to 22 to meet requirements:
https://www.rabbitmq.com/which-erlang.html

Start using bintray repository provided by RabbitMQ.

Linaro builds will be used for aarch64.

Implements: blueprint rabbitmq-version-upgrade

Closes-Bug: #1848452

Change-Id: I3d775fd832f2603181da89009cebc1370a61a023
2020-04-06 15:14:02 +03:00
Mark Goddard 0f95bf4373 Remove unused script rabbitmq_get_gospel_node.py
This script is used by neither Kolla Ansible nor TripleO.

Change-Id: I4859a727b269dd13465d90dff50107e29d39956e
2020-04-04 14:16:58 +00:00
Christian Berendt 861f55fbfd Add block labels to all Dockerfiles
Change-Id: I9692dda817ef134d647247431565e1b58cf9da41
2020-03-01 17:25:58 +00:00
Mark Goddard 4b4e26262b CentOS 8: Update packages in images
* Some further changes for python2 vs python3 packages
* Allow rabbitmq 3.7.*, since a newer erlang is available
* Switch from qemu-img-ev to qemu-img on CentOS 8
* bridge-utils no longer available on CentOS 8
* libvirt-daemon-driver-lxc no longer available on CentOS 8
* Mark some more images buildable for CentOS 8

Change-Id: Iaf5b68ff6d944ae730ca0b1d5832172c106a6c08
Partially-Implements: blueprint centos-rhel-8
Partially-Implements: blueprint centos-rhel-python-3
2020-01-29 11:41:38 +00:00
Marcin Juszkiewicz d81e5f145b Use APT pinning to set preferred version of RabbitMQ
We want RabbitMQ 3.7.10-1 for Ubuntu. So set it in one place which is
designed for such things instead of doing it everytime we want to
install it.

Change-Id: Ib2b2d4e392aaf77bcdec24f9f5551cdf15d32d91
2019-12-12 20:25:51 +01:00
Marcin Juszkiewicz cf11cd6f3d Enable repos only when needed
Disable external repositories by default and enable only when needed.

Depends-on: https://review.opendev.org/696480

Implements: blueprint repos-off-by-default

Change-Id: Icf2a8397a8349e0fe849d88d160409fd234480a9
2019-11-29 11:38:06 +01:00
Marcin Juszkiewicz 4d31ca695b Move to Debian 'buster'
Buster is at freeze phase so safe to update and use. Will give us
Python 3 based OpenStack packages (usually release delayed).

Change-Id: I48c2d252a834716f1bcf10b18f2d32fe541e8137
2019-03-14 10:20:27 +00:00
Martin André baa611e552 Pin rabbitmq-server for ubuntu
Ubuntu is also affected by the new rabbitmq server version mismatch
with erlang. Pin it to last known working version until the packaging
mess is fixed.

Change-Id: I5e3ba7762f0990718e4180ffcd3db7722edc17b4
Related-bug: #1814233
2019-02-05 15:28:10 +01:00
Jon Schlueter cfbcf830f0 Pin rabbitmq-server to 3.7.10
New version of rabbitmq-server in epel but not new enough version of
erlang available in epel or delorean-trunk repos.

Closes-Bug: #1814233
Change-Id: Iac3cad17ff8279a2be66ffe1366d6844f999d66f
2019-02-01 10:49:31 +01:00
yatin 1f53ed6fca Utilize already existing block for rabbitmq plugin install
[1] added a new block for rabbitmq plugin installation,
block rabbitmq_install_plugins already exists, it should be
utilized.

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

Change-Id: I900780aa22ba3a3fc19b88bdbb03b2a291ee7167
2019-01-29 13:10:32 +05:30
Zuul 5aa981bd3e Merge "Add support rabbitmq promethues plugin" 2019-01-28 15:55:33 +00:00
Alex Schultz ae1322ec10 Use base_package_type
This change updates the docker files to use base_package_type instead
of doing specific distro checks for the rhel/deb generic cases. The
base_distro is still available and is used when a specific distro needs
a customization but if the differences are purely rpm vs deb, then the
base_package_type can be used.

Change-Id: I8d720bb185df65a0178061ccf20b1ab2265da2c5
2019-01-17 08:23:41 -07:00
zhubingbing 4113483354 Add support rabbitmq promethues plugin
Change-Id: I1b2b3d6708bfcd58864e26e6c1fc618fb421e9a2
2019-01-04 15:46:22 +08:00
Paul Bourke 31c958db52 Move to the latest rabbitmq
This allows us to use the new simpler style conf format, as well as drop
the dependency on the deprecated clusterer plugin.

Depends-On: I921459f3e40b9e0d4af9497384e49aabf0abe79b
Change-Id: I75e00312b36e1678b90a42cf58d24652323eff27
2018-09-11 17:19:33 +01:00
Martin André 27bab79096 Download binaries more securely
Obtain binaries from encrypted source when we're unable to check for
their signatures. This should provide better security than downloading
the files over HTTP but does not replace signature verification or file
integrity check.

Related-Bug: #1791674
Change-Id: I7d6eed9ab14ceb130ea4f5f03d893ddaaa0a7acd
2018-09-10 19:19:16 +02:00
Martin Mágr 293a1d9f8c Add socat to base image
We would need socat tool to perform healthchecks on the various containers.

Closes-Bug: #1749227
Change-Id: Ibda77a8d041d894f5efac6578e52b11651bca97f
2018-02-14 11:57:34 +01:00
Marcin Juszkiewicz ebfc1e7512 rabbitmq: handle Debian and aarch64 properly
Debian 'stretch' has rabbitmq-server 3.6.10 in backports repository so
we will use it instead of external version.

Also take care of 'erlang-base-hipe' (or rather lack of it) on AArch64
architecture.

Depends-on: I72d1d1c10cbc4c5fe0907e395b6d7c969353dff8

Change-Id: Id332215b1e05e6edf18efd85c4463993bb7b321f
2017-12-13 15:56:00 +00:00
Christian Berendt e625b85f33 Support HiPE (High-Performance Erlang) in RabbitMQ image
Change-Id: Ifc4f1d0f1b59b1789011e33c649033eb3cf5b010
Partial-bug: #1621404
2017-09-26 07:56:41 +00:00
Paul Bourke b5aca933d6 rabbitmq-plugins enable no longer needs /bin/true
It's unclear why this was needed originally but rabbitmq builds fine
without it.

Change-Id: I604af090b727c50e00af4273fd92ee5b6954393a
2017-06-29 14:36:42 +01:00
Jenkins 60b8d2aa9d Merge "Make rabbitmq log dir configurable" 2017-06-15 09:20:20 +00:00
Paul Bourke 329293b182 Make rabbitmq log dir configurable
Change-Id: I020eb6219f89a310451becde41f6f1c7f54baadd
Partial-Bug: #1620374
2017-06-14 16:05:50 +01:00
Steven Dake 4607ab5e53 Remove sudo operations that are no longer necessary
set_configs.py has logic to handle chown of directories.  Simplify
the codebase by removing these unnessary chowns.  Further the chowns
cause some forms of NFS backed storage to not work properly.

Change-Id: I8df95d06b1010778deb3e2a3065aaab26ed2eb6a
Closes-Bug: #1693973
2017-05-26 21:40:31 -07:00
Jawon Choo 31259fa595 Override image's meta info.
centos based images have wrong label info,
these changes fix own image's name and build-date.

Change-Id: I1d13f8f386c8db12b5fbe5f8ecbbf9e3fbb4ba1c
Closes-Bug: #1680341
2017-05-03 11:08:17 +09:00
Chen 8c463a47a9 Use LABEL instead of MAINTAINER (deprecated) in all Dockerfile.j2
Use LABEL instruction instead of MAINTAINER (deprecated) instruc-
tion as suggested by Docker's official dockerfile guide.
docs.docker.com/engine/reference/builder/#maintainer-deprecated

Closes-Bug: #1683652

Change-Id: Ie87a1ddf31aefcd0b623fd2837d78de420e76898
2017-04-20 16:50:05 +09:00
Marcin Juszkiewicz 69fef5cd59 debian: enable all images enabled for Ubuntu
Debian support is not maintained in Kolla so it got a bit behind Ubuntu
one. This changeset enables Debian for all images. Jessie (even with
backports) may be too old for some images though.

Also unify distro check to ['debian', 'ubuntu'] to keep alphabetical order
like it is done for RPM distributions.

Partially-Implements: blueprint multiarch-and-arm64-containers

Change-Id: I056233fbfa277e0e2360c07c3f80d9558c554357
2017-04-04 22:48:18 +02:00
Jenkins bcb89677da Merge "Rabbitmq: refactor Dockerfile.j2 file" 2017-04-03 22:54:02 +00:00