Point operators to logs when instance is not clustered
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL InnoDB Cluster Charm |
Fix Released
|
High
|
David Ames |
Bug Description
Never report "None" as the cluster status. Rather, acknowledge the instance is not clustered and point the operator to the logs for further investigation.
There are a number of circumstances that can lead to an instance not successfully being joined to the cluster.
Example [0]
mysql-innodb-
mysql-innodb-
mysql-innodb-
Example [1]
Unit Workload Agent Machine Public address Ports Message
mysql-innodb-
mysql-innodb-
mysql-innodb-
Currently, the workload status shows "MySQL InnoDB Cluster not healthy: None" which is not helpful. This also leads to bugs being filed on the work load status rather than the root cause of the failure to cluster.
The work load status of an unclustered instance should point the operator to investigate the logs or report the root cause error.
Note: The change will need to avoid false positives as much as possible for expected circumstances as in during deploy time or scale in scale out testing.
[0] https:/
[1] https:/
Changed in charm-mysql-innodb-cluster: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in charm-mysql-innodb-cluster: | |
status: | Fix Committed → Fix Released |
PR to update workload status [0] has landed.
Now workload status points operators to logs if the instance cannot access the cluster. Workload status also shows cluster status text for more information on the state of the cluster.
[0] https:/ /review. opendev. org/c/openstack /charm- mysql-innodb- cluster/ +/779384