[SRU] rabbitmqadmin shows %%VSN%% as version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rabbitmq-server (Debian) |
Fix Released
|
Unknown
|
|||
rabbitmq-server (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Bionic |
Fix Released
|
Medium
|
Dan Streetman | ||
Cosmic |
Won't Fix
|
Medium
|
Unassigned | ||
Disco |
Won't Fix
|
Medium
|
Unassigned | ||
Eoan |
Won't Fix
|
High
|
Unassigned | ||
Focal |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
Version information is displayed by rabbitmq-server, preventing configuration management tools from deploying and maintaining the services properly.
[Test Case]
$ rabbitmqadmin --version
rabbitmqadmin %%VSN%%
[Regression Potential]
Very low. The patch simply adds a step to the makefile. Things to look for would be build-time related problems; none are expected.
[scope]
This is fixed in Debian by commit:
https:/
That is included in Debian starting in version 3.7.18-1, which is in Ubuntu starting in Focal. The version in Xenial does not include 'rabbitmqadmin' so this problem does not exist there.
This is needed only for Eoan and Bionic (but I will not patch Eoan, see other info below).
[other info]
Unfortunately, rabbitmq-server in Eoan was carried over from Disco, but one of its build dependencies, elixir, was upgraded in Eoan. The version of rabbitmq-server in Disco and Eoan internally sets a elixir upper version limit of 1.8.0, while it is version 1.9.1 in Eoan. So, rabbitmq-server is no longer (and never has been) buildable in Eoan. Since this is a minor issue and Eoan is EOL in several months, I think it is safer to skip this fix for Eoan and leave rabbitmq-server there untouched.
[Fix]
Upstream's release scripts substitute in the version string, but that logic isn't triggered during the regular debian package build. It's straightforward to fix by inserting an equivalent sed command to the makefile during our build.
This issue affects rabbitmq-server from Bionic forward, and will need carried in our own packaging. The fix may be worth forwarding to debian as well, once it's confirmed their package is affected as well.
For testing, a PPA with packages containing the fix is available at:
https:/
[Discussion]
[Original Report]
When running 'rabbitmqadmin --version' it shows %%VSN%% as the version information on Ubuntu 18.04 and not the correct rabbitmq version. We are using puppet to install and configure rabbitmq server and the puppet-rabbitmq modules [1] are using the version information from that command internally. Currently they are failing in Ubuntu 18.04.
Used versions:
Distributor ID: Ubuntu
Description: Ubuntu 18.04 LTS
Release: 18.04
Codename: bionic
rabbitmq-server: 3.6.10-1
[1] https:/
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: rabbitmq-server 3.6.10-1
ProcVersionSign
Uname: Linux 4.15.0-20-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
Date: Fri May 25 09:46:18 2018
PackageArchitec
SourcePackage: rabbitmq-server
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
mtime.conffile.
Related branches
- Christian Ehrhardt (community): Needs Information
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 51 lines (+31/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/fix-string-version.patch (+23/-0)
debian/patches/series (+1/-0)
- Christian Ehrhardt (community): Needs Information
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 51 lines (+31/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/fix-string-version.patch (+23/-0)
debian/patches/series (+1/-0)
- Christian Ehrhardt (community): Needs Information
- Canonical Server: Pending requested
- git-ubuntu developers: Pending requested
-
Diff: 51 lines (+31/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/fix-string-version.patch (+23/-0)
debian/patches/series (+1/-0)
- Andreas Hasenack (community): Needs Information
- Christian Ehrhardt (community): Needs Fixing
- Canonical Server: Pending requested
-
Diff: 51 lines (+31/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/fix-string-version.patch (+23/-0)
debian/patches/series (+1/-0)
tags: | added: patch |
tags: | added: server-next |
summary: |
- rabbitmqadmin shows %%VSN%% as version + [SRU] rabbitmqadmin shows %%VSN%% as version |
description: | updated |
Changed in rabbitmq-server (Ubuntu Bionic): | |
assignee: | nobody → Alvin Joseph Tang (alvintang3) |
Changed in rabbitmq-server (Ubuntu Cosmic): | |
assignee: | nobody → Alvin Joseph Tang (alvintang3) |
Changed in rabbitmq-server (Ubuntu Disco): | |
assignee: | nobody → Alvin Joseph Tang (alvintang3) |
Changed in rabbitmq-server (Ubuntu Bionic): | |
assignee: | Alvin Joseph Tang (alvintang3) → nobody |
Changed in rabbitmq-server (Ubuntu Cosmic): | |
assignee: | Alvin Joseph Tang (alvintang3) → nobody |
Changed in rabbitmq-server (Ubuntu Disco): | |
assignee: | Alvin Joseph Tang (alvintang3) → nobody |
Changed in rabbitmq-server (Ubuntu Eoan): | |
assignee: | Alvin Joseph Tang (alvintang3) → nobody |
Changed in rabbitmq-server (Ubuntu Eoan): | |
assignee: | nobody → Bryce Harrington (bryce) |
Changed in rabbitmq-server (Ubuntu Cosmic): | |
status: | Triaged → Won't Fix |
Changed in rabbitmq-server (Ubuntu Eoan): | |
importance: | Medium → High |
Changed in rabbitmq-server (Debian): | |
status: | Unknown → Fix Released |
Changed in rabbitmq-server (Ubuntu Focal): | |
status: | Triaged → Fix Released |
description: | updated |
Changed in rabbitmq-server (Ubuntu Disco): | |
status: | Triaged → Won't Fix |
description: | updated |
Changed in rabbitmq-server (Ubuntu Eoan): | |
status: | Triaged → Won't Fix |
tags: |
added: verification-done removed: verification-needed |
Confirmed in artful, bionic and cosmic.