-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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: make application field for pool creation mandatory #51566
base: main
Are you sure you want to change the base?
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.
Didn't work. It created the pool after saying it was required.
screen-capture.8.webm
85af8d1
to
634982b
Compare
Just fixed the submit if no application selected. PTAL! |
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.
jenkins test make check |
634982b
to
50b8cd8
Compare
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.
Probably it should be better to add a helper here saying that a pool cannot be used without associating with an application before
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form-data.ts
Outdated
Show resolved
Hide resolved
50b8cd8
to
874f8ec
Compare
And added a helper for application fields. |
jenkins test make check |
jenkins test dashboard |
make-check failure
|
@avanthakkar ping^ |
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 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! |
874f8ec
to
7f4ec99
Compare
Fixed unit tests, passing locally! |
jenkins retest this please |
7f4ec99
to
a6d1ba7
Compare
<label class="cd-col-form-label required" | ||
for="applications"> | ||
<ng-container i18n>Applications</ng-container> | ||
<cd-helper> |
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.
Let's use after the input tag here as well.
Lines 252 to 254 in ef9bf76
<cd-help-text> | |
<span i18n>The number of days that you want to specify for the default retention period that will be applied to new objects placed in this bucket.</span> | |
</cd-help-text> |
We need to gradually move to this style, for all new things added and rest will be taken care by carbon
Thanks!
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.
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.
After #51591 |
jenkins test make check |
jenkins test dashboard |
jenkins test dashboard cephadm |
jenkins test dashboard |
jenkins test dashboard cephadm |
jenkins test make check arm64 |
jenkins test dashboard |
Fixes: https://tracker.ceph.com/issues/61238 Signed-off-by: avanthakkar <avanjohn@gmail.com>
a6d1ba7
to
1feff25
Compare
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.
@avanthakkar application is not mandatory for pool creation,
why are we making it as This field is required!
?
Well you have to add some application anyways after creation else it'll show health_warn |
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.
yes it make sense from CLI as well
HEALTH_WARN 1 pool(s) do not have an application enabled; 4 pool(s) have non-power-of-two pg_num
[WRN] POOL_APP_NOT_ENABLED: 1 pool(s) do not have an application enabled
application not enabled on pool 'rep_pool_mGnGGtgZwA'
use 'ceph osd pool application enable <pool-name> <app-name>', where <app-name> is 'cephfs', 'rbd', 'rgw', or freeform for custom applications.```
@@ -189,6 +194,9 @@ | |||
title="Pools should be associated with an application tag" | |||
class="{{icons.warning}} icon-warning-color"> | |||
</i> | |||
<span class="invalid-feedback" | |||
*ngIf="!isApplicationsSelected" | |||
i18n>This field is required!</span> |
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.
i18n>This field is required!</span> | |
i18n>Application selection is required!</span> |
The validation sticks around even after selecting the application. Can you make sure once user selects the application this goes away. Screencast.from.2024-05-30.11-17-14.webm |
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
Fixes: https://tracker.ceph.com/issues/61238
Before
After:
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. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
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