Skip to content

build (new arch support) : Upgrade some PyPI dependency versions to enable better installation on riscv64#65142

Open
ffgan wants to merge 1 commit intoceph:mainfrom
ffgan:feature/allow_riscv_install_deps
Open

build (new arch support) : Upgrade some PyPI dependency versions to enable better installation on riscv64#65142
ffgan wants to merge 1 commit intoceph:mainfrom
ffgan:feature/allow_riscv_install_deps

Conversation

@ffgan
Copy link
Copy Markdown

@ffgan ffgan commented Aug 20, 2025

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



This PR has been reorganized and now simply upgrades the Python dependencies used by Ceph to make it easier to run install-deps.sh on Fedora 41+riscv64.

Since a certain number of projects still lack riscv64 support, if we want to add riscv64 support to Ceph, we need to do some additional work.

Let me re-introduce how to set up Ceph's dependencies in a Fedora 41+riscv64 environment. This mainly consists of two parts: RPM packages and PyPI packages.

For RPM packages, thanks to Fedora's good riscv64 support, only two packages are missing: golang-github-prometheus and libpmem-devel (and libpmemobj-devel ,which together include the nvml project). I've completed the RPM packaging for these two packages in advance and stored the files here. If you're interested in the RPM build process, feel free to @ me - I'm happy to answer any questions. In the future, I'll try to contact the package maintainers to ask about adding riscv64 support for these two packages. But for now at least, we need to manually download and install the RPM packages. Since this operation is only temporary and will become unnecessary once official riscv64 support is obtained, I haven't included this operation in the current PR. This means that in the case of Fedora 41+riscv64, we need to manually resolve these two dependency issues before running install-deps.sh.

For PyPI packages, I'd like to divide this into two parts.

The first part consists of packages that already support riscv64. This part isn't reflected in this PR because when we use the latest versions of certain packages, these packages have already gained riscv64 support, so we don't need to worry about them. For example, packages like rpds-py and coverage.

The second part consists of packages that don't yet support riscv64, which is exactly what this PR introduces. These packages are supported by RISE's wheel_builder project - see details here. To use packages from wheel_builder, we need to add an additional PyPI source: https://gitlab.com/api/v4/projects/56254198/packages/pypi/simple. Similarly, since this operation is temporary and will no longer be needed as upstream fully supports riscv64 over time, I haven't included the source configuration operation in this PR either.

After completing the setup for these two parts, we can easily build Ceph's dependency environment on Fedora 41+riscv64. For specific setup steps, you can refer to my CI.

So obviously, if upstream projects fully support riscv64 in the future, we'll need to open another PR similar to this one, which would also simply upgrade the dependency versions. Therefore, I believe the current PR should work well and won't introduce any temporary code.

I ran a simple test in my own fork, and the results show everything went smoothly. You can refer to this link.

(wheel_builder's support is still not quite complete, which causes some packages to need to be built from source, resulting in somewhat lengthy build times. I'm currently trying to resolve this issue. This issue won't affect the current PR.)

If you have any questions about the above content, feel free to @ me directly - I'm happy to answer any questions.


Other Info
Co-authored-by: Jincheng Ni [email protected]
Co-authored-by: kotvaer [email protected]

Copy link
Copy Markdown
Contributor

@phlogistonjohn phlogistonjohn left a comment

Choose a reason for hiding this comment

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

Your Co-authored-by lines seem malformed. It should be adjacent to the Signed-off-by line and there should be a dash between authored and by. Also please note the patch submission guidelines and section about a proper signed off by line: https://github.com/ceph/ceph/blob/main/SubmittingPatches.rst

Comment thread admin/doc-requirements.txt
Comment thread install-deps.sh Outdated
Comment thread install-deps.sh Outdated
@ffgan ffgan force-pushed the feature/allow_riscv_install_deps branch from dc1283e to 9eece0e Compare November 24, 2025 02:11
@github-actions
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 Jan 23, 2026
@ceph-jenkins
Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@github-actions github-actions bot removed the stale label Jan 23, 2026
@ffgan ffgan force-pushed the feature/allow_riscv_install_deps branch from 9eece0e to 4f5ebcf Compare January 25, 2026 11:09
@ffgan ffgan changed the title build (new arch support) : Allow ./install-deps.sh to Execute on Ubuntu 22 + riscv64 build (new arch support) : Upgrade some PyPI dependency versions to enable better installation on riscv64 Jan 25, 2026
@ffgan
Copy link
Copy Markdown
Author

ffgan commented Jan 25, 2026

Hi @phlogistonjohn .

I've reorganized this PR, Welcome to review again.

@github-actions
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 Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

3 participants