-
Notifications
You must be signed in to change notification settings - Fork 26
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
K8SPS-359: Fix rebooting cluster if it's partially online #725
Conversation
"SELECT MEMBER_HOST FROM performance_schema.replication_group_members where MEMBER_ROLE='PRIMARY';" \ | ||
"-h $(get_mysql_router_service $(get_cluster_name)) -P 6446 -uroot -proot_password" \ | ||
| cut -d'.' -f1 |
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.
[shfmt] reported by reviewdog 🐶
"SELECT MEMBER_HOST FROM performance_schema.replication_group_members where MEMBER_ROLE='PRIMARY';" \ | |
"-h $(get_mysql_router_service $(get_cluster_name)) -P 6446 -uroot -proot_password" \ | |
| cut -d'.' -f1 | |
"SELECT MEMBER_HOST FROM performance_schema.replication_group_members where MEMBER_ROLE='PRIMARY';" \ | |
"-h $(get_mysql_router_service $(get_cluster_name)) -P 6446 -uroot -proot_password" \ | |
| cut -d'.' -f1 |
deploy/rbac.yaml
Outdated
@@ -80,6 +78,20 @@ rules: | |||
- patch | |||
- update | |||
- watch | |||
- apiGroups: |
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.
Do we need those in cw-rbac.yaml for cluster-wide?
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.
commit: 75bb02d |
CHANGE DESCRIPTION
Problem:
If 2 out of 3 MySQL pods are terminated abruptly, operator fails to reboot the cluster (sporadically).
Cause:
Even though failed pods go into crash recovery mode once they come up again, MySQL complains about cluster being already ONLINE when operator tries to run
dba.rebootClusterFromCompleteOutage()
.Solution:
If operator can't run
dba.rebootClusterFromCompleteOutage()
because cluster is already online, delete all MySQL pods to force recovery.CHECKLIST
Jira
Needs Doc
) and QA (Needs QA
)?Tests
Config/Logging/Testability