Repository navigation
mgr/dashboard: NFS Rate Limit for enabling disabling Ops Control for Export and Cluster - #62646
dnyanee1997 wants to merge 2 commits into
Conversation
d4d15f2 to
fc84268
Compare
fc84268 to
c197ab6
Compare
ad89348 to
2d436fb
Compare
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
can we club registerQoSChange & registerQoSIOPSChange as they are mostly behaving the same way!
2d436fb to
963d2bd
Compare
|
@dnyanee1997 why are the values not converted while doing a edit of it? Can you fix it at cluster and export level both. |
238a807 to
5b87088
Compare
|
@nmunet @afreen23 @cloudbehl , |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
2 similar comments
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
@dnyanee1997 Screencast.From.2026-10-19.18-43-31.mp4 |
|
jenkins test make check |
|
jenkins test make check arm64 |
|
jenkins test windows |
|
jenkins test dashboard |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
2 similar comments
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
@dnyanee1997 Thanks for the great work.
Screencast.From.2026-11-03.20-50-56.mp4@abhidesai6 , Screencast.From.2026-11-04.13-24-58.mp4 |
|
jenkins test dashboard |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
There was a problem hiding this comment.
🟡 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
Update both QoS controls atomically when changing the shared type · New Wait for export QoS to load before enabling form submission · New Preserve existing QoS if an export update fails · New Do not suppress unrelated orchestrator restart failures · New Propagate QoS read failures other than missing objects · New QoS type conversion happens outside the exception wrapper. Invalid REST input therefore leaks a… This validator only compares the two types when both controls are enabled; it never rejects an… The emitted value is aCdFormGroup, not a DOMEvent, andaddControl()requires an…addControl()expects anAbstractControl, but this handler declares$eventas a DOMEvent;… Navigation occurs immediately after starting the QoS PATCH requests, not after they complete. Any… This equality prevents disabling export bandwidth QoS: when cluster bandwidth is enabled (true)… The IOPS wrapper also bypassesvalidate_qos_type(), so calling only this endpoint can switch the… This equality prevents disabling an existing export bandwidth limit: with cluster bandwidth control… Bypassingvalidate_qos_type()lets this bandwidth endpoint change the cluster's singleqos_type… This field has no correspondingQOSParamsentry orQOSserialization logic.… Align QoS form validation with the backend minimum · New Restore RGW export type initialization in create mode · New Load QoS settings for the initial cluster selection · New Apply required validators after loading saved QoS settings · New Exclude inactive QoS controls from form validation · New
Review effort: Balanced
| 'GiB/s': 1024 ** 3 | ||
| }; | ||
|
|
||
| export const MIN_BW_BYTES = 32 * 1024; |
|
Updated the PR @nizam |
There was a problem hiding this comment.
🟡 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
Prevent saves when QoS settings could not be loaded · New Wait for export tasks to finish before applying QoS updates · New Allow export limits to be disabled when cluster controls are enabled · New Exclude hidden PerClient overrides from validation and submission · New Preserve active QoS scope when displaying inactive settings · New Validate retained controls against the resolved QoS scope · New Preserve byte-accurate QoS limits when copying existing settings · New QoS type conversion happens outside the exception wrapper. Invalid REST input therefore leaks a… This validator only compares the two types when both controls are enabled; it never rejects an… The emitted value is aCdFormGroup, not a DOMEvent, andaddControl()requires an…addControl()expects anAbstractControl, but this handler declares$eventas a DOMEvent;… Navigation occurs immediately after starting the QoS PATCH requests, not after they complete. Any… This equality prevents disabling export bandwidth QoS: when cluster bandwidth is enabled (true)… The IOPS wrapper also bypassesvalidate_qos_type(), so calling only this endpoint can switch the… This equality prevents disabling an existing export bandwidth limit: with cluster bandwidth control… Bypassingvalidate_qos_type()lets this bandwidth endpoint change the cluster's singleqos_type… This field has no correspondingQOSParamsentry orQOSserialization logic.… Initialize the export path when no subvolume is supplied · New Report partial success when sequential QoS updates fail · New Preserve existing combined bandwidth settings in the export form · New
And 2 more that still need to be addressed.
9 resolved since last review
Propagate QoS read failures other than missing objects Do not suppress unrelated orchestrator restart failures Preserve existing QoS if an export update fails Wait for export QoS to load before enabling form submission Update both QoS controls atomically when changing the shared type Exclude inactive QoS controls from form validation Apply required validators after loading saved QoS settings Load QoS settings for the initial cluster selection Restore RGW export type initialization in create mode
Review effort: Balanced
There was a problem hiding this comment.
🟡 Changes recommended
The review found an issue that should be addressed before approval.
18 open issues
Validate retained controls against the resolved QoS scope Prevent saves when QoS settings could not be loaded QoS type conversion happens outside the exception wrapper. Invalid REST input therefore leaks a… This validator only compares the two types when both controls are enabled; it never rejects an… The emitted value is aCdFormGroup, not a DOMEvent, andaddControl()requires an…addControl()expects anAbstractControl, but this handler declares$eventas a DOMEvent;… Navigation occurs immediately after starting the QoS PATCH requests, not after they complete. Any… This equality prevents disabling export bandwidth QoS: when cluster bandwidth is enabled (true)… The IOPS wrapper also bypassesvalidate_qos_type(), so calling only this endpoint can switch the… This equality prevents disabling an existing export bandwidth limit: with cluster bandwidth control… Bypassingvalidate_qos_type()lets this bandwidth endpoint change the cluster's singleqos_type… This field has no correspondingQOSParamsentry orQOSserialization logic.… Medium — Match the backend task's FSAL metadata. The create endpoint declares its task metadata as… · New Medium — Reset submission state when an asynchronous export task fails. For an edit returning HTTP… · New Medium — Skip bandwidth disables when no override exists. Creating a share with bandwidth left Off… · New Medium — Skip IOPS disables when no override exists. An Off IOPS toggle produces a non-null object… · New Preserve existing combined bandwidth settings in the export form Align QoS form validation with the backend minimum
8 resolved since last review
Preserve byte-accurate QoS limits when copying existing settings Preserve active QoS scope when displaying inactive settings Exclude hidden PerClient overrides from validation and submission Allow export limits to be disabled when cluster controls are enabled Wait for export tasks to finish before applying QoS updates Preserve fractional KiB values when loading bandwidth limits Report partial success when sequential QoS updates fail Initialize the export path when no subvolume is supplied
Review effort: Balanced
| # 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) |
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
…and Export Signed-off-by: Dnyaneshwari Talwekar <[email protected]> Fixes: https://tracker.ceph.com/issues/79007
|
Updated the PR. Please have a look. |
afreen23
left a comment
There was a problem hiding this comment.
nfs-form.component.ts — any types still present on lines 70, 212, 444, 464, 823, 873. Add proper types throughout.
|
Fixed export.py fix from Shweta's review comment and added type instead of any at missing places. |
There was a problem hiding this comment.
🟡 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
The emitted value is aCdFormGroup, not a DOMEvent, andaddControl()requires an… The IOPS wrapper also bypassesvalidate_qos_type(), so calling only this endpoint can switch the… Apply export settings and QoS together when scope changes · New Preserve QoS limits losslessly during export edits · New Snapshot QoS PATCH target and payload before submission · New Preserve cluster QoS scope in export forms · New Align QoS form validation with the backend minimum
15 resolved since last review
Validate retained controls against the resolved QoS scope Prevent saves when QoS settings could not be loaded QoS type conversion happens outside the exception wrapper. Invalid REST input therefore leaks a… This validator only compares the two types when both controls are enabled; it never rejects an…addControl()expects anAbstractControl, but this handler declares$eventas a DOMEvent;… Navigation occurs immediately after starting the QoS PATCH requests, not after they complete. Any… This equality prevents disabling export bandwidth QoS: when cluster bandwidth is enabled (true)… This equality prevents disabling an existing export bandwidth limit: with cluster bandwidth control… Bypassingvalidate_qos_type()lets this bandwidth endpoint change the cluster's singleqos_type… This field has no correspondingQOSParamsentry orQOSserialization logic.… Medium — Skip IOPS disables when no override exists. An Off IOPS toggle produces a non-null object… Medium — Skip bandwidth disables when no override exists. Creating a share with bandwidth left Off… Medium — Reset submission state when an asynchronous export task fails. For an edit returning HTTP… Medium — Match the backend task's FSAL metadata. The create endpoint declares its task metadata as… Preserve existing combined bandwidth settings in the export form
Review effort: Balanced
| # Preserve existing QoS on export update. | ||
| if existing_export.get('qos_block'): | ||
| raw_ex['qos_block'] = existing_export['qos_block'] |
| if existing_export.get('qos_block'): | ||
| raw_ex['qos_block'] = existing_export['qos_block'] |
| 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); |
There was a problem hiding this comment.
The component already uses the cluster qos_type for export forms.
Signed-off-by: Dnyaneshwari Talwekar <[email protected]> Fixes: https://tracker.ceph.com/issues/79007



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
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