Project

General

Profile

Actions

Bug #76134

closed
NN NN

Update the implementation of vendor information in `ceph version` command output

Bug #76134: Update the implementation of vendor information in `ceph version` command output

Added by Naveen Naidu 8 months ago. Updated 29 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-4846-gf5e516f87f
Released In:
Upkeep Timestamp:
2026-11-05T00:45:46+00:00

Description

A new feature was added in https://github.com/ceph/ceph/pull/67299, which allowed vendors or downstream distributions to append their release version information to the output of the `ceph version(s)` command. This PR expects the file called `/etc/ceph_version` to be present in the system and to contain the version information. This approach is sub-optimal and has many issues. The conversation related to the issues are documented in this PR: https://github.com/ceph/ceph/pull/67693

To address the above concerns, another PR was raised here: https://github.com/ceph/ceph/pull/68356. But upon discussion with the team it was oncluded that the current approach is incorrect - the version string should not be runtime-dependent. Reading the version from a file means the output of ceph version cannot be fully trusted and is potentially insecure.The correct approach is to bake the version string directly into the binary, as demonstrated in this POC: https://github.com/ceph/ceph/pull/66730

The following are the steps that will be taken:
- Revert the current commits [1],[2] from main
- Close all the relevant PRs: https://github.com/ceph/ceph/pull/68356, https://github.com/ceph/ceph/pull/67693
- Open the correct PR: https://github.com/ceph/ceph/pull/66730

[1]: https://github.com/ceph/ceph/commit/5022557a0f23e131731224b11b466a79eb1042c0
[2]: https://github.com/ceph/ceph/commit/5022557a0f23e131731224b11b466a79eb1042c0


Related issues 1 (0 open — 1 closed)

Related to RADOS - Enhancement #75954: Update the implementation of vendor information in `ceph version` command outputClosedNaveen Naidu

Actions

NN Updated by Naveen Naidu 8 months ago Actions #1

  • Related to Enhancement #75954: Update the implementation of vendor information in `ceph version` command output added

RZ Updated by Radoslaw Zarzynski 8 months ago Actions #4

  • Status changed from New to In Progress

Approved the revert.

LF Updated by Laura Flores 7 months ago Actions #5

PR is in testing.

LF Updated by Laura Flores 7 months ago Actions #7

  • Pull request ID set to 66730

Thanks @Naveen Naidu - feel free to update the ticket when the fix is ready for review.

NN Updated by Naveen Naidu 29 days ago Actions #8

  • Status changed from In Progress to Resolved

NN Updated by Naveen Naidu 29 days ago Actions #9

  • Backport deleted (tentacle)

UB Updated by Upkeep Bot 29 days ago Actions #10

  • Merge Commit set to f5e516f87fd7b33a1dbd92935a155c7271215b90
  • Fixed In set to v21.3.0-4846-gf5e516f87f
  • Upkeep Timestamp set to 2026-11-05T00:45:46+00:00
Actions

Also available in: PDF Atom