Bug #76134
closedUpdate the implementation of vendor information in `ceph version` command output
0%
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
NN Updated by Naveen Naidu 8 months ago
- Related to Enhancement #75954: Update the implementation of vendor information in `ceph version` command output added
NN Updated by Naveen Naidu 8 months ago
NN Updated by Naveen Naidu 8 months ago
PR to revert the commits: https://github.com/ceph/ceph/pull/68479
RZ Updated by Radoslaw Zarzynski 8 months ago
- Status changed from New to In Progress
Approved the revert.
LF Updated by Laura Flores 7 months ago
PR is in testing.
NN Updated by Naveen Naidu 7 months ago
The revert PR has been merged: https://github.com/ceph/ceph/pull/68479
LF Updated by Laura Flores 7 months ago
- 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
- Status changed from In Progress to Resolved
The define based approach has been merged into main: https://github.com/ceph/ceph/pull/66730
NN Updated by Naveen Naidu 29 days ago
- Backport deleted (
tentacle)
UB Updated by Upkeep Bot 29 days ago
- 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