Skip to content
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: fix CephPGImbalance alert #48525

Merged
merged 1 commit into from Nov 29, 2022

Conversation

aaSharma14
Copy link
Contributor

@aaSharma14 aaSharma14 commented Oct 18, 2022

The CephPGImbalance might be inaccurate in some specific environments. The CephPGImbalance alert is going to be raised, if the amount of PGs of an OSD is 30% less than the average amount of PGs of all OSDs. The amount of PGs of an OSD is normally related to e.g. number of OSDs and size or class of device. For a well-functioning cluster the Balancer takes care of balancing the PGs.

In some cases e.g. if the cluster consists of a lot of bigger HDDs and some smaller SSDs, the alert might be raised. Although the configuration and balance of the PGs is handled correctly.

Fixes: https://tracker.ceph.com/issues/55568
Signed-off-by: Aashish Sharma aasharma@redhat.com

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
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

@aaSharma14 aaSharma14 added this to In progress in Dashboard via automation Oct 18, 2022
@aaSharma14 aaSharma14 requested a review from a team as a code owner October 18, 2022 10:57
@aaSharma14 aaSharma14 requested review from avanthakkar and Pegonzal and removed request for a team October 18, 2022 10:57
Copy link
Member

@nizamial09 nizamial09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am curious, if the balancer module is not enabled, we will be continuing to do the previous behaviour right?

@epuertat
Copy link
Member

Same as with the other PR @aaSharma14: no PR/commit should start with "Fix..." if a tracker defect report is not attached along with it. "Fix" implies bug, hence backporting to the active releases according to the Ceph bugfixing policy. Additionally, having a tracker will simplify the backporting paperwork.

@aaSharma14 aaSharma14 force-pushed the fix-PgImbalance-alert branch 4 times, most recently from 1514090 to 30b36d9 Compare November 15, 2022 06:47
Copy link
Contributor

@avanthakkar avanthakkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Dashboard automation moved this from In progress to Reviewer approved Nov 15, 2022
Copy link
Member

@s0nea s0nea left a 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 aaSharma14 force-pushed the fix-PgImbalance-alert branch 3 times, most recently from 91613ae to fdbb492 Compare November 21, 2022 12:17
Donot show the CephPgImbalance alert if the balancer shows no optimization required

Fixes: https://tracker.ceph.com/issues/55568
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
@nizamial09
Copy link
Member

jenkins test signed

@nizamial09
Copy link
Member

jenkins test dashboard

@nizamial09 nizamial09 merged commit 559f151 into ceph:main Nov 29, 2022
10 of 13 checks passed
Dashboard automation moved this from Reviewer approved to Done Nov 29, 2022
@nizamial09 nizamial09 deleted the fix-PgImbalance-alert branch November 29, 2022 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Dashboard
  
Done
5 participants