-
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: Filter alerts based on cluster fsid and do not allow to connect clusters with version less than hub cluster in multi-cluster #56579
Conversation
src/pybind/mgr/dashboard/frontend/src/app/shared/services/prometheus-alert.service.ts
Outdated
Show resolved
Hide resolved
40c4bf2
to
f3593ca
Compare
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
Merged this PR after merging this: #53679 |
f3593ca
to
50f613a
Compare
1cb699a
to
5df76c2
Compare
src/pybind/mgr/dashboard/frontend/src/app/shared/services/prometheus-alert.service.ts
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/shared/services/prometheus-alert.service.ts
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/shared/services/prometheus-alert.service.ts
Outdated
Show resolved
Hide resolved
src/pybind/mgr/dashboard/frontend/src/app/shared/services/prometheus-alert.service.ts
Outdated
Show resolved
Hide resolved
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 good
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.ts
Outdated
Show resolved
Hide resolved
5df76c2
to
b7378eb
Compare
refresh() { | ||
this.getAlerts(); | ||
refresh(clusterFilteredAlerts?: boolean) { | ||
this.getAlerts(clusterFilteredAlerts); | ||
this.getRules(); |
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.
Can you check if the rules have same issue?
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.
Rules don't have this issue as they are static and do not contain anything related to the fsid variable
Tested with two ceph clusters - one quincy and other from latest:main
PS: It was a fresh install using this PR, so everything was updated and loaded well which I can confirm! Screencast.from.2024-04-06.00-02-26.webmFor alerts I can see cluster filter is set true always: I wanted to test more after connecting a cluster but due to above could not do it Thanks |
14505ad
to
71f750b
Compare
jenkins retest this please |
src/pybind/mgr/dashboard/frontend/src/app/shared/services/prometheus-alert.service.ts
Outdated
Show resolved
Hide resolved
Also, tests are failing still. |
with version less than hub cluster to be added in multi-cluster Signed-off-by: Aashish Sharma <aasharma@redhat.com>
71f750b
to
bca4720
Compare
cluster
variable in the prometheus metrics , we need to filter the alerts based on the cluster fsid.Fixes: https://tracker.ceph.com/issues/65774
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
x
between the brackets:[x]
. Spaces and capitalization matter when checking off items this way.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
jenkins test rook e2e