Skip to content

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

Draft
avanthakkar wants to merge 2 commits into
ceph:mainfrom
avanthakkar:add-smb-rgw-creds-uri-deps
Draft

mgr/cephadm: track SMB rgw_creds_uri as a daemon dependency#69932
avanthakkar wants to merge 2 commits into
ceph:mainfrom
avanthakkar:add-smb-rgw-creds-uri-deps

Conversation

@avanthakkar

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.

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.

Implement intelligent action selection for SMB daemon updates by tracking
feature changes as dependencies. When SMB service features change (e.g.,
adding cephfs-proxy, remote-control, keybridge), the system now triggers
a REDEPLOY instead of RECONFIG, as these changes require container
structure modifications.

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

Signed-off-by: Shweta Sodani <[email protected]>
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]>
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