Bug 1209230 - [RFE] Show which version of the product a customer is running
Summary: [RFE] Show which version of the product a customer is running
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Distribution
Version: 1.2.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 2.0
Assignee: Ken Dreyer (Red Hat)
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-06 18:24 UTC by Neil Levine
Modified: 2022-02-21 18:19 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-10 20:39:18 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-3346 0 None None None 2022-02-21 18:19:17 UTC

Description Neil Levine 2015-04-06 18:24:33 UTC
As an admin, i want to know which version of the product I am running.
Can we perhaps install a file which contains the product version eg something equivalent to /etc/issue but in /etc/ceph on the admin node?)

Comment 1 Christina Meno 2015-04-21 18:31:14 UTC
We have multiple ways to figure this out. Would you please elaborate on the use case? Perhaps it is a matter of documentation?

Comment 2 Dan Mick 2015-04-21 19:55:31 UTC
So, ceph-the-CLI has a --version switch, as do all the daemons; ceph can also be used to dynamically query the version of a specific monitors or OSDs with commands 'ceph tell' and/or admin socket commands (because, of course, each daemon could be a different version).  Also, there are versions of the packages installed available from the package manager.

What precisely are we looking for?

Comment 3 Ken Dreyer (Red Hat) 2015-04-22 20:45:45 UTC
Re-targeting to 2.0 until we can get further clarification

Comment 4 Neil Levine 2015-09-24 18:58:31 UTC
This is not about which version of Ceph per se is about which version of RHCS.

My thinking is we do something similar to /etc/issue in that the version gets set (eg. 1.2.0) the first time you install the software as part of an explicit, core, common package (in Debian land I think this is base-files). In our case, it would probably be ceph-osd or ceph-mon.

Individual packages can get updated via asyncs but when a major or point release install happens the version gets bumped (to 1.2.3).

Comment 5 Ken Dreyer (Red Hat) 2015-09-24 22:55:37 UTC
Fixing the sha1 string in "ceph --version" is going to require a change to rdopkg, https://github.com/redhat-openstack/rdopkg/pull/30

Comment 6 Ken Dreyer (Red Hat) 2016-02-29 16:11:01 UTC
Neil, do you still want to store this information in a file, here? If so, we can put it into the "ceph-base" package (this package contains files that all the MON/OSD/MDS daemons will share).

/etc/redhat-ceph-storage ok?

Comment 7 Neil Levine 2016-02-29 22:41:07 UTC
Works for me.

Comment 8 Ken Dreyer (Red Hat) 2016-03-01 20:46:49 UTC
Is it ok if the file is only on the MON, OSD, and MDS nodes?

I propose we use the same format as /etc/os-release (https://www.freedesktop.org/software/systemd/man/os-release.html). So our file would contain:

$ cat /etc/redhat-ceph-storage
VERSION_ID="2.0"

And we would bump that to 2.1, 2.2, etc for every minor point release.

Comment 9 Neil Levine 2016-03-01 20:50:30 UTC
+1

Comment 10 Ken Dreyer (Red Hat) 2016-03-15 12:47:30 UTC
Not done in v10.0.4 yet.

Comment 11 Ken Dreyer (Red Hat) 2016-04-26 20:40:58 UTC
Not done in v10.2.0 yet.


Note You need to log in before you can comment on or make changes to this bug.