upgrade 22.04 -> 24.04 won't start due to feature flags
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Release Notes for Ubuntu |
New
|
Undecided
|
Unassigned | |||
rabbitmq-server (Ubuntu) | Status tracked in Oracular | |||||
Noble |
Confirmed
|
High
|
Unassigned | |||
Oracular |
Confirmed
|
High
|
Unassigned | |||
ubuntu-release-upgrader (Ubuntu) | Status tracked in Oracular | |||||
Noble |
Fix Released
|
Undecided
|
Unassigned | |||
Oracular |
Invalid
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Upgrading systems with rabbitmq-server installed will leave the server in a bad state because upgrading directly from the version in Jammy to the version in Noble is not supported by upstream rabbitmq-server.
[Test Plan]
For now, we add an upgrade quirk to prevent upgrades from Jammy to Noble if rabbitmq-server is installed, and provide an brief explanation to the user.
To test:
1. Create a Jammy container
$ lxc launch ubuntu:jammy jammy
2. Install rabbitmq-server
$ apt install -y rabbitmq-server
3. Attempt the upgrade
$ do-release-upgrade -d
The upgrade should abort with a message explaining why.
[Impact]
This quirk uses a common pattern in ubuntu-
[Other information]
We may eventually need another SRU to revert this change if another solution is found.
[Original Description]
Hi,
I was just doing an upgrade from ubuntu 22.04 server to 24.04 server.
After upgrading, the rabbitmq-server cannot be started anymore.
Reason:
See
https:/
Higher versions of rabbitmq require feature flags to be set *before* upgrade. In my rabbitmq installation these features had not been set, therefore the the rabbitmq server would not start. They ask you to downgerade to an earlier version and do the upgrade.
I therefore used LXD to run a Ubuntu 22.04 machine with rabbitmq 3.9 to set the missing feature flags and achieved:
rabbitmqctl enable_feature_flag all
rabbitmqctl list_feature_flags
Listing feature flags ...
name state
implicit_
maintenance_
quorum_queue enabled
stream_queue enabled
user_limits enabled
virtual_
But it still does not work, it still complains about one feature missing:
classic_
unfortunately, this is required by rabbitmq 3.12 coming with Ubuntu 24.04, but is not known and thus cannot be set by rabbitmq 3.9 coming with Ubuntu 22.04.
Now the problem is: There is no Ubuntu coming with 3.9 or 3.10. Ubuntu jumps directly from rabbitmq 3.9 to rabbitmq 3.12, although there is no upgrade path from 3.9 to 3.12.
Three nasty options:
- loose your data and configuration and run from scratch
- run an old version in either docker or LXD
- try some upgrade path with docker/podman and non-ubuntu versions of rabbitmq
Unfortunately,
https:/
does not list versions older than 3.12, but they still seem to be available, so this might by some migration/
Related branches
- Ubuntu Core Development Team: Pending requested
-
Diff: 182867 lines (+99305/-0) (has conflicts)134 files modifiedDistUpgrade/DistUpgradeCache.py (+5/-0)
DistUpgrade/DistUpgradeController.py (+27/-0)
DistUpgrade/DistUpgradeQuirks.py (+359/-0)
DistUpgrade/DistUpgradeVersion.py (+4/-0)
DistUpgrade/deb2snap.json (+8/-0)
data/mirrors.cfg (+496/-0)
debian/changelog (+60/-0)
po/af.po (+820/-0)
po/am.po (+779/-0)
po/an.po (+756/-0)
po/ar.po (+791/-0)
po/ast.po (+808/-0)
po/az.po (+753/-0)
po/be.po (+798/-0)
po/bg.po (+790/-0)
po/bn.po (+789/-0)
po/bo.po (+774/-0)
po/br.po (+778/-0)
po/bs.po (+799/-0)
po/ca.po (+808/-0)
po/ca@valencia.po (+780/-0)
po/ce.po (+754/-0)
po/ceb.po (+751/-0)
po/ckb.po (+752/-0)
po/crh.po (+789/-0)
po/cs.po (+818/-0)
po/csb.po (+759/-0)
po/cv.po (+752/-0)
po/cy.po (+780/-0)
po/da.po (+821/-0)
po/de.po (+828/-0)
po/dv.po (+752/-0)
po/el.po (+812/-0)
po/en_AU.po (+798/-0)
po/en_CA.po (+799/-0)
po/en_GB.po (+816/-0)
po/eo.po (+797/-0)
po/es.po (+825/-0)
po/et.po (+773/-0)
po/eu.po (+798/-0)
po/fa.po (+753/-0)
po/fi.po (+821/-0)
po/fil.po (+757/-0)
po/fo.po (+753/-0)
po/fr.po (+828/-0)
po/fr_CA.po (+824/-0)
po/fur.po (+754/-0)
po/fy.po (+754/-0)
po/ga.po (+751/-0)
po/gd.po (+809/-0)
po/gl.po (+823/-0)
po/gu.po (+752/-0)
po/gv.po (+752/-0)
po/he.po (+807/-0)
po/hi.po (+774/-0)
po/hr.po (+821/-0)
po/hu.po (+807/-0)
po/hy.po (+752/-0)
po/ia.po (+814/-0)
po/id.po (+787/-0)
po/is.po (+770/-0)
po/it.po (+820/-0)
po/ja.po (+806/-0)
po/jv.po (+751/-0)
po/ka.po (+754/-0)
po/kk.po (+777/-0)
po/km.po (+794/-0)
po/kn.po (+752/-0)
po/ko.po (+796/-0)
po/ku.po (+804/-0)
po/ky.po (+751/-0)
po/lb.po (+752/-0)
po/ln.po (+751/-0)
po/lo.po (+751/-0)
po/lt.po (+791/-0)
po/lv.po (+800/-0)
po/mhr.po (+751/-0)
po/mjw.po (+751/-0)
po/mk.po (+754/-0)
po/ml.po (+754/-0)
po/mn.po (+753/-0)
po/mnw.po (+752/-0)
po/mr.po (+769/-0)
po/ms.po (+799/-0)
po/mus.po (+751/-0)
po/my.po (+752/-0)
po/nb.po (+803/-0)
po/nds.po (+753/-0)
po/ne.po (+752/-0)
po/nl.po (+807/-0)
po/nn.po (+771/-0)
po/oc.po (+805/-0)
po/om.po (+751/-0)
po/pa.po (+754/-0)
po/pam.po (+751/-0)
po/pl.po (+801/-0)
po/ps.po (+751/-0)
po/pt.po (+817/-0)
po/pt_BR.po (+806/-0)
po/qu.po (+751/-0)
po/ro.po (+809/-0)
po/ru.po (+815/-0)
po/rw.po (+751/-0)
po/sc.po (+752/-0)
po/sco.po (+754/-0)
po/sd.po (+751/-0)
po/se.po (+751/-0)
po/shn.po (+751/-0)
po/si.po (+753/-0)
po/sk.po (+800/-0)
po/sl.po (+800/-0)
po/sq.po (+803/-0)
po/sr.po (+806/-0)
po/sv.po (+811/-0)
po/szl.po (+803/-0)
po/ta.po (+752/-0)
po/ta_LK.po (+751/-0)
po/te.po (+755/-0)
po/tg.po (+765/-0)
po/th.po (+790/-0)
po/tl.po (+756/-0)
po/tr.po (+803/-0)
po/ubuntu-release-upgrader.pot (+751/-0)
po/ug.po (+803/-0)
po/uk.po (+817/-0)
po/ur.po (+752/-0)
po/uz.po (+753/-0)
po/vi.po (+794/-0)
po/xh.po (+751/-0)
po/zh_CN.po (+784/-0)
po/zh_HK.po (+783/-0)
po/zh_TW.po (+798/-0)
po/zu.po (+751/-0)
tests/test_quirks.py (+158/-0)
tags: | added: server-triage-discuss |
Changed in rabbitmq-server (Ubuntu): | |
importance: | Undecided → High |
Changed in rabbitmq-server (Ubuntu Noble): | |
milestone: | none → ubuntu-24.04.1 |
status: | New → Confirmed |
importance: | Undecided → High |
summary: |
- rabbitmq-server upgrade 22.04 -> 24.04 completely broken + rabbitmq-server upgrade 22.04 -> 24.04 won't start due to feature flags |
summary: |
- rabbitmq-server upgrade 22.04 -> 24.04 won't start due to feature flags + upgrade 22.04 -> 24.04 won't start due to feature flags |
Changed in ubuntu-release-upgrader (Ubuntu Noble): | |
status: | New → In Progress |
description: | updated |
Changed in ubuntu-release-upgrader (Ubuntu Oracular): | |
status: | Confirmed → Invalid |
OK, found a workaround. From the 24.04 system, make sure to
systemctl stop rabbitmq- server. service
systemctl stop epmd.service
make a safety copy/backup of /var/lib/rabbitmq
Repeat the following two podman commands for 3.9 , 3.10, and 3.11:
In one shell run (replace 127 and 138 with uid and gid of rabbitmq on your system and make sure that $HOST is set to your hostname, must be the same as your host for things to work, the -p ports are not needed, but a way to make sure no other daemon is running)
podman run -it --rm -v /var/lib/ rabbitmq: /var/lib/ rabbitmq --uidmap=0:0 --uidmap=u999:127 --gidmap=0:0 --gidmap=g999:138 -p 5672:5672 -p 15672:15672 --name $HOST -h $HOST docker. io/library/ rabbitmq: 3.9
wait for it to come up and run from a second shell
podman exec -it -u rabbitmq $HOST rabbitmqctl enable_feature_flag all
(or run /bin/bash and check with
rabbitmqctl list_feature_flags
rabbitmqctl enable_feature_flag all
rabbitmqctl list_feature_flags
)
after doing this three times with 3.9 3.10 and 3.11
restart services epmd and then rabbitmq-server , and things should work now. Once happy, you can remove the podman images.