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: Display a warning message in Dashboard when debug mode is enabled #38473
Conversation
886253a
to
45b8816
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.
Hey @votdev ,
I just tested your PR and it works perfectly but I noticed one thing:
When I create a new vstart cluster the debug flag for the dashboard is already enabled. Unfortunately the ceph -s
command doesn't show the warning. It only shows the warning if I disable and enable the dasboard debug (by ceph dashboard debug disable/enable
). Is it on purpose?
I wondering that this happens because the debug plugin is initialized at module startup and should trigger the health warning immediately. Maybe it is because how Dashboard is activated in a vstart environment (using the --force parameter). To answer your question, it shouldn't behave like that. |
OK, i investigated that and found out, that our downstream scripts enable debugging using |
45b8816
to
48a6dfc
Compare
48a6dfc
to
546114a
Compare
546114a
to
721daaa
Compare
jenkins test dashboard |
1 similar comment
jenkins test dashboard |
5c8f746
to
946d9ea
Compare
jenkins test make check |
1 similar comment
jenkins test make check |
946d9ea
to
f1381b9
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 👍
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.
Nice improvement! Thank you @votdev! I wasn't aware of how easy was to report health checks.
Does it make sense to document this new heath check in https://docs.ceph.com/en/latest/rados/operations/health-checks/, or mgr modules health checks are not documented anywhere? Perhaps @zdover23 can shed light on this.
f1381b9
to
5fb3074
Compare
… is enabled Set a health check warning if debug mode is enabled. Fixes: https://tracker.ceph.com/issues/48475 Signed-off-by: Volker Theile <vtheile@suse.com>
5fb3074
to
a1aa760
Compare
Added documentation to |
jenkins test dashboard |
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
Set a health check warning if debug mode is enabled.
Fixes: https://tracker.ceph.com/issues/48475
Signed-off-by: Volker Theile vtheile@suse.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 api
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox