Skip to content

tentacle: cephadm/smb: Bind mount /run with 0755 - #69514

Merged
batrick merged 2 commits into
ceph:tentaclefrom
anoopcs9:wip-77421-tentacle
Aug 21, 2026
Merged

batrick merged 2 commits into
ceph:tentaclefrom
anoopcs9:wip-77421-tentacle

Conversation

@anoopcs9

@anoopcs9 anoopcs9 commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

backport tracker: https://tracker.ceph.com/issues/77421


backport of #69289
parent tracker: https://tracker.ceph.com/issues/77120

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

NOTE: Due to missing new smb test infrastructure from the main branch, there is a deviation in how the associated regression test is backported and cherry-picked here. The required test steps are added directly into the job YAML files instead of using dedicated workunit test files under qa/workunits/smb/tests, because those files are not yet present in tentacle. Otherwise the bug fix lines are intact.

The host side 'run' directory under /var/lib/ceph/<fsid>/<svc_dir> bind
mounted into SMB containers is created with mode 0770, preventing any
non owner processes from accessing unix domain sockets or named pipes
under /run. This breaks smbd to winbindd communication, causing SID to
name resolution failures for AD joined deployments. Therefore change
permissions to 0755 to match standard /run semantics.

Fixes: https://tracker.ceph.com/issues/77120
Signed-off-by: Anoop C S <[email protected]>
(cherry picked from commit c0fda14)
@anoopcs9
anoopcs9 requested a review from a team as a code owner June 16, 2026 08:52
@anoopcs9 anoopcs9 added this to the tentacle milestone Jun 16, 2026
@github-actions github-actions Bot added the tests label Jun 16, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jun 16, 2026
Verify that rpcclient lookupsids resolves domain user SIDs correctly
inside the smbd container, preventing regressions on /run bind mount
permissions that break smbd to winbindd communication.

Fixes: https://tracker.ceph.com/issues/77120
Signed-off-by: Anoop C S <[email protected]>
(cherry picked from commit 31e1c7b)
@anoopcs9
anoopcs9 force-pushed the wip-77421-tentacle branch from 9cafcf0 to 198b748 Compare June 16, 2026 08:54
@anoopcs9

anoopcs9 commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Note:

Since smb.workunit and the related integration test infrastructure are not yet present in tentacle, I've included the equivalent test directly in the job YAML using template.exec.

@anoopcs9 anoopcs9 removed the releng-audit-fail Release engineering: failed backport verification audit. label Jun 17, 2026
@anoopcs9
anoopcs9 requested a review from phlogistonjohn June 17, 2026 16:26
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jun 17, 2026

@phlogistonjohn phlogistonjohn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@phlogistonjohn

Copy link
Copy Markdown
Contributor

@rkachach
We will need a Component Lead override on this due to the expected difference in the tests

@anoopcs9

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@rkachach

Copy link
Copy Markdown
Contributor

Hi @phlogistonjohn I'm not familiar enough with SMB tests, but it seems the code being cherry-picked has nothing to do with the original code. I understand that this is the case bcz the infra is not the same. So I'm wondering if this change should be treated as "backport" or just a direct PR on top of Tentacle as in fact we are not cherry-picking the original code which could be misleading ...

@phlogistonjohn

phlogistonjohn commented Jun 29, 2026 •

Copy link
Copy Markdown
Contributor

Everything is a backport except for the tests. The tests were done differently because main contains a refactor/new feature of the tests that tentacle is missing.

To the best of my knowledge the code under src/ is a clean backport.

So we run afoul of the bot's assumption that the entire backport should be the same as main. I really don't see an advantage of opening a new PR vs. simply overriding the bot based on these instructions:

Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.

and

If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

(since it is intentional - I guess we could be more explicit on the "documented" front - @anoopcs9 want to update the commit message to be very clear? I know I was aware but going back over the PR, I don't see it called out particularly "loudly")

so I pinged you as the overall orch component lead :-)

@rkachach

Copy link
Copy Markdown
Contributor

Awesome, thank you very much @phlogistonjohn for the detailed explanation. As John mentioned, @anoopcs9 I think documenting what's going on in the PR description (specially the fact the code is the same and the reason why the testing changes are different) would definitely be useful for anybody reviewing backports :)

@rkachach

Copy link
Copy Markdown
Contributor

/audit override

@rkachach rkachach removed the releng-audit-fail Release engineering: failed backport verification audit. label Jun 30, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @rkachach.

@rkachach

Copy link
Copy Markdown
Contributor

jenkins test make check

@anoopcs9

anoopcs9 commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor Author

As John mentioned, @anoopcs9 I think documenting what's going on in the PR description (specially the fact the code is the same and the reason why the testing changes are different) would definitely be useful for anybody reviewing backports :)

I've added a note in the PR description to explain the situation, thanks.

@anoopcs9

anoopcs9 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard cephadm

1 similar comment
@anoopcs9

anoopcs9 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard cephadm

@yuriw

yuriw commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

@anoopcs9 this PR is part of the wip-yuri13-testing integration batch and still needs review approval before it can be merged. Could you request a review or ping a reviewer? Thanks!

@yuriw

yuriw commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri13-testing-20260729.211123-tentacle.

@anoopcs9
anoopcs9 requested review from a team and avanthakkar July 30, 2026 06:08
@batrick batrick added the releng-audit-queue Release engineering: queued for backport verification audit. label Aug 21, 2026
@github-actions github-actions Bot removed releng-audit-queue Release engineering: queued for backport verification audit. releng-audit-override labels Aug 21, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ceph Release Engineering Audit Report

Commit Parity Visualizer

BACKPORT PR #69514 SOURCE PR SOURCE STATUS
4176dc4 cephadm/smb: Bind mount /run with 0755 PR #69289 c0fda14 cephadm/smb: Bind mount /run with 0755
198b748 qa/smb: Test SID resolution in AD joined containers 31e1c7b qa/smb: Test SID resolution in AD joined containers

Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

This does not necessarily indicate an issue but a maintainer should review.

**Click to expand conflict summaries.**

Deviation in Backport 198b748 (cherry-pick of 31e1c7b)

Affected File(s)

Range Diff

Click to expand
--- Original (31e1c7bd)
+++ Backport (198b7480)
@@ -6,3 +6,4 @@
 
 Fixes: https://tracker.ceph.com/issues/77120
 Signed-off-by: Anoop C S <[email protected]>
+(cherry picked from commit 31e1c7bd5e461dca0a07b6c631f738272360c549)

================================================================================
RANGE DIFF
================================================================================

1:  31e1c7bd5e4 < -:  ----------- qa/smb: Test SID resolution in AD joined containers
-:  ----------- > 1:  198b7480de8 qa/smb: Test SID resolution in AD joined containers

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.


🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Aug 21, 2026
@batrick batrick modified the milestones: tentacle, v20.2.5 Aug 21, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Aug 21, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @batrick.

View workflow run

@batrick
batrick merged commit 4fb603d into ceph:tentacle Aug 21, 2026
16 of 20 checks passed
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.

6 participants