Skip to content

mgr/cephadm: During upgrade if NFS cluster is using old nodeids, keep using old node ids - #63617

Merged
rkachach merged 1 commit into
ceph:mainfrom
ShwetaBhosale1:fix_nfs_nodeid_issue
Jul 13, 2026
Merged

rkachach merged 1 commit into
ceph:mainfrom
ShwetaBhosale1:fix_nfs_nodeid_issue

Conversation

@ShwetaBhosale1

@ShwetaBhosale1 ShwetaBhosale1 commented May 30, 2025 •

Copy link
Copy Markdown
Contributor

Fixes: https://tracker.ceph.com/issues/71509
Signed-off-by: Shweta Bhosale [email protected]

Testing logs:

[ceph: root@ceph-node-0 /]# ceph nfs cluster create mynfs '*'
[ceph: root@ceph-node-0 /]# ceph orch ls
NAME                       PORTS   RUNNING  REFRESHED  AGE  PLACEMENT  
crash                                  3/3  5s ago     10m  *          
mgr                                    2/2  5s ago     10m  count:2    
mon                                    3/5  5s ago     10m  count:5    
nfs.mynfs                  ?:2049      3/3  5s ago     21s  *          
osd.all-available-devices                6  5s ago     9m   *          
[ceph: root@ceph-node-0 /]#  ganesha-rados-grace --pool '.nfs' --ns mynfs dump
cur=4 rec=0
======================================================
nfs.mynfs.0	  
nfs.mynfs.1	  
nfs.mynfs.2	  
[ceph: root@ceph-node-0 /]#

[ceph: root@ceph-node-0 /]# ceph orch upgrade status
{
    "in_progress": true,
    "target_image": "quay.io/rh-ee-shbhosal/ceph@sha256:e4cce2111686132df4a452a5e2cbc5f06c15630355265703fbc0fe1cc2e58f65",
    "services_complete": [
        "mgr",
        "nfs",
        "mon",
        "crash",
        "mds",
        "osd"
    ],
    "which": "Upgrading all daemon types on all hosts",
    "progress": "19/19 daemons upgraded",
    "message": "Currently upgrading nfs daemons",
    "is_paused": false
}

RADOS_KV {
        UserId = "nfs.mynfs.0.1.ceph-node-0.qiimud";
        nodeid = "nfs.mynfs.0";
        pool = ".nfs";
        namespace = "mynfs";
}
Ceph {
        Use_old_uuid = true;
}

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

@ShwetaBhosale1
ShwetaBhosale1 requested a review from a team as a code owner May 30, 2025 16:29
@ShwetaBhosale1
ShwetaBhosale1 force-pushed the fix_nfs_nodeid_issue branch 3 times, most recently from a682c98 to 7b2d5cf Compare June 2, 2025 06:19
@ShwetaBhosale1

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@adk3798

adk3798 commented Jul 1, 2025

Copy link
Copy Markdown
Contributor

Comment on lines +2761 to +2762
val = ','.join(nfs_services) if nfs_services else None
self.set_store('nfs_services_with_old_nodeid', val)

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.

Suggested change
val = ','.join(nfs_services) if nfs_services else None
self.set_store('nfs_services_with_old_nodeid', val)
self.set_store('nfs_services_with_old_nodeid', ','.join(nfs_list) or None)

@@ -236,7 +243,7 @@ def create_rgw_keyring(self, daemon_spec: CephadmDaemonDeploySpec) -> str:
def run_grace_tool(self,
spec: NFSServiceSpec,
action: str,
nodeid: str) -> None:
nodeid: str = '') -> str:

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.

what would happen if we don't pass the nodeid to this function?

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.

It just wouldn't include the node id after the action in the grace tool command. That's a good thing for commands like dump (the use case this PR is making use of) that don't take a node id

@github-actions

github-actions Bot commented Sep 7, 2025

Copy link
Copy Markdown

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

@github-actions

github-actions Bot commented Nov 7, 2025

Copy link
Copy Markdown

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.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@github-actions github-actions Bot added the stale label Nov 7, 2025
@github-actions

github-actions Bot commented Dec 8, 2025

Copy link
Copy Markdown

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!

@github-actions

Copy link
Copy Markdown

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.
If you are a maintainer or core committer, please follow-up on this pull request to identify what steps should be taken by the author to move this proposed change forward.
If you are the author of this pull request, thank you for your proposed contribution. If you believe this change is still appropriate, please ensure that any feedback has been addressed and ask for a code review.

@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

@ShwetaBhosale1

Copy link
Copy Markdown
Contributor Author

@rkachach
rkachach merged commit 0a924da into ceph:main Jul 13, 2026
6 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/29246314639

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.

3 participants