Bug 2029714 - ceph --version command reports incorrect ceph version in 5.x post upgrade from 4.2 when compared with ceph version output
Summary: ceph --version command reports incorrect ceph version in 5.x post upgrade fro...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Cephadm
Version: 5.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 6.1
Assignee: Redouane Kachach Elhichou
QA Contact: Manisha Saini
Akash Raj
URL:
Whiteboard:
Depends On: 2180567
Blocks: 2192813
TreeView+ depends on / blocked
 
Reported: 2021-12-07 07:03 UTC by Preethi
Modified: 2023-06-15 09:16 UTC (History)
7 users (show)

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.
Clone Of:
Environment:
Last Closed: 2023-06-15 09:15:29 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-2515 0 None None None 2021-12-07 07:03:57 UTC
Red Hat Product Errata RHSA-2023:3623 0 None None None 2023-06-15 09:16:01 UTC

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


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