Repository navigation
mgr/dashboard: NFS QOS - #67773
mgr/dashboard: NFS QOS#67773dnyanee1997 wants to merge 4 commits into
Conversation
…and Export Fixes: https://tracker.ceph.com/issues/69839 Signed-off-by: Achint Kaur <[email protected]> Conflicts: src/pybind/mgr/dashboard/frontend/src/app/app-routing.module.ts src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw.module.ts (cherry picked from commit dfda193397c9c015bdb51da44c11b8eb4bc452ae)
…Export and Cluster Fixes: https://tracker.ceph.com/issues/70742 Signed-off-by: Dnyaneshwari Talwekar <[email protected]> (cherry picked from commit 33d04cd764ea548c2d380ff9e042caaf7c263af9)
Fixes: https://tracker.ceph.com/issues/70742 Signed-off-by: Dnyaneshwari Talwekar <[email protected]> (cherry picked from commit 709b9ba0904870637fe040e188590b00c2d36706)
There was a problem hiding this comment.
Pull request overview
This PR adds NFS QoS (Quality of Service) functionality to the Ceph dashboard, enabling bandwidth and IOPS rate limiting for NFS exports and clusters. It introduces both backend CLI commands and dashboard REST API endpoints, plus a new Angular frontend UI for configuring QoS settings.
Changes:
- New CLI commands and backend logic for enabling/disabling QoS bandwidth and IOPS controls at both cluster and export levels
- New dashboard REST API endpoints for managing NFS QoS configuration (cluster and export level)
- New Angular components (
NfsRateLimitComponent,NfsClusterFormComponent) and updated existing components to support QoS configuration in the UI
Reviewed changes
Copilot reviewed 24 out of 27 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| src/pybind/mgr/nfs/module.py | Adds CLI commands and helper methods for NFS QoS bandwidth/IOPS control |
| src/pybind/mgr/nfs/export.py | Adds export-level QoS update, enable/disable, and get methods |
| src/pybind/mgr/nfs/cluster.py | Adds cluster-level QoS configuration management |
| src/pybind/mgr/dashboard/controllers/nfs.py | New REST API endpoints for cluster/export QoS |
| src/pybind/mgr/dashboard/openapi.yaml | OpenAPI spec for new QoS endpoints |
| src/pybind/mgr/dashboard/frontend/.../nfs-cluster-config.ts | New interfaces and enums for QoS types |
| src/pybind/mgr/dashboard/frontend/.../nfs.service.ts | New API service methods for QoS |
| src/pybind/mgr/dashboard/frontend/.../nfs-rate-limit/* | New rate limit component for QoS UI |
| src/pybind/mgr/dashboard/frontend/.../nfs-cluster-form/* | New cluster QoS form component |
| src/pybind/mgr/dashboard/frontend/.../nfs-form/* | Updated export form with QoS integration |
| src/pybind/mgr/dashboard/frontend/.../nfs-cluster/* | Updated cluster list with edit/QoS action |
| src/pybind/mgr/dashboard/frontend/.../nfs-list/* | Updated route for create with cluster_id |
| src/pybind/mgr/dashboard/frontend/.../formatter.service.ts | Added iB/s unit support and nfsRateLimit validation |
| src/pybind/mgr/dashboard/frontend/.../dimless-binary-per-second.directive.ts | Added defaultEmptyValue support |
| src/pybind/mgr/dashboard/frontend/.../rgw.module.ts | Route updates for NFS cluster form |
| src/pybind/mgr/dashboard/frontend/.../nfs.module.ts | Module declarations for new components |
| src/pybind/mgr/dashboard/frontend/.../app-routing.module.ts | New routes for cluster QoS edit |
| case QOSType.PerSharePerClient: { | ||
| this.rateLimitForm?.controls['max_export_read_bw'].addValidators(Validators.required); | ||
| this.rateLimitForm?.controls['max_export_write_bw'].addValidators(Validators.required); | ||
| this.rateLimitForm?.controls['max_client_write_bw'].addValidators(Validators.required); | ||
| this.rateLimitForm?.controls['max_client_read_bw'].addValidators(Validators.required); | ||
| } |
| <cds-checkbox | ||
| id="enable_qos" | ||
| type="checkbox" | ||
| (checkedChange)="showMaxBwNote('bw')" |
| id: string; | ||
| qosValue: string; | ||
| nfsBwIopConfig: NFSBwIopConfig; | ||
| submitObservables: Observable<Object>[] = []; |
| if not export_obj: | ||
| raise NFSObjectNotFound(f"Export {pseudo_path} not found in NFS cluster {cluster_id}") |
| rateLimitForm.controls.max_export_read_bw.dirty | ||
| " | ||
| [invalidText]="Export_readbw_Error" | ||
| >Export Write Bandwidth |
17ee48e to
f227d2b
Compare
Fixes: https://tracker.ceph.com/issues/70742 Signed-off-by: Dnyaneshwari Talwekar <[email protected]> (cherry picked from commit 17ee48e3f9648c700d9950068c71555ac414ded1) (cherry picked from commit d1614869928693044453f4e60c852407120eabe0)
1d44714 to
986bd2a
Compare
Pegonzal
left a comment
There was a problem hiding this comment.
The commit being asked to be reviewed:
Commit to be reviewed ->
709b9ba
Looks fine to me, looks like we are only updating the min and max values of a field, if this are the only expected changes can we clean up the commits and add better indication of the PR's intent in the commit title as well?
Currently: mgr/dashboard: NFS QOS - mgr/dashboard: Enhancement for NFS QOS does not make it clear what to expect from the PR or the commit changes
The tracker doesn't make it clear either: NFS Rate Limit for enabling and disabling Iops Control
|
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. |
|
Please rebase. |
|
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! |
**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**
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 DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.