Repository navigation
mgr/cephadm: add feature-based REDEPLOY logic for SMB services - #69907
Conversation
4f97911 to
59a355d
Compare
There was a problem hiding this comment.
Generally lgtm.
Avan's sambacc fix (for samba-in-kubernetes/sambacc#208) has been merged and I rebuilt samba-container. Please retest with the latest samba container and see if that resolves the issue loading the config we discussed earlier.
aac157b to
bcc6451
Compare
|
jenkins test api |
The issue seems to be resolved now. I see correct config loaded in |
Yes I have verified. This fix is working with latest samba container build. Thanks. |
|
@avanthakkar will you run teuthology with this PR? |
Yes infact I have triggered combined build of this PR and other which depends on this with similar changes for |
|
|
I see 3 failure about |
bcc6451 to
bcec7e6
Compare
|
I pulled the latest changes to my branch, seems there are changes in choose_next_action parameter by recent commit c20ba11 and updated the latest diff (addressed Anoop's comment regarding reuse the code through super) . Please review . Verified in my setup as well. |
|
While testing the current fix on the Exo cluster environment, I found another issue. The dependency list is being compared without considering ordering, so a sorted vs. unsorted dependency list is detected as a change. As a result, cephadm continuously triggers SMB daemon reconfiguration, causing the SMB containers to fail. For reference, the logs show:
I'm working on a fix by sorting the dependency list before comparison. Once I verify the fix on the Exo cluster, I'll update the PR. |
Good catch! I just checked nfs side and they do sort deps in |
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]>
bcec7e6 to
3c39960
Compare
|
I updated a PR with latest issue fix. Please check . |
Latest changes LGTM , thanks! |
|
There's a helper method |
|
Teuthology Run: https://pulpito-ng.ceph.com/runs/phlogistonjohn-2026-07-09_21:50:32-orch-wip-phlogistonjohn-testing-1-2026-07-09-1415-distro-default-trial Teuthology Re-run: https://pulpito-ng.ceph.com/runs/phlogistonjohn-2026-07-09_23:10:58-orch-wip-phlogistonjohn-testing-1-2026-07-09-1415-distro-default-trial |
|
I'm holding off merging this until #69950 is ready because I want to merge them together. |
|
jenkins test api |
anoopcs9
left a comment
There was a problem hiding this comment.
There's a helper method
sorted_dependencieson the base class to automate that. But it really doesn't matter enough to ask for changes there.
@Sodani and if you happen to update this patch to address the other comment, you may consider using sorted_dependencies().
sorted_dependencies is defined in CephadmService class .. and to use that we need to import this class , that i feel not required, instead current implementation would suffice the job. |
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
Checklist