1396510eb8309a2f89bafd999a372799c3dd0e62
Commit Graph

91 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov
9847546fe1 Refactor rabbitmq_upgrade behavior
At the moment rabbitmq_upgrade will temporary stop all nodes in the
cluster, shortly disrupting operations.
This behavior is now changed to perform a regular rolling upgrade [1]
Community right now relying on the rabbitmq_upgrade variable to
"recover" the cluster state by basically re-bootstrapping the cluster.
Such behaviour should be implemented separately in a follow-up patch.
[1] https://www.rabbitmq.com/docs/upgrade#rolling-upgrade
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/931801
Change-Id: Ibb3fae0d85dc31237ce169bb4cde9551dd5cabb6
2024年11月05日 15:04:16 +00:00
Dmitriy Rabotyagov
2f686f4bfd Fail in when installing RabbitMQ/Erlang versions not possible
Current behaviour with just pinning on Ubuntu/Debian leads to potential
situations, when there's no selected version available in repo to
proceed with what's available based on set priorities.
Instead, it might be worth to fail explicitly when requested version is
not available. This also aligns behaviour with EL distros.
Change-Id: Iad69cc4b5f8ca40246bcbc604e77eef7975eb104
2024年10月09日 10:01:35 +02:00
Dmitriy Rabotyagov
d1fd62e445 Add erlang package defenition to defaults
We do have a variable `rabbitmq_erlang_version_spec` which is applicable
only for Debian, while for EL the variable is only private.
This patch does some alignment on things:
* spec is replaced with just a version, as we don't need ternary logic
anymore.
* defenition of erlang version is unified across distros
Change-Id: Ic72212fa2d6df55f2f60d1d38c48310765442e51
2024年10月08日 14:10:06 +00:00
Jonathan Rosser
107ecca6ca Update rabbitmq and erlang repo locations to the current recommended locations.
Rabbitmq provide a new set of ppa fronted by Cloudflare, use those
instead of the previous one which is no longer mentioned in the
rabbitmq installation guide.
Change-Id: I6eff083b95b392e9f8a05f79ee2ec49705257a64
2024年10月08日 10:05:05 +01:00
Dmitriy Rabotyagov
494590447e Map all relevant architectures for deb822 repository setup
At the moment we fixup only x86_64 arch while there way more arches
in the wild. So it's worth to have a mapping for architectures in place
rather then maintain quite complex replaces.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-openstack_hosts/+/930272
Related-Bug: #2081764
Change-Id: I471fc337c0f13a5b8b10131760ed96032a34f9e8
2024年09月27日 07:28:36 +00:00
Dmitriy Rabotyagov
20b09197a2 Bump rabbitmq version to 3.13.7
This is the latest minor version in 3.13 series. Current 3.13.3 does not
exist for noble causing it to install the latest, which is now 4.0
series
Change-Id: Ifaa69e8b9caa8d5dfa9f4b83db31932c82641a40
2024年09月25日 14:06:36 +02:00
Jonathan Rosser
c785927306 Improve handling of rabbitmq_install_method changing
Instead of using a conditional block, use the "state" parameter
of the yum_repository module to ensure that the repo
config is correctly added/removed if rabbitmq_install_method is
changed after initial deployment.
Change-Id: Ief07a74cd0019fefd58e27fb8dc4299b99299f99
2024年09月09日 12:57:02 +00:00
Jonathan Rosser
e9de2b505d Manage apt repositores and keys using deb822_repository module
The apt-key module is deprecated so the code is refactored to allow
any of the deb822_repository features to used instead.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-apt_package_pinning/+/927903
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_tempest/+/907886
Change-Id: I96f1f23d6a1cca223ad4fc48a1caa21833a98b22
2024年09月09日 12:56:30 +00:00
Jonathan Rosser
5675552c74 Update rabbitmq-server to 3.13.3
Change-Id: I4d2bfe34eaddb5e8c8ac6a0ff714ee6da7b7467f
2024年06月20日 10:36:00 +01:00
Zuul
5f69dad1a7 Merge "Enable feature flags post-upgrade" 2024年05月31日 09:39:29 +00:00
Andrew Bonney
5abd7b71ba Enable feature flags post-upgrade
Stable feature flags must be enabled before upgrades to ensure
the service can still start. These additional tasks check for
any disabled feature flags and enable them. This is done
immediately after upgrades so that systems can run with them
enabled striaght away.
Closes-Bug: #2038818
Change-Id: I5211a30899f544a9f7e609e85551a92b245d25bf
2024年05月21日 13:48:04 +01:00
Dmitriy Rabotyagov
7e25ad5f6b Update rabbitmq/erlang to latest versions
Change-Id: Iddc69e81e1677efcd1930afb4dc3113596e9537b
2024年05月16日 13:34:39 +02:00
Dmitriy Rabotyagov
ff5b23ae93 Add rabbitmq distro install support for EL
This patch adds installation of "native" to EL repo (which actually
is "extras") that provides RabbitMQ and Erlang.
This behaviour would align EL with DEB systems in terms of "distro"
path.
Change-Id: Ifa197131dd010108f3a0745322b32de1fb08b813
2024年04月24日 19:16:51 +02:00
Dmitriy Rabotyagov
346cf85298 Update RabbitMQ to 3.12 series
Change-Id: I2e320b862dbc86a70f660510f2b946c6ac135ca1
2023年10月09日 08:02:14 +00:00
Dmitriy Rabotyagov
2fc53a3a03 Adjust wildcard definition
There was no reason to adjust rabbitmq_package_version previously, as
replaced by the wildcard part is never changed, so patching that doesn't
have any practical sense. We also return `-1` to erlang spec, so that
wildcard would match only the part we expect to change.
This partially reverts I99683a031f935b579d38ae457c484c9a150344c6
Change-Id: Ie2e783d065f32b906ee1554abaf5dc3b24236ca8
2023年07月06日 09:39:35 +00:00
Damian Dabrowski
953ceccb0b Use wildcards to specify rabbit/erlang versions
For a long time we were struggling with disappearing packages on
packagecloud/cloudsmith repos.
We were told to use {ppa1,yum1}.novemberain.com because packages should
not disappear from there[1].
Unfortunately it just happened causing Rocky jobs to fail with error
message: "No package erlang-25.3.2-1.el9.x86_64 available."
Because we had this issue for a long time and we have not found any
proper solution so far, I think the best we can do is to use wildcards
for version definitions.
Wildcards are used only for build numbers(number after 3th dot) if they
are present. It should minimize a chance to install incompatible erlang
and rabbitmq versions.
[1] https://github.com/rabbitmq/rabbitmq-server/discussions/8386#discussioncomment-6022021
Required-By: https://review.opendev.org/c/openstack/openstack-ansible-os_rally/+/887528
Change-Id: I99683a031f935b579d38ae457c484c9a150344c6
2023年07月04日 18:42:49 +02:00
Neil Hanlon
efd5ba9be7 Use el/9 repo urls instead of el/8 since a repo is available for it
As we target el9 and not el8, we should use the el/9 repo as it is
available, even though it provides RPMs with an `el8` dist tag. This can
help prevent confusion for users who see a repo on the system configured
with `el/8` in the repourl.
There should be no impact on existing installations, as the same repo
content is provided in both repos in almost all cases--namely, a few
early versions of erlang are unavailable, but as we pin to a version
that exists in both repos, there is no impact to this change: at worst,
the erlang package will be upgraded to a newer minor version if a user
somehow has an older one installed.
Change-Id: I70c13f7f882ce8666b12314a31f76fe63599677c
2023年06月01日 20:57:46 -04:00
Neil Hanlon
3ee66ae7af bump rabbitmq and erlang to latest available
When switching to the Novemberain repos and using the proper EL major
version, some packages are not available in el/9 that are in el/8 repos.
This change bumps rabbitmq to 3.11.17-1 and erlang to 25.3.2-1.
Change-Id: Ia885935ef6d97fae8b61a1c4979b03a51727eb31
2023年06月01日 20:54:24 -04:00
Neil Hanlon
ab9dbfb50e Change to CloudSmith repos from PackageCloud for RabbitMQ
Upstream has notified us[1] about the immediate deprecation and removal
of the PackageCloud repositories we are using. Thus, we must move to the
CloudSmith repos already being used for the erlang dependency for
RabbitMQ.
[1] https://github.com/rabbitmq/rabbitmq-server/discussions/8386
Closes-Bug: 2021410
Change-Id: I361757b8f76a6c2d087989a36d8f7543aba69e16
2023年05月29日 15:25:10 +00:00
Dmitriy Rabotyagov
84d88c5a26 Switch rabbitmq repo back to packagecloud
Due to decision made during PTG, we're switching back source for
RabbitMQ to packagcloud, since cloudsmith does rotate versions
too aggressively and we can't keep up with them.
With that we're leaving erlang source to be cloudsmith, since
there're simply no other good sources for Ubuntu/Debian.
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/879671
Change-Id: Ifac1481b459707b289a9804aa4240ebbf55f6ab7
2023年04月07日 17:16:43 +00:00
Dmitriy Rabotyagov
98a7f71d17 Update erlang to 25.2.3 and rabbit to 3.11.10
Change-Id: I8c4981a29715509514d5904ca68211093f518976
2023年03月03日 21:43:28 +01:00
Dmitriy Rabotyagov
5281c0e264 Bump rabbitmq to 3.11 and erlang to 25.2
Change-Id: If8c83682093cb08e8a092550c44010134cd210d3
2023年01月20日 17:31:03 +01:00
Kevin Carter
2e2ef998f5 Update rabbitmq to 3.10.7-1
Bigger number, moar better.
Change-Id: I097b8c678a0744f31db04d0a402a2bba793f6824
Signed-off-by: Kevin Carter <kevin@cloudnull.com>
2022年10月04日 15:20:29 +00:00
Dmitriy Rabotyagov
bfaeecc548 Update RabbitMQ version to 3.10
Change-Id: Ie291b079c4f10949ad63f80ebb2bafcc09854ffe
2022年05月28日 07:45:44 +02:00
Jonathan Rosser
b79a6c8bcf Add support for centos-9
Change-Id: I5428a7d8ebb8e1cc108608bddb94784696dab098
2022年05月12日 20:13:06 +01:00
Jonathan Rosser
45a5dd7729 Bump rabbitmq / erlang versions
These are bumped to the latest version available in the cloudsmith
repo, noting that there are no erlang packages for debian/bullseye
so these remain the distro provided ones.
Change-Id: Ib6f7ce3173df02908a43f61b6fabbd52e8222917
2022年05月03日 12:38:25 +01:00
Dmitriy Rabotyagov
9355e52547 Update used RabbitMQ and Erlang
Change-Id: Ibfe03a445d7e3366ffaebf940386596506a84e6d
2022年01月31日 21:03:46 +00:00
Dmitriy Rabotyagov
1b570e3511 Allow different install methods for rabbit/erlang
Currently Debian Bullseye doesn't have erlang provided by external repos
So in order to update rabbitmq version used we need to implement
rabbitmq_erlang_install_method, so that we could use external rabbitmq
with distro provided erlang.
Hpefully that is temporary solution and erlang packages for bullseye
will be built one day.
Change-Id: I32256271759d26522c17fe14c75b41da4c86c31a
2022年01月31日 21:03:40 +00:00
Dmitriy Rabotyagov
4ab856bfef Use cloudsmith repo for rabbit and erlang
Switch to using cloudsmith repo as a source for rabbitmq and erlang.
This allows us to be consistent about repository that is
used across supported distributions along with switching from
unreliable erlang-solutions that tend to fail periodically.
Change-Id: Ia438ee3b0aa1ba95aff014776e936516b83181ec
2022年01月29日 07:35:17 +00:00
Dmitriy Rabotyagov
52e3978312 Update rabbitmq version
Change-Id: Ie746929b352554cbae6f3a942d5c3eae59697bcd
2021年11月16日 15:04:31 +00:00
Andrew Bonney
bf53f24dd4 Fix erlang upgrades for rabbitmq external_repo installs
Upgrading only the 'erlang' package does not pull in updated
dependencies which can cause rabbitmq to fail to start during an
upgrade.
The external and distro dependencies appear to match, so these
are conformed to ensure that all packages are updated during an
upgrade.
This patch additionally switches deployments to the 'erlang-base'
rather than 'erlang-base-hipe' package which appears to have been
discontinued.
Change-Id: I8bd010cba13946c9c46c3792624841e41e3c2eaf
2021年08月10日 16:11:36 +01:00
Jonathan Rosser
235d912059 Add debian bullseye support
Packages for bullseye are only availble from the distro repository
as there are no officially provided packages from RabbitMQ or Erlang
Solutions yet.
Change-Id: I8515470997982ccb765b6e3bbc824a5445d99f86
2021年05月18日 07:54:51 +00:00
Jonathan Rosser
68056e7104 Convert remaining ansible_ variables to ansible_facts[]
Change-Id: I98b009643e8dae37fc8a454508e84e7a146c5b13
2021年03月17日 09:48:22 +00:00
Dmitriy Rabotyagov
e004cf9e2e Bump rabbitmq version
This updates rabbitmq and erlang versions along with unifying approach
for focal and debian.
Change-Id: I51259a10b2e04cf533b776f34a6bc678e57f8c2a
2021年03月15日 14:34:41 +02:00
Jonathan Rosser
b8fc872113 Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654
Change-Id: Ia6dac13c7e2206f4a86ef8e21c5b1cd80eb16e0e
2021年02月24日 10:25:04 +00:00
Jonathan Rosser
5d0ae7e145 Ensure openssl is available
This is required to create the self signed certificate. Minimal
container images may not contain the openssl package.
Change-Id: Id0535cc66671077f8100e66584a9432d5c3d996d
2021年02月17日 17:47:20 +00:00
Dmitriy Rabotyagov
e93b7e3477 Bump rabbitmq version
This also removes unsupported suse variables
Change-Id: I99ee6702589415b7e580e8f71c61d56a6c464644
2020年10月26日 13:17:22 +02:00
Dmitriy Rabotyagov
fc27e735a6 Add Centos-8 support
Depends-On: https://review.opendev.org/734672
Depends-On: https://review.opendev.org/735289
Change-Id: I35690f9a54337d6a268406ddcf6726f7040ac966
2020年06月24日 20:41:27 +00:00
Zuul
0cd4101c66 Merge "Fix vars file for ubuntu focal" 2020年06月08日 13:18:33 +00:00
Dmitriy Rabotyagov
3dbcc70437 Bump rabbitmq and erlang versions
This also includes fix of erlang package pinning
Testing of bionic is disabled to resolve circular dependency
Needed-By: https://review.opendev.org/731837
Change-Id: I4fb070f7b8a97def59e227594273e02fbd8ae2f2
2020年05月30日 09:40:10 +00:00
Jonathan Rosser
9a9946c12f Fix vars file for ubuntu focal
Change-Id: Ib7786bb6ce6ef5cfa5991ecdc370d7f8760a9550
2020年05月27日 09:14:38 +01:00
Zuul
f8994f6c5f Merge "Add experimental support for ubuntu focal." 2020年05月12日 19:54:25 +00:00
Jonathan Rosser
9fa1b1b9ed Add experimental support for ubuntu focal.
This uses the rabbitmq/erlang packages from the ubuntu repo itself rather than
a specific version from packagecloud. This should be updated once official
versioned packages are published.
Change-Id: I28ef6f425aac038989fc9981caf9589b3a8c3617
2020年04月28日 07:16:06 +01:00
Dmitriy Rabotyagov
37c9bc026e Install rabbitmq from external_repo for all distros
This unifies the way of rabbitmq installation across all distros.
Also includes reno for deprecation of file installation method.
Change-Id: Idcf2d298e2808ef7b1a2160fc94cd6c1b5929182
2020年04月13日 23:30:38 +03:00
Dmitriy Rabotyagov
66240e5ad9 Bump rabbitmq versions
Patch updates isntalled rabbitmq and erlang versions.
Change-Id: I3a329a0aeb44cea92706a88fd05cc70d545ccc73
2020年04月07日 10:01:43 +00:00
Jonathan Rosser
ac501bef87 Bump rabbitmq version to 3.8.2 and erlang to 22.2.2
Change-Id: I66d3b2ffecf7f180b987896496912869953639ac
2020年01月21日 13:18:42 +00:00
Dirk Mueller
287bb31279 Switch to the amqp repository for erlang dependencies
Change-Id: I4e7dc0a64c4fa802991c9195cd70dcf4b19ba4ac
2019年11月28日 15:09:36 +01:00
Dmitriy Rabotyagov
8c43ee9556 Drop erlang bump for suse
As we're using "upstream" suse repo for retrieving erlang
which don't store previous versions, we have to drop
erlang bump for suse. This will allow to install latest available erlang
which should work.
Change-Id: Ibc0cfa87a57b4f3fb181158f15bb4bf586199d00
2019年11月14日 11:29:52 +00:00
Mohammed Naser
246ff262e5 suse: switch to using upstream repos
This patch makes SUSE use the upstream repos for RabbitMQ and
the devel:languages:erlang:Factory for Erlang.
As all distros are using rabbit 3.8 we can drop checking
3.7 style cluster_status output.
Change-Id: Ifaba2611f987e4e135b7a28db6c6053ef63b0913
2019年10月31日 09:30:26 +02:00
Dmitriy Rabotyagov
427ab54f39 Bump rabbitmq & erlang versions
Change-Id: Ibf87ccb4554ab7d765d542f5fae3cd857dbf5733
2019年10月22日 18:20:52 +03:00