Skip to content

Revert "Use GANESHA_REPO_BASEURL for NFS-Ganesha on all distros" - #68985

Merged
djgalloway merged 1 commit into
ceph:mainfrom
djgalloway:nfs-ganesha-selinux
May 21, 2026
Merged

djgalloway merged 1 commit into
ceph:mainfrom
djgalloway:nfs-ganesha-selinux

Conversation

@djgalloway

@djgalloway djgalloway commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

The ganesha spec file is calling in a system package that is in CentOS 10 Stream but not yet in Rocky/Alma/RHEL/whatever.

This reverts commit 1163bd6.

Fixes: https://tracker.ceph.com/issues/76681

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.

@djgalloway
djgalloway requested a review from a team as a code owner May 18, 2026 23:13
@djgalloway

Copy link
Copy Markdown
Contributor Author

@djgalloway
djgalloway requested a review from dmick May 18, 2026 23:13

@dmick dmick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is there a better way to fix this overall than just failing? Should the upstream ganesha packagers be made aware so that they can b e compatible with rocky10? something like, I don't know, making the dependency on the selinux package weak, or ... I don't know what, how do other selinux additions work?... (I'm not asking you, just asking if we should raise this with the ganesha upstream packagers)

Comment thread container/Containerfile Resolved
@rkachach

rkachach commented May 19, 2026 •

Copy link
Copy Markdown
Contributor

@djgalloway Thanks for taking care of the issue. I tested the build by including this PR and it seems to work https://jenkins.ceph.com/job/ceph-dev-pipeline/5406/ ... I'm running orch Teuthology to check NFS jobs

@djgalloway
djgalloway force-pushed the nfs-ganesha-selinux branch from 5c74773 to 5a37ee3 Compare May 19, 2026 13:40
@ShwetaBhosale1

Copy link
Copy Markdown
Contributor

@djgalloway I was checking with @kalebskeithley, and he is okay with tweaking the version in nfs. Do you know which version is available on Rocky Linux 10.1 or CentOS Stream 9?

Kaleb KEITHLEY  [6:19 PM]
I'm not really sure what you're asking.   The ganesha .spec file just has a dependency on selinux-policy, no particular version. AIUI that version >= 42.1.18 is possibly/probably derived by rpmbuild.  (and the dependency on selinux-policy-base comes from selinux-policy, not ganesha.)
selinux-policy seems to be 41.xx and 42.1.xx generally in EL9 and EL10 respectively, based on what I see in brew and CentOS cbs.
Are you saying 42.1.18 is too new?  42.1.20+ are the latest builds in brew, but maybe they haven't landed in a RHEL10 release yet.
If that's the case I can tweak the .spec and explicitly set a version that will work and respin the package.  What version are you seeing on your RHEL10 box?

@djgalloway

Copy link
Copy Markdown
Contributor Author

@batrick

batrick commented May 20, 2026

Copy link
Copy Markdown
Member

This PR has been added to main integration testing by pdonnell started 2026-05-13-18:38.

@dmick

dmick commented May 20, 2026

Copy link
Copy Markdown
Member

it looks to me like nfs-ganesha-selinux requires selinux packages using the selinux_requires rpm macro. I don't know if that expands to something with versions or not. I can't find it on Rocky 10's base image, so I assume it's likely to be in some rpm package.

@dmick

dmick commented May 20, 2026 •

Copy link
Copy Markdown
Member

it (selinux_requires) is in selinux-policy, in macros.d/macros.selinux-policy, and for rocky10, it sets the minimum version to 42.1.7. I don't know how or when or if the version will increase to match centos10-stream's minimum.

this seems to suggest that using centos10-stream packages for rocky10 is not viable.

@rkachach

Copy link
Copy Markdown
Contributor

@djgalloway
djgalloway force-pushed the nfs-ganesha-selinux branch from 5a37ee3 to c1ed15d Compare May 20, 2026 20:40
@djgalloway
djgalloway requested a review from a team as a code owner May 20, 2026 20:40
@djgalloway
djgalloway requested review from afreen23 and devikab25 May 20, 2026 20:40
@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard May 20, 2026
@djgalloway
djgalloway force-pushed the nfs-ganesha-selinux branch from c1ed15d to e7f99b4 Compare May 20, 2026 20:41
@djgalloway djgalloway changed the title Containerfile: install nfs-ganesha packages separately with --skip-br… Revert "Use GANESHA_REPO_BASEURL for NFS-Ganesha on all distros" May 20, 2026
The ganesha spec file is calling in a system package that is in CentOS 10 Stream but not yet in Rocky/Alma/RHEL/whatever.

This reverts commit 1163bd6.

Fixes: https://tracker.ceph.com/issues/76681

Signed-off-by: David Galloway <[email protected]>
@djgalloway
djgalloway force-pushed the nfs-ganesha-selinux branch from e7f99b4 to 6619587 Compare May 20, 2026 20:53
@dmick

dmick commented May 20, 2026

Copy link
Copy Markdown
Member

Does anyone know the source of the shaman build and how it was built? (against earlier centos10-stream, or rhel10, or?...)

@phlogistonjohn

phlogistonjohn commented May 20, 2026 •

Copy link
Copy Markdown
Contributor

@ShwetaBhosale1 @rkachach - NOTE: once this change is merged to ceph we should be back where we were before Shweta's PR. Once there are ganesha builds that are rhel/rocky 10 compatible and we're ready to use them we should ensure that the change to use those rpms builds correctly and passes teuthology tests. Somehow that slipped by with the earlier PR. Happy to discuss further or make it a future orch weekly topic if that's convenient.

@dmick

dmick commented May 20, 2026

Copy link
Copy Markdown
Member

(and for the record, the PR this is reverting is #68909)

@djgalloway
djgalloway merged commit 124ec1c into ceph:main May 21, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard May 21, 2026
@djgalloway
djgalloway deleted the nfs-ganesha-selinux branch May 21, 2026 14:22
@github-actions

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I have resolved the following tracker ticket due to the merge of this PR:

No backports are pending for the ticket. If this is incorrect, please update the tracker
ticket and reset to Pending Backport state.

Update Log: https://github.com/ceph/ceph/actions/runs/26231984615

@dmick

dmick commented May 21, 2026

Copy link
Copy Markdown
Member

I believe the changes in #68909 can now be reapplied. I manually installed nfs-ganesha into a rocky10 container and verified that 1) it worked and 2) the dependency on selinux-policy was for 42.1.7, which was present (which was why it worked)

@rkachach

Copy link
Copy Markdown
Contributor

@ShwetaBhosale1 can you plz re-apply your original PR and test the build?

@rkachach

Copy link
Copy Markdown
Contributor

@dmick @djgalloway Shweta has opened this new PR #69073 with the previously reverted changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants