Skip to content

mgr/cephadm: track SMB rgw_creds_uri as a daemon dependency - #69932

Merged
phlogistonjohn merged 1 commit into
ceph:mainfrom
avanthakkar:add-smb-rgw-creds-uri-deps
Jul 13, 2026
Merged

phlogistonjohn merged 1 commit into
ceph:mainfrom
avanthakkar:add-smb-rgw-creds-uri-deps

Conversation

@avanthakkar

@avanthakkar avanthakkar commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Depends on #69907

When an RGW share is added to a cluster that already has CephFS shares, RGW credentials show as empty in net conf list inside the container. The private-store URI carrying credentials is appended to SAMBACC_CONFIG via extra_config_uris, but was not tracked as a dependency for cephadm to redeploy the daemon. Thus update-config --watch sidecar
continues running with the stale SAMBACC_CONFIG and never receives the RGW credentials URI.

The PR intends to fix this issue by adding rgw_creds_uri as a dependency and include it in REDEPLOY action too.

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

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.

@github-actions

Copy link
Copy Markdown

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

@avanthakkar
avanthakkar force-pushed the add-smb-rgw-creds-uri-deps branch from b960d6c to 74dd8a9 Compare July 10, 2026 14:17
@avanthakkar
avanthakkar force-pushed the add-smb-rgw-creds-uri-deps branch from 74dd8a9 to c66b3b6 Compare July 10, 2026 14:21
Add rgw_creds_uri as a Dep.FIELD in get_dependencies and include it in
needs_redeploy_prefixes so a change triggers REDEPLOY.

Also fix _save_pending_rgw_config to use cred_map.get() instead
of a bare dict lookup.

Fixes: https://tracker.ceph.com/issues/77763
Signed-off-by: Avan Thakkar <[email protected]>
@avanthakkar
avanthakkar force-pushed the add-smb-rgw-creds-uri-deps branch from c66b3b6 to 2063d84 Compare July 10, 2026 14:29
@avanthakkar
avanthakkar marked this pull request as ready for review July 10, 2026 14:29
@avanthakkar
avanthakkar requested review from a team as code owners July 10, 2026 14:29
Comment thread src/pybind/mgr/cephadm/services/smb.py Resolved
Comment thread src/pybind/mgr/cephadm/services/smb.py Resolved
@phlogistonjohn

Copy link
Copy Markdown
Contributor

FWIW I prefer plain functions if something doesn't need to be a method. I don't think this strictly needs to be a classmethod (don't get me started on staticmethod). But I don't think it's a problem and I won't ask for changes on this.

@phlogistonjohn

Copy link
Copy Markdown
Contributor

@phlogistonjohn

Copy link
Copy Markdown
Contributor

Teuthology run: https://pulpito-ng.ceph.com/runs/phlogistonjohn-2026-07-11_22:29:08-orch-wip-phlogistonjohn-testing-1-2026-07-10-1816-distro-default-trial
3 failures / 45 jobs - all failures are the well-known ctdb status failures

@Sodani

Sodani commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

LGTM Thanks,

@Sodani
Sodani removed their request for review July 13, 2026 06:07

@anoopcs9 anoopcs9 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, thanks.

@phlogistonjohn
phlogistonjohn merged commit 690a13b into ceph:main Jul 13, 2026
17 of 21 checks passed
@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/29255457669

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.

4 participants