Skip to content

Use CEPH_VENDOR_RELEASE env to apend vendor release version to the version string - #66719

Closed
Naveenaidu wants to merge 2 commits into
ceph:mainfrom
Naveenaidu:wip-naveen-add-downstream-envvar
Closed

Naveenaidu wants to merge 2 commits into
ceph:mainfrom
Naveenaidu:wip-naveen-add-downstream-envvar

Conversation

@Naveenaidu

@Naveenaidu Naveenaidu commented Dec 23, 2025 •

Copy link
Copy Markdown
Contributor

This change introduces a mechanism for vendors and downstream users to append their release version information to the output of the ceph version command. The goal is to make downstream or vendor-specific build metadata visible directly in the version string, without altering the upstream version semantics.

This PR introduces a new environment variable CEPH_VENDOR_RELEASE for appending vendor release information. It may be set by the user or build system to specify a vendor or downstream release version. When this variable is present, its value is appended to the ceph version output as a release suffix.

NOTE: When CEPH_VENDOR_RELEASE is unset or empty, the version output is identical to existing upstream behavior.

For eg: If CEPH_VENDOR_RELEASE is set to 8.1.0, the version output becomes:

> ceph version

ceph version 8d7daada90 (98d7daada90c6585c6724f69793e804a5e23cb24) tentacle (dev - Debug) release 8.1.0

The same suffix is reflected consistently for ceph versions

> ceph versions
{
    "mon": {
        "ceph version 8d7daada90 (98d7daada90c6585c6724f69793e804a5e23cb24) tentacle (dev - Debug) release 8.1.0": 3
    },
    "mgr": {
        "ceph version 8d7daada90 (98d7daada90c6585c6724f69793e804a5e23cb24) tentacle (dev - Debug) release 8.1.0": 1
    },
    "osd": {
        "ceph version 8d7daada90 (98d7daada90c6585c6724f69793e804a5e23cb24) tentacle (dev - Debug) release 8.1.0": 3
    },
    "mds": {
        "ceph version 8d7daada90 (98d7daada90c6585c6724f69793e804a5e23cb24) tentacle (dev - Debug) release 8.1.0": 3
    },
    "overall": {
        "ceph version 8d7daada90 (98d7daada90c6585c6724f69793e804a5e23cb24) tentacle (dev - Debug) release 8.1.0": 10
    }
}

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

Comment thread src/common/version.cc
return "";
}

return std::string(" release ") + env;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return std::string(" release ") + env;
return std::string(" release ") + STRINGIFY(env);

@Naveenaidu

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@tchaikov

tchaikov commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

@Naveenaidu seems you opened a similar pull request at #66730 . what's the purpose of this one?

@Naveenaidu

Copy link
Copy Markdown
Contributor Author

@Naveenaidu seems you opened a similar pull request at #66730 . what's the purpose of this one?

@tchaikov This PR and #66730 are two different approaches at trying to add vendor release string to ceph. This PR uses environment variable and the other PR uses #define string. I opened two PR's so that the reviewers can see how the approaches differ for them

@Naveenaidu Naveenaidu changed the title Use CEPH_VENDER_RELEASE env to apend vendor release version to the ve… Use CEPH_VENDER_RELEASE env to apend vendor release version to the version string Jan 8, 2026
@Naveenaidu Naveenaidu changed the title Use CEPH_VENDER_RELEASE env to apend vendor release version to the version string Use CEPH_VENDOR_RELEASE env to apend vendor release version to the version string Jan 8, 2026
@github-actions

github-actions Bot commented Mar 6, 2026

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Jul 3, 2026
@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown

This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution!

@github-actions github-actions Bot closed this Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants