Skip to content

mgr/dashboard: NFS Rate Limit for enabling disabling Ops Control for Export and Cluster - #62646

Open
dnyanee1997 wants to merge 2 commits into
ceph:mainfrom
rhcs-dashboard:nfs-iops-control
Open

dnyanee1997 wants to merge 2 commits into
ceph:mainfrom
rhcs-dashboard:nfs-iops-control

Conversation

@dnyanee1997

@dnyanee1997 dnyanee1997 commented Apr 3, 2025 •

Copy link
Copy Markdown
Contributor

Updated screen at bottom of the desription

Tracker : - https://tracker.ceph.com/issues/79007
Date: 04 August 2026
Bug fix : - Fix NFS Ganesha QoS dashboard APIs returning 500 by using mgr.remote() calls instead of returning mgr objects, and handle missing .nfs pool when reading QoS config.

Screencast.From.2026-08-04.14-24-09.mp4

This PR is based on #62120

Commit to be reviewed -> ae37b1f

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

Signed-off-by: Dnyaneshwari Talwekar [email protected]

Screencast.from.2025-04-03.11-59-01.mp4

**BUGS--

Commit to be reviewed ->
709b9ba

Screencast.From.2026-03-06.11-17-32.mp4

Fixes: https://ibm-ceph.atlassian.net/browse/IBMCEPH-11601
https://ibm-ceph.atlassian.net/browse/IBMCEPH-11520**


27/08/26

Commit - febda22

Screencast.From.2026-08-27.17-06-54.mp4

With updated UX design:->

Screencast.From.2026-10-12.18-56-07.mp4
Screencast.From.2026-10-13.10-32-37.mp4

Reference PR - #62120 (Already closed)

UX Design is updated PR was already reviewed and merged to downstream.

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

@dnyanee1997 dnyanee1997 changed the title Nfs iops control mgr/dashboard: NFS Rate Limit for enabling disabling Ops Control for Export and Cluster Apr 3, 2025
@dnyanee1997
dnyanee1997 marked this pull request as ready for review April 3, 2025 06:39
@dnyanee1997
dnyanee1997 requested review from a team as code owners April 3, 2025 06:39
@dnyanee1997
dnyanee1997 requested review from prgoel-code and pujaoshahu and removed request for a team April 3, 2025 06:39
@dnyanee1997
dnyanee1997 force-pushed the nfs-iops-control branch 6 times, most recently from ad89348 to 2d436fb Compare April 3, 2025 12:24

@nmunet nmunet left a comment •

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.

Thanks for the work here @dnyanee1997,
changes looks good overall, have few suggestions that you can work on!
Also noticed a weird behavior while playing around with it

Screencast.from.2025-04-03.19-13-07.mp4

return result;
}

registerQoSChange(val: string) {

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.

can we club registerQoSChange & registerQoSIOPSChange as they are mostly behaving the same way!

@cloudbehl

Copy link
Copy Markdown
Contributor

@dnyanee1997 why are the values not converted while doing a edit of it? Can you fix it at cluster and export level both.

@dnyanee1997
dnyanee1997 force-pushed the nfs-iops-control branch 3 times, most recently from 238a807 to 5b87088 Compare April 4, 2025 11:31
@dnyanee1997

Copy link
Copy Markdown
Contributor Author

@nmunet @afreen23 @cloudbehl ,
I have updated the PR. Please have look onces.
Thanks!

@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

2 similar comments
@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

@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

@abhidesai6

Copy link
Copy Markdown

@dnyanee1997
Route for creating NFS share not working.

Screencast.From.2026-10-19.18-43-31.mp4

@dnyanee1997

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@dnyanee1997

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@dnyanee1997

Copy link
Copy Markdown
Contributor Author

jenkins test windows

@dnyanee1997

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

@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

2 similar comments
@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

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

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

@abhidesai6

abhidesai6 commented Nov 3, 2026 •

Copy link
Copy Markdown

@dnyanee1997 Thanks for the great work.
Just couple of minor observations.

  • If I select sub-volume group , subvolume is not listing associated values, is this expected ?
  • After creating share, screen gets routed to NFS overview page , it should get routed to nfs-cluster overview instead. its better from UX POV.
Screenshot From 2026-11-03 20-49-39
Screencast.From.2026-11-03.20-50-56.mp4

@abhidesai6 ,
1.Fixed routing to overview page
2. Subvolume is already mapped not sure if there is any other corner case please let me know.
Attaching screenshare for reference.

Screencast.From.2026-11-04.13-24-58.mp4

@abhidesai6

Copy link
Copy Markdown

jenkins test dashboard

@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

Copilot AI left a comment

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.

🟡 Changes recommended

Critical QoS update paths can persist inconsistent configurations or discard existing limits, while suppressed read and restart failures can conceal unsuccessful updates.

20 open issues

Review effort: Balanced

Comment thread src/pybind/mgr/nfs/cluster.py Resolved
Comment thread src/pybind/mgr/nfs/rados_utils.py Resolved
'GiB/s': 1024 ** 3
};

export const MIN_BW_BYTES = 32 * 1024;

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.

@ShwetaBhosale1 can you please confirm.

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.

@ShwetaBhosale1 can you please confirm.

@dnyanee1997

Copy link
Copy Markdown
Contributor Author

Updated the PR @nizam

Copilot AI left a comment

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.

🟡 Changes recommended

A frontend type error blocks compilation, and QoS validation and update flaws can persist inconsistent configurations or unintentionally change or clear existing limits.

22 open issues

And 2 more that still need to be addressed.

9 resolved since last review

Review effort: Balanced

Comment thread src/pybind/mgr/nfs/export.py Resolved

Copilot AI left a comment

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.

🟡 Changes recommended

The review found an issue that should be addressed before approval.

18 open issues
8 resolved since last review

Review effort: Balanced

Comment thread src/pybind/mgr/nfs/export.py Outdated
# Dashboard export updates omit qos_block; keep existing limits
# so a later failed QoS PATCH cannot leave the export without them.
new_export_dict['qos_block'] = old_export.qos_block.to_dict(
ret_bw_in_bytes=True)

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.

This will prevent users from removing QoS limits, even when they explicitly want to. We should either pass the existing QoS value when updating the export or use a dashboard-specific flag to handle this behavior.

@afreen23 afreen23 left a comment

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.

CI: make check failing — fix before re-review.

ui-tested-needed label is on the PR — QA sign-off required before merge.

QA coverage: 7 new mgr RPC methods have no coverage in qa/tasks/cephfs/test_nfs.py: get_cluster_qos, apply_cluster_qos, get_export_qos, enable_export_qos_bw, disable_export_qos_bw, enable_export_qos_ops, disable_export_qos_ops. Needs at minimum: test_cluster_qos_enable_disable, test_export_qos_bw, test_export_qos_ops.

Still open from previous reviews (please address): NFS_TYPE → NfsType, any types in nfs-form, == → ===, i18n-label missing, registerQoSChange/registerQoSIOPSChange duplicate, hardcoded 'cluster'/'export' strings should use enum constants.

@dnyanee1997

Copy link
Copy Markdown
Contributor Author

Updated the PR. Please have a look.
Thanks! @afreen23

@afreen23 afreen23 left a comment

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.

nfs-form.component.ts — any types still present on lines 70, 212, 444, 464, 823, 873. Add proper types throughout.

@dnyanee1997

Copy link
Copy Markdown
Contributor Author

Fixed export.py fix from Shweta's review comment and added type instead of any at missing places.
Please have a look.
Thanks @afreen23 @ShwetaBhosale1

Comment thread src/pybind/mgr/nfs/cluster.py Resolved

@afreen23 afreen23 left a comment •

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.

fix tests.

Copilot AI left a comment

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.

🟡 Changes recommended

Active QoS defects can lose cluster scope, block export updates, silently alter bandwidth limits, or apply limits to the wrong export.

7 open issues
15 resolved since last review

Review effort: Balanced

Comment on lines +461 to +463
# Preserve existing QoS on export update.
if existing_export.get('qos_block'):
raw_ex['qos_block'] = existing_export['qos_block']
Comment on lines +462 to +463
if existing_export.get('qos_block'):
raw_ex['qos_block'] = existing_export['qos_block']
Comment on lines +792 to +793
const cluster_id = this.nfsForm.getValue('cluster_id');
const pseudo_path = this.nfsForm.getValue('pseudo');
this.combinedClientBw = data?.max_client_combined_bw ?? null;
this.rateLimitForm?.get('enable_qos')?.setValue(this.bwEnabled);
this.rateLimitForm?.get('enable_ops')?.setValue(this.iopsEnabled);
this.rateLimitForm?.get('qos_type')?.setValue(data?.qos_type || QOSType.PerShare);

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.

The component already uses the cluster qos_type for export forms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Review in progress

Development

Successfully merging this pull request may close these issues.

10 participants