charm-rabbitmq-server/unit_tests
Alex Kavanagh 55b985f55c Fix focal to jammy series upgrade
This is a fix/workaround to the package upgrade bug that affects the
charm.  The post-inst package script updates the .erlang.cookie if it is
insecure during the upgrade of rabbit from 3.8 to 3.9.  This breaks the
series-upgrade resulting in a charm erroring on the post-series-upgrade
hook.

This fix works by checking if the .erlang.cookie has changed during the
post-series-upgrade hook and either updating the cookie in peer storage
(if it is insecure) or ensuring that the cookie from peer storage is
written to the .erlang.cookie if it isn't the leader. This ensures that
the cluster continues to work and that the series-upgrade can be
completed across the cluster.

Change-Id: I540ea8da85b3b4326ccb8194f1d8b1050b04eae9
Closes-Bug: #2006485
2023-02-22 14:56:27 +00:00
..
__init__.py Fix: nrpe queue check should check for freshness 2020-11-06 09:36:49 +01:00
test_actions.py Coordination module for rabbit restarts 2022-02-17 11:06:00 +00:00
test_check_rabbitmq_queues.py Handle non-uniform queue stats output 2022-04-13 21:53:33 +00:00
test_nrpe_checks.py Move cron max file age calculation to rabbit_utils 2021-08-19 15:12:17 +02:00
test_rabbit_utils.py Fix issue where charms aren't clustered but RMQ is 2023-01-06 20:39:50 +00:00
test_rabbitmq_context.py Merge "Use cluster strategy 'ignore' for install" 2022-01-04 14:38:30 +00:00
test_rabbitmq_server_relations.py Fix focal to jammy series upgrade 2023-02-22 14:56:27 +00:00
test_ssl_utils.py Use unittest.mock instead of mock 2021-12-15 11:54:45 +00:00
test_utils.py Use unittest.mock instead of mock 2021-12-15 11:54:45 +00:00