New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mgr/dashboard: rbd striping setting pre-population and pop-over #46014
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! @vrushch
You need to fix the make-check error though
[lint:html ] src/app/ceph/block/rbd-form/rbd-form.component.html: line 282, col NaN, Tabs not allowed
[lint:html ] src/app/ceph/block/rbd-form/rbd-form.component.html: line 307, col NaN, Tabs not allowed
[lint:html ]
[lint:html ] [htmllint] found 2 errors out of 163 files
[lint:tslint ] TSLint's support is discontinued and we're deprecating its support in Angular CLI.
[lint:tslint ] To opt-in using the community driven ESLint builder, see: https://github.com/angular-eslint/angular-eslint#migrating-an-angular-cli-project-from-codelyzer-and-tslint.
[lint:prettier] src/app/ceph/block/rbd-form/rbd-form.component.ts
[lint:tslint ] Linting "ceph-dashboard"...
[lint:tslint ] All files pass linting.
Try running 'npm run fix' to fix some linting errors. Some errors might need a manual fix.
npm run fix
should solve that.
@@ -262,7 +262,7 @@ | |||
<div class="form-group row"> | |||
<label i18n | |||
class="cd-col-form-label" | |||
for="size">Object size</label> | |||
for="size">Object size<cd-helper>Object Size: Objects in the Ceph Storage Cluster have a maximum configurable size (e.g., 2MB, 4MB, etc.). The object size should be large enough to accommodate many stripe units, and should be a multiple of the stripe unit.</cd-helper></label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Emphasizing on some of the important words and making it bold will make it easier for someone to read it better I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @nizamial09 ,
I have fixed the linting issue now. will check about making some important words bold in pop-over
Hi @epuertat , I tried creating RBD with different size without this PR, I observed Stripe Unit defaults to 4 MiB when Stripe Count is not given. |
Hi @vrushch, I tested this and it looks nice (I added a few screenshots to the PR description). Yes, we need to ensure that the RBD image can be created without the user opening the Advanced section. In fact, now when a user clicks "Create" nothing happens and the user doesn't receive any feedback (unless they expand the Advanced section). So yes, if we preset the striping size to 1, we need also to ensure that we provide defaults for the other fields. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for this contribution, @vrushch ! It's almost ready to be merged, but it needs first to deal with the stripe unit issue, and I left some suggestions for improvement on the helper messages.
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.html
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.html
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.html
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.ts
Show resolved
Hide resolved
Hi @epuertat , Please review and suggest changes if any. |
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
@vrushch could you please rebase the PR, thanks |
Pre-populating the stripe count to 1 (now it's empty). "1" means no "fancy striping", anything else enables the fancy striping. Adding a pop-over explaining each setting for striping (object size, stripe unit and stripe count). Fixes: https://tracker.ceph.com/issues/39726 Signed-off-by: Vrushal Chaudhari <vrushalcs@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you @vrushch for your contribution here!
jenkins test dashboard |
jenkins test dashboard cephadm |
1 similar comment
jenkins test dashboard cephadm |
Pre-populating the stripe count to 1 (now it's empty). "1" means no "fancy striping", anything else enables the fancy striping.
Adding a pop-over explaining each setting for striping (object size, stripe unit and stripe count).
New default value to 1
New helper explaining the RBD striping features
Fixes: https://tracker.ceph.com/issues/39726
Signed-off-by: Vrushal Chaudhari vrushalcs@gmail.com
Checklist
Show available Jenkins commands
jenkins retest this please
jenkins test classic perf
jenkins test crimson perf
jenkins test signed
jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test dashboard
jenkins test dashboard cephadm
jenkins test api
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox
jenkins test windows