Repository navigation
mgr/cephadm: Update service name as userId for nfs cluster, to keep it same across nfs cluster - #64317
Conversation
f558340 to
6e03dcb
Compare
6e03dcb to
32bce98
Compare
|
depends on #63617 |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
ff95a0a to
88d7bb1
Compare
88d7bb1 to
baa2807
Compare
baa2807 to
bf5ccc4
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
bf5ccc4 to
c2ae48e
Compare
There was a problem hiding this comment.
Pull request overview
Updates cephadm-managed NFS clusters to use one service-level cephx identity while preserving legacy identities after upgrades.
Changes:
- Uses
client.<service_name>across NFS daemons. - Adds migration detection for legacy per-daemon identities.
- Adjusts configuration, cleanup, and tests.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
src/pybind/mgr/cephadm/migrations.py |
Adds legacy NFS identity migration. |
src/pybind/mgr/cephadm/module.py |
Cleans NFS migration state. |
src/pybind/mgr/cephadm/services/nfs.py |
Implements shared NFS authentication. |
src/pybind/mgr/cephadm/services/cephadmservice.py |
Adjusts generic auth handling. |
src/pybind/mgr/cephadm/services/smb.py |
Aligns auth method signature. |
src/pybind/mgr/cephadm/templates/services/nfs/ganesha.conf.j2 |
Updates generated Ganesha configuration. |
src/pybind/mgr/cephadm/tests/test_migration.py |
Adds migration tests. |
src/pybind/mgr/cephadm/tests/test_cephadm.py |
Updates expected NFS identity. |
src/pybind/mgr/cephadm/tests/services/test_ingress.py |
Updates expected NFS configuration. |
…t same across cluster Also handled upgrade, to keep using old userid for cluster created before upgrade Tracker: https://tracker.ceph.com/issues/71872 Signed-off-by: Shweta Bhosale <[email protected]>
c2ae48e to
5d66653
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated no new comments.
Suppressed comments (2)
src/pybind/mgr/cephadm/services/nfs.py:99
- This branch returns without fencing the stale rank whenever any other daemon in the service remains. With the new shared
client.<service_name>credential, the removed/stale daemon retains the same valid key as the active daemons and can continue accessing the recovery namespace, so rank replacement and scale-down lose the credential-revocation behavior thatfence()previously provided. A per-daemon fencing credential or another effective revocation mechanism is required before the data-path key can safely be shared.
# as new auth entity is common across cluster, we will need to delete it for last daemon
if rados_user == service_name and self.mgr.cache.get_daemons_by_service(service_name):
logger.debug(f'Not removing key for {entity} as daemons still exists')
return
src/pybind/mgr/cephadm/services/cephadmservice.py:63
- NFS is still explicitly accepted for the
rotate-keyaction (module.py:3228-3230), and that path callsCephadmDaemonDeploySpec.entity_name(), which delegates to this helper. Removingnfshere therefore makes every NFS key rotation fail withOrchestratorError("unknown daemon type nfs"). The rotation path also needs to resolve the legacy per-daemon entity versus the new service-wide entity; for a shared entity it must coordinate redeployment of all service daemons rather than rotating just one.
if daemon_type in ['rgw', 'rbd-mirror', 'cephfs-mirror', "iscsi", 'nvmeof', 'ingress', 'ceph-exporter']:
|
jenkins test make check |
|
jenkins test make check arm64 |
|
ok to test |
adk3798
left a comment
There was a problem hiding this comment.
Left one nitpick comment, but approving because this is in a state where it would be fine to merge
|
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 |
PR changes:
Tracker: https://tracker.ceph.com/issues/71872
Testing done:
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition