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:
This PR is not meant for this issue. I posted here by mistake.
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
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.
Thanks Adam.Let's keep this BZ only to track the changes. Will move this BZ to verified as the changes are tested.
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