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: Improve notifications for osd nearfull, full #44024
Conversation
1d290f3
to
cdfe746
Compare
|
@aaSharma14 Provided tha there is 1 more line in "Landing Page > OSD card" and the Landing Page is responsive, |
cdfe746
to
105d4fd
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.
Looks really nice from a UI perspective @aaSharma14! Really happy to see this happening. You still need to refine how you get the data from to decide what color to paint everything. Let's discuss this next Monday.
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.ts
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/osd-data.pipe.ts
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/osd-data.pipe.ts
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/shared/components/usage-bar/usage-bar.component.html
Outdated
Show resolved
Hide resolved
105d4fd
to
e39de3f
Compare
@alfonsomthd , I checked and the view is not broken. Thanks |
3252d50
to
5e4d6c2
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.
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.ts
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/shared/components/usage-bar/usage-bar.component.ts
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.ts
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.html
Outdated
Show resolved
Hide resolved
4c8fddb
to
492f182
Compare
|
jenkins test dashboard |
|
jenkins test dashboard cephadm |
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.html
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.ts
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.html
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.ts
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.ts
Outdated
Show resolved
Hide resolved
492f182
to
8aac8e9
Compare
8aac8e9
to
51cdd2d
Compare
|
jenkins test dashboard |
|
jenkins test make check arm64 |
|
jenkins retest this please |
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 are some minor tox issues, a part from that, LGETM
bb5bd42
to
df8b529
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.
LGTM!
df8b529
to
328720a
Compare
|
jenkins retest this please |
|
jenkins test dashboard cephadm |
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard/health/health.component.scss
Outdated
Show resolved
Hide resolved
| @@ -18,6 +18,7 @@ | |||
| from . import APIDoc, APIRouter, CreatePermission, DeletePermission, Endpoint, \ | |||
| EndpointDoc, ReadPermission, RESTController, Task, UpdatePermission, \ | |||
| allow_empty_body | |||
| from ._version import APIVersion | |||
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.
This should be imported in the line above. ._version is a module encapsulated in __init__.py
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.
I think then we will have to change this in other 10-12 files as well to be consistent
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/osd/osd-list/osd-list.component.ts
Outdated
Show resolved
Hide resolved
| @@ -112,6 +112,7 @@ def test_minimal_health(self): | |||
| JObj({ | |||
| 'in': int, | |||
| 'up': int, | |||
| 'state': JList(str) | |||
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.
This technically means we're altering the format of the /health endpoint, right? Since it's additive, perhaps we should increase only the minor version, but unfortunately we don't have yet the code in place for dealing with multiple minor versions... What do you think @aaSharma14 @alfonsomthd @avanthakkar @nizamial09 ?
328720a
to
5caba9a
Compare
|
jenkins retest this please |
5caba9a
to
3b2131b
Compare
|
jenkins test make check |
src/pybind/mgr/dashboard/frontend/src/app/shared/api/osd.service.ts
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/shared/models/osd-settings.ts
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/shared/api/osd.service.ts
Outdated
Show resolved
Hide resolved
This PR adds some visual hints for osds that are near full or full Fixes: https://tracker.ceph.com/issues/53334 Signed-off-by: Aashish Sharma <aasharma@redhat.com>
3b2131b
to
f771cd4
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.
LGTM! Thank you @aaSharma14 !

This PR adds some visual hints for osds that are near full or full
Fixes: https://tracker.ceph.com/issues/53334
Signed-off-by: Aashish Sharma aasharma@redhat.com
Landing Page > Capacity > Warning

Landing Page > Capacity > Danger

Landing Page > OSD card

OSD Page > usage bar > warning

OSD Page > usage bar > danger
