Skip to content

mgr/nfs: warn when deprecated export/cluster delete commands are run - #69169

Merged
vshankar merged 2 commits into
ceph:mainfrom
dparmar18:i61482
Jul 20, 2026
Merged

vshankar merged 2 commits into
ceph:mainfrom
dparmar18:i61482

Conversation

@dparmar18

@dparmar18 dparmar18 commented May 29, 2026 •

Copy link
Copy Markdown
Contributor

change the hander from EmptyResponder() to ErrorResponseHandler() to emit the warning making use of the command's status channel.

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

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.

change the hander from EmptyResponder() to ErrorResponseHandler() to
emit the warning making use of the command's status channel.

Fixes: https://tracker.ceph.com/issues/61482
Signed-off-by: Dhairya Parmar <[email protected]>
@dparmar18
dparmar18 requested a review from a team May 29, 2026 13:38
@vshankar

vshankar commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Change looks fine. This needs doc and PRN update.

@dparmar18

Copy link
Copy Markdown
Contributor Author

Change looks fine. This needs doc and PRN update.

that has already been done in https://github.com/ceph/ceph/blob/main/doc/releases/pacific.rst?plain=1#L2163-L2165 long back and the docs already have removed the mention of these commands, compared octopus vs latest. I'm not sure if we would add this to PRN then

@vshankar

vshankar commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Change looks fine. This needs doc and PRN update.

that has already been done in https://github.com/ceph/ceph/blob/main/doc/releases/pacific.rst?plain=1#L2163-L2165 long back and the docs already have removed the mention of these commands, compared octopus vs latest. I'm not sure if we would add this to PRN then

Then it just needs a PRN note that the interfaces will now throw a warning.

Comment thread PendingReleaseNotes Outdated
@@ -336,6 +336,8 @@
to upgrade all OSDs in the cluster. For more details see tracker:
https://tracker.ceph.com/issues/73031.

* NFS: Added a deprecation warning when cluster/export delete commands are ran.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im not sure on what's the policy to add the note here since i see there there are sections based on ceph versions and there are notes above the versions too. @vshankar please enlighten.

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.

There are sections for previous versions and latest (unversioned, I believe), and there is grouping based on components. mgr/nfs related changes are included in CephFS section.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im not sure about CephFS Section, i can see there are several CephFS: <> notes spread across the PRN

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.

If there is not CephFS section in latest, then add one :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think the sections are per release not based on components. i've added it to the top. PTAL

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.

That's what I meant in #69169 (comment). You have (e.g.) >=20.x.[y] and then a component marker

* NFS:
* CephFS:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in that case its in correct place

Comment thread PendingReleaseNotes Outdated
@@ -336,6 +336,8 @@
to upgrade all OSDs in the cluster. For more details see tracker:
https://tracker.ceph.com/issues/73031.

* NFS: Added a deprecation warning when cluster/export delete commands are ran.

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.

reword as: "cluster/export delete commands now throw a deprecated warning when used"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, PTAL

@dparmar18

Copy link
Copy Markdown
Contributor Author

should I create a tracker that speaks of the release in which the commands would be removed? I'm thinking let's remove it in V since this has been lingering around since pacific and i guess that is sufficient enough time, WDYT? @vshankar

@vshankar

vshankar commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

should I create a tracker that speaks of the release in which the commands would be removed? I'm thinking let's remove it in V since this has been lingering around since pacific and i guess that is sufficient enough time, WDYT? @vshankar

Generally, we remove interfaces after deprecating them for 2 releases - not official, but what used to be followed :)

Let's remove it for V release. Add that in PRN too :)

@dparmar18

Copy link
Copy Markdown
Contributor Author

should I create a tracker that speaks of the release in which the commands would be removed? I'm thinking let's remove it in V since this has been lingering around since pacific and i guess that is sufficient enough time, WDYT? @vshankar

Generally, we remove interfaces after deprecating them for 2 releases - not official, but what used to be followed :)

Let's remove it for V release. Add that in PRN too :)

updated PRN https://github.com/ceph/ceph/compare/54764ff29f748cb585564aa91256cd70a4d9fa0a..881ed78b51d32be4002f21ec1dbb70b6b5c46bdc

@dparmar18

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@dparmar18

Copy link
Copy Markdown
Contributor Author

good to merge @vshankar

@vshankar

Copy link
Copy Markdown
Contributor

good to merge @vshankar

Yeh, mostly. I will run it through tests to see if anything fails. I don't expect failures though, but still.

@dparmar18

Copy link
Copy Markdown
Contributor Author

@vshankar please include this in your run

@vshankar

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by vshankar started 2026-06-23-12:41.

Comment thread src/pybind/mgr/nfs/module.py Resolved
@vshankar

Copy link
Copy Markdown
Contributor

@vshankar

Copy link
Copy Markdown
Contributor

@vshankar
vshankar merged commit 192b430 into ceph:main Jul 20, 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/29722769036

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