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

detect ceph warning due to no redundancy #522

Closed
wants to merge 2 commits into from
Closed

detect ceph warning due to no redundancy #522

wants to merge 2 commits into from

Conversation

jala-dx
Copy link
Contributor

@jala-dx jala-dx commented Jan 10, 2022

No description provided.

@jala-dx jala-dx requested a review from a team January 10, 2022 18:17
@@ -204,6 +214,8 @@ func detailedCephMessage(msg string, status CephStatus) string {
msg = fmt.Sprintf("%s. OSD disk is full", msg)
} else if status.OsdMap.OsdMap.NearFull {
msg = fmt.Sprintf("%s. OSD disk is nearly full", msg)
} else if chkMsg, ok := status.Health.Checks["POOL_NO_REDUNDANCY"]; ok {
Copy link
Member

Choose a reason for hiding this comment

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

How about instead of hardcoding this specific check, we iterate over all checks in health is not OK.

@@ -204,6 +214,8 @@ func detailedCephMessage(msg string, status CephStatus) string {
msg = fmt.Sprintf("%s. OSD disk is full", msg)
} else if status.OsdMap.OsdMap.NearFull {
msg = fmt.Sprintf("%s. OSD disk is nearly full", msg)
} else if chkMsg, ok := status.Health.Checks["POOL_NO_REDUNDANCY"]; ok {
msg = fmt.Sprintf("%s. Pool no redundancy: %s", msg, chkMsg.Summary.Message)
Copy link
Member

Choose a reason for hiding this comment

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

Line 223 overrides this message if condition is true.

@diamonwiggins
Copy link
Member

@jala-dx This was addressed with #575. Will go ahead and close this one out.

@adamancini adamancini deleted the jalaja/ceph branch December 23, 2022 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants