Bug 1902597 - [cephadm]- 5.0 - cephadm version command doesn't show cephadm version
Summary: [cephadm]- 5.0 - cephadm version command doesn't show cephadm version
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Cephadm
Version: 5.0
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: ---
: 5.0
Assignee: Juan Miguel Olmo
QA Contact: Vasishta
Karen Norteman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-30 06:52 UTC by Preethi
Modified: 2021-08-30 08:27 UTC (History)
3 users (show)

Fixed In Version: ceph-16.0.0-7209.el8cp
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-30 08:27:12 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-1063 0 None None None 2021-08-27 05:19:06 UTC
Red Hat Product Errata RHBA-2021:3294 0 None None None 2021-08-30 08:27:26 UTC

Description Preethi 2020-11-30 06:52:39 UTC
Description of problem:[cephadm]- 5.0 - cephadm version command doesn't show cephadm version. We need to perform rpm cmmand to get the cephadm version installed 


Version-Release number of selected component (if applicable):


How reproducible:

[root@magna106 ubuntu]# sudo cephadm version
Using recent ceph image registry.redhat.io/rhceph-alpha/rhceph-5-rhel8:latest
ceph version 16.0.0-7209.el8cp (dc005a4e27b091d75a4fd83f9972f7fcdf9f2e18) pacific (dev)

[root@magna106 ubuntu]# sudo cephadm shell
Inferring fsid 2b4fd782-2f41-11eb-af0d-002590fc1bf0
Inferring config /var/lib/ceph/2b4fd782-2f41-11eb-af0d-002590fc1bf0/mon.magna106/config
Using recent ceph image registry.redhat.io/rhceph-alpha/rhceph-5-rhel8:latest
[ceph: root@magna106 /]# ceph version
ceph version 16.0.0-7209.el8cp (dc005a4e27b091d75a4fd83f9972f7fcdf9f2e18) pacific (dev)
[ceph: root@magna106 /]# ceph versions
{
    "mon": {
        "ceph version 16.0.0-7209.el8cp (dc005a4e27b091d75a4fd83f9972f7fcdf9f2e18) pacific (dev)": 1
    },
    "mgr": {
        "ceph version 16.0.0-7209.el8cp (dc005a4e27b091d75a4fd83f9972f7fcdf9f2e18) pacific (dev)": 1
    },
    "osd": {},
    "mds": {},
    "overall": {
        "ceph version 16.0.0-7209.el8cp (dc005a4e27b091d75a4fd83f9972f7fcdf9f2e18) pacific (dev)": 2
    }
}
[ceph: root@magna106 /]# rpm -qa | grep cephadm
cephadm-16.0.0-7209.el8cp.x86_64
ceph-mgr-cephadm-16.0.0-7209.el8cp.noarch
[ceph: root@magna106 /]# 


Steps to Reproduce:
1.
2.
3.

Actual results: 


Expected results: cephadm version command should display cephadm pkg version along with ceph and container id info


Additional info: magna106 root/q

Comment 1 Juan Miguel Olmo 2020-12-02 17:46:43 UTC
cephadm package ( the rpm that installs the cephadm binary) has the same version as the ceph cluster it installs. 

So it is what is shown what you use the command:

[root@magna106 ubuntu]# sudo cephadm version
Using recent ceph image registry.redhat.io/rhceph-alpha/rhceph-5-rhel8:latest
ceph version 16.0.0-7209.el8cp (dc005a4e27b091d75a4fd83f9972f7fcdf9f2e18) pacific (dev)


cephadm orchestrator is a Ceph manager module and it is an intrinsic part of the ceph manager daemon, having the same version of this daemon:

[ceph: root@magna106 /]# ceph versions
{
    "mon": {
        "ceph version 16.0.0-7209.el8cp (dc005a4e27b091d75a4fd83f9972f7fcdf9f2e18) pacific (dev)": 1
    },
    "mgr": {
        "ceph version 16.0.0-7209.el8cp (dc005a4e27b091d75a4fd83f9972f7fcdf9f2e18) pacific (dev)": 1
    },
    "osd": {},
    "mds": {},
    "overall": {
        "ceph version 16.0.0-7209.el8cp (dc005a4e27b091d75a4fd83f9972f7fcdf9f2e18) pacific (dev)": 2
    }
}

The version reported by the rpm tool ,,, matches the one installed. 
[ceph: root@magna106 /]# rpm -qa | grep cephadm
cephadm-16.0.0-7209.el8cp.x86_64
ceph-mgr-cephadm-16.0.0-7209.el8cp.noarch


Preethi: Maybe i do not see what is the problem, could you mind to explain it with more details? Why you need an specific version for cephadm?

Comment 5 errata-xmlrpc 2021-08-30 08:27:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 5.0 bug fix and enhancement), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:3294


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