Bug 2029714

Summary: ceph --version command reports incorrect ceph version in 5.x post upgrade from 4.2 when compared with ceph version output
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Preethi <pnataraj>
Component: CephadmAssignee: Redouane Kachach Elhichou <rkachach>
Status: CLOSED ERRATA QA Contact: Manisha Saini <msaini>
Severity: high Docs Contact: Akash Raj <akraj>
Priority: high    
Version: 5.0CC: adking, akraj, kdreyer, mgowri, msaini, rkachach, vereddy
Target Milestone: ---   
Target Release: 6.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-17.2.6-5.el9cp Doc Type: Enhancement
Doc Text:
.`cephadm shell` command now reports the image being used for the shell on startup Previously, users would not always know which image was being used for the shell. This would affect the packages that were used for commands being run within the shell. With this release, `cephadm shell` command reports the image used for the shell on startup. Users can now see the packages being used within the shell, as they can see the container image being used, and when that image was created as the shell starts up.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-15 09:15:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2180567    
Bug Blocks: 2192813    

Description Preethi 2021-12-07 07:03:17 UTC
Description of problem:
ceph --version command reports incorrect ceph version in 5.x post upgrade from 4.2 to 5.x when compared with ceph version output-
Seen outside cephadm shell -

This is seen outside shell. Since ceph-common pkg is not updated and reports the older version. We need ceph --version and ceph version reports the same version.

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

[root@magna031 ubuntu]# ceph version
ceph version 16.2.6-38.el8cp (328eaa29099ae79a9e8d732691f8c31af68e5359) pacific (stable)

How reproducible:


Steps to Reproduce:
1. Perform upgrade from 4.2 baremetal to 5.x  container
2. Check for ceph version once the upgrade is succesful
3. Observe the behaviour

Actual results: Ceph --version reports incorrect ceph version and it still shows the older version which was present before upgrade whereas ceph version reports correct version
 This is seen outside shell. Since ceph-common pkg is not updated and reports the older version.

Expected results: Ceph --version should report the correct version of ceph version after upgrade

output for reference: - This is seen outside shell. Since ceph-common pkg is not updated and reports the older version.
[root@magna031 ubuntu]# ceph --version
ceph version 16.2.0-120.el8cp (4961b122d00c122f3e170fb05abc49442c4803f0) pacific (stable)
[root@magna031 ubuntu]# ceph version
ceph version 16.2.6-38.el8cp (328eaa29099ae79a9e8d732691f8c31af68e5359) pacific (stable)
[root@magna031 ubuntu]# 


another cluster output:
[root@ceph-monitor-1 ~]# ceph --version
ceph version 14.2.11-208.el8cp (6738ba96f296a41c24357c12e8d594fbde457abc) nautilus (stable)
[root@ceph-monitor-1 ~]# ceph version
ceph version 16.2.0-143.el8cp (0e2c6f9639c37a03e55885fb922dc0cb1b5173cb) pacific (stable)
[root@ceph-monitor-1 ~]#

Additional info:

Comment 3 Redouane Kachach Elhichou 2022-03-09 13:32:38 UTC
This PR is not meant for this issue. I posted here by mistake.

Comment 4 Redouane Kachach Elhichou 2022-05-10 13:24:24 UTC
As part of the changes introduce in the PR [1] cephadm now will try to infer the ceph image from the daemons containers (if any). This way we avoid mismatch between the version reported by cephadm and ceph --version. This enhancement should fix most of the mismatch issues that were normally observed after ceph upgrades.


[1] https://github.com/ceph/ceph/pull/45598

Comment 20 Manisha Saini 2023-04-17 19:10:54 UTC
Hi Adam,

I have updated the testing result for both the changes made as part of https://github.com/ceph/ceph/pull/45598.

Let us know if this suffice the verification for this BZ based on comment #17 and comment #19.

Also, the summary of the bug is not aligned with the fixes made as part of this BZ.

Comment 22 Manisha Saini 2023-04-18 17:57:43 UTC
Thanks Adam.Let's keep this BZ only to track the changes.

Will move this BZ to verified as the changes are tested.

Comment 25 errata-xmlrpc 2023-06-15 09:15:29 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 (Moderate: Red Hat Ceph Storage 6.1 security and bug fix update), 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/RHSA-2023:3623