-
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: Fix for dashboard/prometheus failure due to laggy pg state #37909
mgr: Fix for dashboard/prometheus failure due to laggy pg state #37909
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.
IIUC, the first commit is cosmetic and the second commit is needed because of 5cdadf1 (it'd be good to include a reference to this commit in the fix)? Should we backport it all the way until N?
@alexandrsushko ping? |
e293c57
to
4e4d419
Compare
|
the failure of "mon-last-epoch-clean.sh" is addressed by #38239 |
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
4e4d419
to
4fff7a7
Compare
4fff7a7
to
db52877
Compare
@alexandrsushko i took the liberty of applying the suggested change in hope to get this PR merged sooner. hope it's fine to you.. |
jenkins test api |
jenkins test doc |
retest this please |
num_by_state[state] += count in get_pg_status method raises KeyError if pg state is not in PG_STATES list. PG_STATES should be synced with osd_types.cc:pg_state_string(). But sometimes it is not. After the KeyError raise mgr metrics are not available at all. Fixes: https://tracker.ceph.com/issues/46142 Signed-off-by: Alexander Sushko <alexandrsushko@gmail.com>
db52877
to
3f7ee9c
Compare
PG_STATES in pybind/mgr/mgr_module.py are synced with osd/osd_types.cc now.
pybind/mgr/prometheus/module.py: safe increment for pg_%STATE% metrics
Fixes: https://tracker.ceph.com/issues/46142
Signed-off-by: Alexander Sushko alexandrsushko@gmail.com