Repository navigation
mgr/dashboard: NFS Rate Limit for enabling disabling QOS for Cluster and Export - #62120
Achintk1491 wants to merge 8 commits into
Conversation
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
40b1b1c to
3e27648
Compare
|
@Achintk1491 , space between name and email. |
|
@Achintk1491 , need space between name and email id for Signed-Off-by |
afe6513 to
632cbd1
Compare
|
Looks great @Achintk1491 one thing here: I assume this is a warning /info ? So we need proper alert in that case. Right now looks odd. |
|
jenkins test make check |
|
jenkins test make check arm64 |
|
jenkins test api |
nizamial09
left a comment
There was a problem hiding this comment.
Functionally everything works.
only one thing I saw is the below one where the Bandwidth QOS Type is set to empty when ideally it should say Select a bandwidth type text in the dropdown box.
also the QOS should need to be changed as QoS everywhere in the front-end code where that's being exposed to the user.
|
jenkins retest this please |
|
jenkins test make check |
|
jenkins test make check arm64 |
|
jenkins test api |
nizamial09
left a comment
There was a problem hiding this comment.
I got hit with a validation error in the backend btw. I was putting 1Gb/s to everything and it seems to fail for the IOPS QoS?
Apr 02 14:12:50 ceph-node-00 ceph-mgr[3517]: [dashboard ERROR exception] Internal Server Error
Traceback (most recent call last):
File "/usr/share/ceph/mgr/dashboard/services/exception.py", line 47, in dashboard_exception_handler
return handler(*args, **kwargs)
File "/lib/python3.9/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
return self.callable(*self.args, **self.kwargs)
File "/usr/share/ceph/mgr/dashboard/controllers/_base_controller.py", line 263, in inner
ret = func(*args, **kwargs)
File "/usr/share/ceph/mgr/dashboard/controllers/nfs.py", line 157, in toggle_cluster_qos_operation
return mgr.remote('nfs', 'enable_cluster_qos_ops', cluster_id, qos_type, **obj)
File "/usr/share/ceph/mgr/mgr_module.py", line 2407, in remote
return self._ceph_dispatch_remote(module_name, method_name,
RuntimeError: Remote method threw exception: Traceback (most recent call last):
File "/usr/share/ceph/mgr/nfs/module.py", line 387, in enable_cluster_qos_ops
ops_obj = QOSOpsControl(enable_iops_ctrl=True,
File "/usr/share/ceph/mgr/nfs/qos_conf.py", line 222, in __init__
self.max_export_iops = _validate_qos_ops(max_export_iops)
File "/usr/share/ceph/mgr/nfs/qos_conf.py", line 73, in _validate_qos_ops
raise Exception(f"Provided IOS count value is not in range, Please enter a value between {min_cnt} and {max_cnt} bytes per second.")
Exception: Provided IOS count value is not in range, Please enter a value between 10 and 16384 bytes per second.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/share/ceph/mgr/nfs/module.py", line 391, in enable_cluster_qos_ops
raise object_format.ErrorResponse.wrap(e)
object_format.ErrorResponse: Provided IOS count value is not in range, Please enter a value between 10 and 16384 bytes per second.
| observableConcat(...this.submitObservables1).subscribe({ | ||
| error: () => { | ||
| // Reset the 'Submit' button. | ||
| this.nfsForm.setErrors({ cdSubmitButton: true }); | ||
| }, | ||
| complete: () => { | ||
| this.notificationService.show(NotificationType.success, notificationTitle); | ||
| this.goToListView(); | ||
| } | ||
| }); |
There was a problem hiding this comment.
hmm, we already have the subscription above which does the exact same thing. Why not just reuse that. I think if you simply push to the new observable, then we don't need these changes.
I see we have
this.submitObservables.push(this.nfsService.enableQosBandwidthForCLuster(ratelimitbwValue));
so you could just push your new observable to it?
this.submitObservables.push(
this.nfsService.enableQosBandwidthForCLuster(ratelimitbwValue),
this.nfsService.enableQosOpsForCLuster(ratelimitOpsValue)
);
this should be enough right, and that would execute the observables and when everything is done it'd return you to the list page.
But right now it'll execute two observables at different time and tries to reload the listView twice which is not what we want.
There was a problem hiding this comment.
Added a validator - For all iops values : minimum 10 iops, maximum 16384 iops
| if ( | ||
| !!this.bandwidthObj && | ||
| this.clusterAllConfig?.enable_qos === this.bandwidthObj?.enable_qos | ||
| ) { | ||
| this.submitRateLimit(); | ||
| } | ||
| } | ||
| if (this.bandwidthIopsObj) { | ||
| if ( | ||
| !!this.bandwidthIopsObj && | ||
| this.clusterAllConfig?.enable_ops === this.bandwidthIopsObj?.enable_ops | ||
| ) { | ||
| this.submitRateOPSLimit(); | ||
| } |
There was a problem hiding this comment.
both of them invokes separate observables which gets invoked and executed at different times even though they are essentially for the same thing which is not good.
Let's collect them to an observable and later execute that observable to produce a consistent behavior, rather than executing them in an asyncrhonous uncontrollable manner. And that would ensure that we only show one notification rather than multiple for each action which is also not good.
| @@ -33,6 +33,7 @@ export class NfsClusterFormComponent extends CdForm implements OnInit { | |||
| qosValue: string; | |||
| nfsBwIopConfig: NFSBwIopConfig; | |||
There was a problem hiding this comment.
nfsIopsConfig: NFSBwIopConfig
|
Hey @dnyanee1997 , Thanks |
|
Merge after cephadm changes |
|
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. |
1 similar comment
|
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! |
|
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! |
…er and export fixes: https://tracker.ceph.com/issues/69458 Signed-off-by: Shweta Bhosale <[email protected]>
…control Fixes: https://tracker.ceph.com/issues/69861 Signed-off-by: Shweta Bhosale <[email protected]>
…eds bw in bytes Fixes: https://tracker.ceph.com/issues/69458 Signed-off-by: Shweta Bhosale <[email protected]>
…parameters, then allow nfs export apply command if file has same qos block which is already set fixes: https://tracker.ceph.com/issues/69458 Signed-off-by: Shweta Bhosale <[email protected]>
…and Export Fixes: https://tracker.ceph.com/issues/69839 Signed-off-by: Achint Kaur <[email protected]>
…Export and Cluster Fixes: https://tracker.ceph.com/issues/70742 Signed-off-by: Dnyaneshwari Talwekar <[email protected]>
|
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. |
|
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! |


This PR is based on #61283
Fixes: https://tracker.ceph.com/issues/69839
Signed-off-by: Achint Kaur [email protected]
NFS.Bandwidth.For.Cluster.Export.mp4
Screenshare NFS Export Listing PR merged -
Screencast.from.2025-03-25.13-22-38.mp4
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