-
Notifications
You must be signed in to change notification settings - Fork 2.8k
core: fix ceph health check up status check #16595
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
Conversation
5153d92 to
bf9752e
Compare
| } | ||
| currentCondition.Status = status | ||
| currentCondition.Reason = reason | ||
| if reason != "" { |
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.
As discussed, let's see if it will keep things simpler for the osd goroutine to have its own method for updating the status, rather than calling this method.
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.
Done
bf9752e to
0717859
Compare
currently the health checkup was reporting the condition and reason to be always connected, But which might not be the case, So instead of that dont report the condition and its phase during the health checkups Signed-off-by: parth-gr <partharora1010@gmail.com>
0717859 to
454c221
Compare
travisn
left a comment
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.
This looks much simpler now, thanks. Please just confirm if you could test a couple scenarios:
- That the conditions and phase were preserved even while the ceph status is updated here
- That the ceph status is preserved by the reconcile, even while the conditions and phase are updated
external mode was dependednt on the ceph status to update the cluster connected condition, BUt as now the status check will only update the ceph status, so we will explicitly update the ceph status condition in the end of the reconcile Signed-off-by: parth-gr <partharora1010@gmail.com>
We can see that status is getting updated and the conditions are not by the timestamp |
It won't as the Ceph cluster reconcile will still update the current status and conditions at the same time. |
core: fix ceph health check up status check (backport #16595)
currently the health checkup was reporting the
condition and reason to be always connected,
But which might not be the case,
So instead of that dont report the condition and
its phase during the health checkups
Checklist: