Open navist2020 opened 3 years ago
cat /proc/version
Linux version 3.10.0-957.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Thu Nov 8 23:39:32 UTC 2018
kubectl version
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.3", GitCommit:"ca643a4d1f7bfe34773c74f79527be4afd95bf39", GitTreeState:"clean", BuildDate:"2021-07-15T21:04:39Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.3", GitCommit:"ca643a4d1f7bfe34773c74f79527be4afd95bf39", GitTreeState:"clean", BuildDate:"2021-07-15T20:59:07Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"linux/amd64"}
I can't pull images when the tag is latest
.so I used the version v0.5.1
.
This may have something to do with your storage, what is your StorageClass
.
@cndoit18 Hi I dont use storage. this is yaml
spec:
image: percona:8.0
mysqlVersion: "8.0"
podSpec:
metricsExporterResources: {}
mysqlOperatorSidecarResources: {}
resources: {}
replicas: 1
secretName: test-mysql-cluster-db
volumeSpec: {}
status:
conditions:
- lastTransitionTime: "2021-10-22T01:56:01Z"
message: 'read-only nodes: '
reason: ClusterReadOnlyTrue
status: "True"
type: ReadOnly
- lastTransitionTime: "2021-10-22T01:56:01Z"
message: StatefulSet is not ready
reason: StatefulSetNotReady
status: "False"
type: Ready
- lastTransitionTime: "2021-10-22T01:56:01Z"
message: no pending ack
reason: NoPendingFailoverAckExists
status: "False"
type: PendingFailoverAck
It works perfectly fine after just modifying 8.0
to 5.7
.
Can you provide the yaml
for pod
and statefulset
?
Sorry about delay @cndoit18 . Yaml is here.
mysqlversion 8
apiVersion: apps/v1
kind: StatefulSet
metadata:
creationTimestamp: "2021-10-28T08:08:10Z"
generation: 1
name: test-mysql-cluster-db-mysql
namespace: default
ownerReferences:
- apiVersion: mysql.presslabs.org/v1alpha1
blockOwnerDeletion: true
controller: true
kind: MysqlCluster
name: test-mysql-cluster-db
uid: 86a2a3dc-8871-498e-96c5-4c21f39dd2d9
resourceVersion: "8178090"
uid: 046bd5d6-51ec-4597-8d51-14ee9ffc1ddf
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app.kubernetes.io/managed-by: mysql.presslabs.org
app.kubernetes.io/name: mysql
mysql.presslabs.org/cluster: test-mysql-cluster-db
serviceName: mysql
template:
metadata:
annotations:
config_rev: "8178064"
prometheus.io/port: "9125"
prometheus.io/scrape: "true"
secret_rev: "8178065"
creationTimestamp: null
labels:
app.kubernetes.io/component: database
app.kubernetes.io/instance: test-mysql-cluster-db
app.kubernetes.io/managed-by: mysql.presslabs.org
app.kubernetes.io/name: mysql
app.kubernetes.io/version: 8.0.20
mysql.presslabs.org/cluster: test-mysql-cluster-db
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/component: database
app.kubernetes.io/instance: test-mysql-cluster-db
app.kubernetes.io/managed-by: mysql.presslabs.org
app.kubernetes.io/name: mysql
app.kubernetes.io/version: 8.0.20
mysql.presslabs.org/cluster: test-mysql-cluster-db
topologyKey: kubernetes.io/hostname
weight: 100
containers:
- env:
- name: MY_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: MY_POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: MY_POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: MY_SERVICE_NAME
value: mysql
- name: MY_CLUSTER_NAME
value: test-mysql-cluster-db
- name: MY_FQDN
value: $(MY_POD_NAME).$(MY_SERVICE_NAME).$(MY_NAMESPACE)
- name: MY_MYSQL_VERSION
value: 8.0.20
- name: ORCH_CLUSTER_ALIAS
value: test-mysql-cluster-db.default
- name: ORCH_HTTP_API
value: http://mysql-op-mysql-operator.default/api
image: percona:8.0
imagePullPolicy: IfNotPresent
livenessProbe:
exec:
command:
- mysqladmin
- --defaults-file=/etc/mysql/client.conf
- ping
failureThreshold: 3
initialDelaySeconds: 60
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 5
name: mysql
ports:
- containerPort: 3306
name: mysql
protocol: TCP
readinessProbe:
exec:
command:
- /bin/sh
- -c
- test $(mysql --defaults-file=/etc/mysql/client.conf -NB -e 'SELECT COUNT(*)
FROM sys_operator.status WHERE name="configured" AND value="1"') -eq
1
failureThreshold: 3
initialDelaySeconds: 5
periodSeconds: 2
successThreshold: 1
timeoutSeconds: 5
resources:
requests:
cpu: 200m
memory: 1Gi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/mysql
name: conf
- mountPath: /var/lib/mysql
name: data
- args:
- config-and-serve
env:
- name: MY_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: MY_POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: MY_POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: MY_SERVICE_NAME
value: mysql
- name: MY_CLUSTER_NAME
value: test-mysql-cluster-db
- name: MY_FQDN
value: $(MY_POD_NAME).$(MY_SERVICE_NAME).$(MY_NAMESPACE)
- name: MY_MYSQL_VERSION
value: 8.0.20
- name: XTRABACKUP_TARGET_DIR
value: /tmp/xtrabackup_backupfiles/
envFrom:
- secretRef:
name: test-mysql-cluster-db-mysql-operated
image: docker.io/bitpoke/mysql-operator-sidecar-8.0:v0.5.1
imagePullPolicy: IfNotPresent
name: sidecar
ports:
- containerPort: 8080
name: sidecar-http
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /health
port: 8080
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 5
resources:
requests:
cpu: 10m
memory: 64Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/mysql
name: conf
- mountPath: /var/lib/mysql
name: data
- args:
- --web.listen-address=0.0.0.0:9125
- --web.telemetry-path=/metrics
- --collect.heartbeat
- --collect.heartbeat.database=sys_operator
env:
- name: MY_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: MY_POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: MY_POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: MY_SERVICE_NAME
value: mysql
- name: MY_CLUSTER_NAME
value: test-mysql-cluster-db
- name: MY_FQDN
value: $(MY_POD_NAME).$(MY_SERVICE_NAME).$(MY_NAMESPACE)
- name: MY_MYSQL_VERSION
value: 8.0.20
- name: USER
valueFrom:
secretKeyRef:
key: METRICS_EXPORTER_USER
name: test-mysql-cluster-db-mysql-operated
optional: false
- name: PASSWORD
valueFrom:
secretKeyRef:
key: METRICS_EXPORTER_PASSWORD
name: test-mysql-cluster-db-mysql-operated
optional: false
- name: DATA_SOURCE_NAME
value: $(USER):$(PASSWORD)@(127.0.0.1:3306)/
image: prom/mysqld-exporter:v0.13.0
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /metrics
port: 9125
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 30
name: metrics-exporter
ports:
- containerPort: 9125
name: prometheus
protocol: TCP
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 10m
memory: 32Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
- args:
- pt-heartbeat
- --update
- --replace
- --check-read-only
- --create-table
- --database
- sys_operator
- --table
- heartbeat
- --utc
- --defaults-file
- /etc/mysql/heartbeat.conf
- --fail-successive-errors=20
env:
- name: MY_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: MY_POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: MY_POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: MY_SERVICE_NAME
value: mysql
- name: MY_CLUSTER_NAME
value: test-mysql-cluster-db
- name: MY_FQDN
value: $(MY_POD_NAME).$(MY_SERVICE_NAME).$(MY_NAMESPACE)
- name: MY_MYSQL_VERSION
value: 8.0.20
image: docker.io/bitpoke/mysql-operator-sidecar-8.0:v0.5.1
imagePullPolicy: IfNotPresent
name: pt-heartbeat
resources:
limits:
cpu: 100m
memory: 64Mi
requests:
cpu: 10m
memory: 32Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/mysql
name: conf
dnsPolicy: ClusterFirst
initContainers:
- args:
- clone-and-init
env:
- name: MY_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: MY_POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: MY_POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: MY_SERVICE_NAME
value: mysql
- name: MY_CLUSTER_NAME
value: test-mysql-cluster-db
- name: MY_FQDN
value: $(MY_POD_NAME).$(MY_SERVICE_NAME).$(MY_NAMESPACE)
- name: MY_MYSQL_VERSION
value: 8.0.20
- name: BACKUP_USER
valueFrom:
secretKeyRef:
key: BACKUP_USER
name: test-mysql-cluster-db-mysql-operated
optional: true
- name: BACKUP_PASSWORD
valueFrom:
secretKeyRef:
key: BACKUP_PASSWORD
name: test-mysql-cluster-db-mysql-operated
optional: true
envFrom:
- secretRef:
name: test-mysql-cluster-db-mysql-operated
image: docker.io/bitpoke/mysql-operator-sidecar-8.0:v0.5.1
imagePullPolicy: IfNotPresent
name: init
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/mysql
name: conf
- mountPath: /mnt/conf
name: config-map
- mountPath: /var/lib/mysql
name: data
- env:
- name: MY_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: MY_POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: MY_POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: MY_SERVICE_NAME
value: mysql
- name: MY_CLUSTER_NAME
value: test-mysql-cluster-db
- name: MY_FQDN
value: $(MY_POD_NAME).$(MY_SERVICE_NAME).$(MY_NAMESPACE)
- name: MY_MYSQL_VERSION
value: 8.0.20
- name: MYSQL_INIT_ONLY
value: "1"
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
key: ROOT_PASSWORD
name: test-mysql-cluster-db
optional: false
- name: MYSQL_USER
valueFrom:
secretKeyRef:
key: USER
name: test-mysql-cluster-db
optional: true
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
key: PASSWORD
name: test-mysql-cluster-db
optional: true
- name: MYSQL_DATABASE
valueFrom:
secretKeyRef:
key: DATABASE
name: test-mysql-cluster-db
optional: true
image: percona:8.0
imagePullPolicy: IfNotPresent
name: mysql-init-only
resources:
requests:
cpu: 200m
memory: 1Gi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/mysql
name: conf
- mountPath: /var/lib/mysql
name: data
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
fsGroup: 999
runAsUser: 999
terminationGracePeriodSeconds: 30
volumes:
- emptyDir: {}
name: conf
- emptyDir: {}
name: init-scripts
- configMap:
defaultMode: 420
name: test-mysql-cluster-db-mysql
name: config-map
- emptyDir: {}
name: data
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
status:
collisionCount: 0
currentReplicas: 1
currentRevision: test-mysql-cluster-db-mysql-5c8648f688
observedGeneration: 1
replicas: 1
updateRevision: test-mysql-cluster-db-mysql-5c8648f688
updatedReplicas: 1
- emptyDir: {}
name: data
Hi, I see that the storage here is using emptyDir, you can use ceph
or openebs
for the persistence. It should be your environment causing the problem.
HI @cndoit18.Thanks for your reply.
If I use emptyDir
with the mysql 5.7, it's fine.And I try to keep only mysql
container in statefulset to start it, as follow
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: test-8
namespace: default
spec:
podManagementPolicy: OrderedReady
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app.kubernetes.io/name: my-test
serviceName: mysql
template:
metadata:
labels:
app.kubernetes.io/name: my-test
spec:
containers:
- env:
- name: MY_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: MY_POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: MY_POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: MY_SERVICE_NAME
value: mysql
- name: MYSQL_ROOT_PASSWORD
value: root
- name: MY_CLUSTER_NAME
value: lijun-mysql-cluster-db
- name: MY_FQDN
value: $(MY_POD_NAME).$(MY_SERVICE_NAME).$(MY_NAMESPACE)
- name: MY_MYSQL_VERSION
value: 8.0.20
- name: ORCH_CLUSTER_ALIAS
value: lijun-mysql-cluster-db.default
- name: ORCH_HTTP_API
value: http://mysql-op-mysql-operator.default/api
image: percona:8.0
imagePullPolicy: IfNotPresent
name: mysql
ports:
- containerPort: 3306
name: mysql
protocol: TCP
resources:
requests:
cpu: 200m
memory: 1Gi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/mysql
name: conf
- mountPath: /var/lib/mysql
name: data
restartPolicy: Always
schedulerName: default-scheduler
terminationGracePeriodSeconds: 30
volumes:
- emptyDir: {}
name: conf
- emptyDir: {}
name: data
It will also run normally. So I'm guessing some setting in another container is causing mysql
to fail to start, but I'm not sure.
percona 8.0 create mysql user with id 1001
# https://github.com/percona/percona-docker/blob/main/percona-server-8.0/Dockerfile
/bin/sh -c groupadd -g 1001 mysql; useradd -u 1001 -r -g 1001 -s /sbin/nologin -c "Default Application User" mysql
mysql-operator-sidecar-8.0 create user mysql with uid 999 , so mysqld will run as non mysql account.
mysql-operator-sidecar-8.0 create user mysql with uid 999 , so mysqld will run as non mysql account.
what is the solution to the problem? build your own mysql image?
I'm using this and it is failing.
apiVersion: mysql.presslabs.org/v1alpha1
kind: MysqlCluster
metadata:
name: my-cluster
namespace: stage-pool
spec:
replicas: 1
secretName: my-secret
image: percona:8.0
mysqlVersion: "8.0"
{"severity":"ERROR","timestamp":"2021-12-22T14:55:48.600177569Z","logger":"update-status","message":"failed to parse given MySQL version","input":"8.0","error":"No Major.Minor.Patch elements found","stacktrace":"github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).GetMySQLSemVer\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:186\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).GetLabels\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:77\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).SetDefaults\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/defaults.go:73\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster.(*ReconcileMysqlCluster).Reconcile\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/mysqlcluster_controller.go:208\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
{"severity":"ERROR","timestamp":"2021-12-22T14:55:48.600296797Z","logger":"update-status","message":"failed to parse given MySQL version","input":"8.0","error":"No Major.Minor.Patch elements found","stacktrace":"github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).GetMySQLSemVer\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:186\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).GetLabels\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:77\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.NewConfigMapSyncer.func1\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/config_map.go:50\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).mutateFn.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:78\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil.CreateOrUpdate\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil/controllerutil.go:146\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:48\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/syncer.go:62\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster.(*ReconcileMysqlCluster).Reconcile\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/mysqlcluster_controller.go:225\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
{"severity":"ERROR","timestamp":"2021-12-22T14:55:48.600937232Z","logger":"update-status","message":"failed to parse given MySQL version","input":"8.0","error":"No Major.Minor.Patch elements found","stacktrace":"github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).GetMySQLSemVer\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:186\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).GetLabels\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:77\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.NewMasterSVCSyncer.func1\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/master_service.go:42\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).mutateFn.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:78\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil.CreateOrUpdate\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil/controllerutil.go:146\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:48\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/syncer.go:62\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster.(*ReconcileMysqlCluster).Reconcile\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/mysqlcluster_controller.go:254\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
{"severity":"ERROR","timestamp":"2021-12-22T14:55:48.601627645Z","logger":"update-status","message":"failed to parse given MySQL version","input":"8.0","error":"No Major.Minor.Patch elements found","stacktrace":"github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).GetMySQLSemVer\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:186\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).GetLabels\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:77\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.NewHealthySVCSyncer.func1\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/healthy_service.go:42\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).mutateFn.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:78\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil.CreateOrUpdate\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil/controllerutil.go:146\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:48\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/syncer.go:62\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster.(*ReconcileMysqlCluster).Reconcile\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/mysqlcluster_controller.go:254\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
{"severity":"ERROR","timestamp":"2021-12-22T14:55:48.601848961Z","logger":"update-status","message":"failed to parse given MySQL version","input":"8.0","error":"No Major.Minor.Patch elements found","stacktrace":"github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).GetMySQLSemVer\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:186\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).GetLabels\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:77\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.NewHealthyReplicasSVCSyncer.func1\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/healthy_replicas_service.go:42\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).mutateFn.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:78\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil.CreateOrUpdate\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil/controllerutil.go:146\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:48\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/syncer.go:62\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster.(*ReconcileMysqlCluster).Reconcile\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/mysqlcluster_controller.go:254\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
{"severity":"ERROR","timestamp":"2021-12-22T14:55:48.602175298Z","logger":"update-status","message":"failed to parse given MySQL version","input":"8.0","error":"No Major.Minor.Patch elements found","stacktrace":"github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).GetMySQLSemVer\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:186\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).GetLabels\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:77\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).getLabels\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:633\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).SyncFn\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:103\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.NewStatefulSetSyncer.func1\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:89\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).mutateFn.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:78\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil.CreateOrUpdate\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil/controllerutil.go:146\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:48\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/syncer.go:62\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster.(*ReconcileMysqlCluster).Reconcile\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/mysqlcluster_controller.go:254\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
{"severity":"ERROR","timestamp":"2021-12-22T14:55:48.602261132Z","logger":"update-status","message":"failed to parse given MySQL version","input":"8.0","error":"No Major.Minor.Patch elements found","stacktrace":"github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).GetMySQLSemVer\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:186\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).ShouldHaveInitContainerForMysql\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:227\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).getEnvFor\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:307\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).ensureContainer\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:158\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).ensureInitContainersSpec\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:320\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).ensurePodSpec\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:134\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).SyncFn\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:114\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.NewStatefulSetSyncer.func1\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:89\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).mutateFn.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:78\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil.CreateOrUpdate\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil/controllerutil.go:146\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:48\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/syncer.go:62\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster.(*ReconcileMysqlCluster).Reconcile\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/mysqlcluster_controller.go:254\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
{"severity":"ERROR","timestamp":"2021-12-22T14:55:48.602343847Z","logger":"update-status","message":"failed to parse given MySQL version","input":"8.0","error":"No Major.Minor.Patch elements found","stacktrace":"github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).GetMySQLSemVer\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:186\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).ShouldHaveInitContainerForMysql\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:227\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).ensureInitContainersSpec\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:327\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).ensurePodSpec\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:134\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).SyncFn\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:114\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.NewStatefulSetSyncer.func1\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:89\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).mutateFn.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:78\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil.CreateOrUpdate\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil/controllerutil.go:146\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:48\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/syncer.go:62\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster.(*ReconcileMysqlCluster).Reconcile\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/mysqlcluster_controller.go:254\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
{"severity":"ERROR","timestamp":"2021-12-22T14:55:48.602434336Z","logger":"update-status","message":"failed to parse given MySQL version","input":"8.0","error":"No Major.Minor.Patch elements found","stacktrace":"github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).GetMySQLSemVer\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:186\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).ShouldHaveInitContainerForMysql\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:227\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).getEnvFor\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:307\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).ensureContainer\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:158\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).ensureContainersSpec\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:345\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).ensurePodSpec\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:135\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).SyncFn\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:114\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.NewStatefulSetSyncer.func1\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:89\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).mutateFn.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:78\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil.CreateOrUpdate\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil/controllerutil.go:146\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:48\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/syncer.go:62\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster.(*ReconcileMysqlCluster).Reconcile\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/mysqlcluster_controller.go:254\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
{"severity":"ERROR","timestamp":"2021-12-22T14:55:48.602545632Z","logger":"update-status","message":"failed to parse given MySQL version","input":"8.0","error":"No Major.Minor.Patch elements found","stacktrace":"github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).GetMySQLSemVer\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:186\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).ShouldHaveInitContainerForMysql\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:227\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).getEnvFor\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:307\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).ensureContainer\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:158\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).ensureContainersSpec\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:379\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).ensurePodSpec\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:135\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).SyncFn\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:114\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.NewStatefulSetSyncer.func1\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:89\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).mutateFn.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:78\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil.CreateOrUpdate\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil/controllerutil.go:146\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:48\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/syncer.go:62\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster.(*ReconcileMysqlCluster).Reconcile\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/mysqlcluster_controller.go:254\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
{"severity":"ERROR","timestamp":"2021-12-22T14:55:48.602657783Z","logger":"update-status","message":"failed to parse given MySQL version","input":"8.0","error":"No Major.Minor.Patch elements found","stacktrace":"github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).GetMySQLSemVer\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:186\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).ShouldHaveInitContainerForMysql\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:227\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).getEnvFor\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:307\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).ensureContainer\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:158\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).ensureContainersSpec\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:408\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).ensurePodSpec\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:135\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).SyncFn\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:114\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.NewStatefulSetSyncer.func1\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:89\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).mutateFn.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:78\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil.CreateOrUpdate\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil/controllerutil.go:146\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:48\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/syncer.go:62\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster.(*ReconcileMysqlCluster).Reconcile\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/mysqlcluster_controller.go:254\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
{"severity":"ERROR","timestamp":"2021-12-22T14:55:48.602757804Z","logger":"update-status","message":"failed to parse given MySQL version","input":"8.0","error":"No Major.Minor.Patch elements found","stacktrace":"github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).GetMySQLSemVer\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:186\ngithub.com/presslabs/mysql-operator/pkg/internal/mysqlcluster.(*MysqlCluster).ShouldHaveInitContainerForMysql\n\t/go/src/github.com/presslabs/mysql-operator/pkg/internal/mysqlcluster/mysqlcluster.go:227\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).getEnvFor\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:307\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).ensureContainer\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:158\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).ensureContainersSpec\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:429\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).ensurePodSpec\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:135\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.(*sfsSyncer).SyncFn\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:114\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer.NewStatefulSetSyncer.func1\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/internal/syncer/statefullset.go:89\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).mutateFn.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:78\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil.CreateOrUpdate\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/controller/controllerutil/controllerutil.go:146\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.(*ObjectSyncer).Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/object.go:48\ngithub.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer.Sync\n\t/go/src/github.com/presslabs/mysql-operator/vendor/github.com/presslabs/controller-util/syncer/syncer.go:62\ngithub.com/presslabs/mysql-operator/pkg/controller/mysqlcluster.(*ReconcileMysqlCluster).Reconcile\n\t/go/src/github.com/presslabs/mysql-operator/pkg/controller/mysqlcluster/mysqlcluster_controller.go:254\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:215\ngithub.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/go/src/github.com/presslabs/mysql-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}
I want to start a mysql8 cluster. But the following error occurred. Use
kubectl logs <podName> -c mysql
:I am using the latest master branch code in https://github.com/bitpoke/mysql-operator/tree/master/deploy/charts And I only changed the following
deploy/charts/mysql-operator/values.yaml
deploy/charts/mysql-cluster/values.yaml
Is there something wrong with the way I use it?