Closed mplewis closed 2 years ago
@mplewis Thank you for the report!
Is there the BackupPolicy resource named daily
? If no BackupPolicy resources exist in the namespace, please remove the backupPolicyName
field from your MySQLCluster manifests.
In my guess, the moco-controller may output the following error.
failed to get backup policy default/daily: BackupPolicy.moco.cybozu.com \"daily\" not found
If so, the manager process has not been started and the cluster cannot work.
Sorry for the long delay on the response. I tried your suggestion and found that my cluster was misconfigured. My backup policy had gone missing. Removing the field fixed this.
Thank you for the help!
Describe the bug I am having trouble starting a MySQLCluster (v1beta2) with 1 replica. The mysqld container does not become ready.
The error in the agent container reads
failed to get replica status: failed to show slave status: sql: no rows in result set
.Environments
To Reproduce
Deploy the following moco.v1beta2.MySQLCluster to a DigitalOcean Managed Kubernetes cluster:
The mysqld container will fail to become ready. The agent container will print the following errors in its logs:
Expected behavior mysqld container passes readiness check eventually.
Additional context I think that this happens in
main/pkg/dbop/status.go
insidegetReplicaStatus
. Perhaps the Go error instance is different even though the message is identical, and this causes an error to be thrown unintentionally.