helm install presslabs/mysql-operator --name mysql-operator
,I found a pvc error with data-mysql-operator-orchestrator-0: no persistent volumes available for this claim and no storage class is set
。My cluster didnt have any pv plugins installed. I can install one, But I don't know how to specify storageclass, can any one tell me how to do it? Thanks a lot.
mysql_exporter_last_scrape_error 1
mysql_exporter_scrapes_total 2506
mysql_up 0
time="2019-01-10T21:26:15Z" level=error msg="Error pinging mysqld: Error 1049: Unknown database '&lock_wait_timeout=2'" source="exporter.go:119"
Waiting: CrashLoopBackOff
with the error Readiness probe failed: ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111) /bin/sh: line 0: test: -eq: unary operator expected
I am trying to run the Presslabs mysql-operator on OpenShift 3.11.
After running the Helm installation and then running:
oc adm policy add-scc-to-user anyuid -z mysql-operator
I tried to create a generic cluster. The status ends up as follows:
Status:
Conditions:
Last Transition Time: 2020-01-27T19:19:39Z
Message: cluster is in read only
Reason: ClusterReadOnlyTrue
Status: True
Type: ReadOnly
Last Transition Time: 2020-01-27T19:19:39Z
Message: StatefulSet is not ready
Reason: StatefulSetNotReady
Status: False
Type: Ready
Last Transition Time: 2020-01-27T19:19:39Z
Message: no pending ack
Reason: NoPendingFailoverAckExists
Status: False
Type: PendingFailoverAck
And the following warning message appears:
Type Reason Age From Message
Warning ConfigMapSyncFailed 3m (x21 over 25m) controller.mysqlcluster *v1.ConfigMap mysql/my-cluster-mysql failed syncing: configmaps "my-cluster-mysql" is forbidden: cannot set blockOwnerDeletion if an ownerReference refers to a resource you can't set finalizers on: no RBAC policy matched, <nil>
A similar warning message appears related to a Redis Operator that was missing an RBAC policy setting for OpenShift.
Has anyone succeeded in using the mysql-operator on OpenShift?
Status:
Conditions:
Last Transition Time: 2020-03-13T09:59:23Z
Message: cluster is in read only
Reason: ClusterReadOnlyTrue
Status: True
Type: ReadOnly
Last Transition Time: 2020-03-13T09:59:23Z
Message: StatefulSet is not ready
Reason: StatefulSetNotReady
Status: False
Type: Ready
Last Transition Time: 2020-03-13T09:59:23Z
Message: no pending ack
Reason: NoPendingFailoverAckExists
Status: False
Type: PendingFailoverAck
Events:
Type Reason Age From Message
Warning ConfigMapSyncFailed 73s (x17 over 6m46s) controller.mysqlcluster *v1.ConfigMap openshift-marketplace/sample-mysqlcluster-mysql failed syncing: configmaps "sample-mysqlcluster-mysql" is forbidden: cannot set blockOwnerDeletionif an ownerReference refers to a resource you can't set finalizers on: , <nil>