This repository was archived by the owner on May 28, 2021. It is now read-only.
This repository was archived by the owner on May 28, 2021. It is now read-only.
The second node can't be joined in the innodb-cluster (MySQL 8.0.11) #160
Open
Description
Is this a BUG REPORT or FEATURE REQUEST?
BUG REPORT
Versions
MySQL Operator Version:
d9b3b4f
Environment:
- Kubernetes version (use
kubectl version
):
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.3", GitCommit:"2bba0127d85d5a46ab4b778548be28623b32d0b0", GitTreeState:"clean", BuildDate:"2018-05-21T09:17:39Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.3", GitCommit:"2bba0127d85d5a46ab4b778548be28623b32d0b0", GitTreeState:"clean", BuildDate:"2018-05-21T09:05:37Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
-
mysql:
8.0.11 -
Cloud provider or hardware configuration:
-
OS (e.g. from /etc/os-release):
NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31"
- Kernel (e.g.
uname -a
):
10.5.6.13 Ready 4d v1.10.3 CentOS Linux 7 (Core) 3.10.0-693.5.2.el7.x86_64 docker://17.3.1 10.5.6.14 Ready master 6d v1.10.3 CentOS Linux 7 (Core) 3.10.0-693.5.2.el7.x86_64 docker://17.3.1 10.5.6.17 Ready 6d v1.10.3 CentOS Linux 7 (Core) 3.10.0-693.5.2.el7.x86_64 docker://17.3.1
- Others:
cluster-with-3-replicas.yaml
apiVersion: "mysql.oracle.com/v1alpha1"
kind: Cluster
metadata:
name: mysql-cluster
spec:
members: 3
baseServerId: 2000
00-namespace.yaml
apiVersion: v1
kind: Namespace
metadata:
name: mysql-operator
01-resources.yaml
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: mysqlclusters.mysql.oracle.com
spec:
group: mysql.oracle.com
version: v1alpha1
scope: Namespaced
names:
kind: Cluster
singular: mysqlcluster
plural: mysqlclusters
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: mysqlbackups.mysql.oracle.com
spec:
group: mysql.oracle.com
version: v1alpha1
scope: Namespaced
names:
kind: Backup
singular: mysqlbackup
plural: mysqlbackups
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: mysqlrestores.mysql.oracle.com
spec:
group: mysql.oracle.com
version: v1alpha1
scope: Namespaced
names:
kind: Restore
singular: mysqlrestore
plural: mysqlrestores
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: mysqlbackupschedules.mysql.oracle.com
spec:
group: mysql.oracle.com
version: v1alpha1
scope: Namespaced
names:
kind: BackupSchedule
singular: mysqlbackupschedule
plural: mysqlbackupschedules
02-rbac.yaml
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: mysql-operator
namespace: mysql-operator
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: mysql-agent
namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: mysql-operator
rules:
- apiGroups:
- "*"
resources:
- "*"
verbs:
- "*"
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: mysql-operator
namespace: mysql-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: mysql-operator
subjects:
- kind: ServiceAccount
name: mysql-operator
namespace: mysql-operator
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: mysql-agent
namespace: default
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: mysql-operator
subjects:
- kind: ServiceAccount
name: mysql-agent
namespace: default
03-deployment.yaml
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: mysql-operator
namespace: mysql-operator
labels:
release: 0.1.0
app: mysql-operator
spec:
replicas: 1
selector:
matchLabels:
app: mysql-operator
template:
metadata:
labels:
app: mysql-operator
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8080"
spec:
serviceAccountName: mysql-operator
containers:
- name: mysql-operator-controller
imagePullPolicy: Always
image: 10.5.6.10/mysql/mysql-operator:d9b3b4ff-2018062814
ports:
- containerPort: 10254
args:
- --v=4
- --mysql-agent-image=10.5.6.10/mysql/mysql-agent
- --mysql-server-image=10.5.6.10/mysql/mysql-server
What happened?
The second mysql node can't be joined in cluster, the following is error msg in the second mysql node:
2018-06-28T07:24:22.399692Z 0 [ERROR] [MY-011526] [Repl] Plugin group_replication reported: 'This member has more executed transactions than those present in the group. Local transactions: 41200517-7aa0-11e8-b7f2-0a58ac6000d9:1-5 > Group transactions: 2a7148a3-7aa0-11e8-ab02-0a58ac6003c8:1-19, 373b0f6e-7aa0-11e8-aa88-0a58ac6003c8:1-442' 2018-06-28T07:24:22.399742Z 0 [ERROR] [MY-011522] [Repl] Plugin group_replication reported: 'The member contains transactions not present in the group. The member will now exit the group.' 2018-06-28T07:24:22.399773Z 0 [Note] [MY-011503] [Repl] Plugin group_replication reported: 'Group membership changed to mysql-cluster-0.mysql-cluster:3306, on view 15301689195655916:126.' 2018-06-28T07:24:22.399800Z 1097 [Note] [MY-011647] [Repl] Plugin group_replication reported: 'Going to wait for view modification'
What you expected to happen?
The second mysql node could be joined in the group
How to reproduce it (as minimally and precisely as possible)?
- kubectl create -f 00-namespace.yaml
- kubectl create -f 01-resources.yaml
- kubectl create -f 02-rbac.yaml
- kubectl create -f 03-deployment.yaml
- kubectl create -f cluster-with-3-replicas.yaml