oracle / mysql-operator

Create, operate and scale self-healing MySQL clusters in Kubernetes
870 stars 235 forks source link

Members unable to join when schedules in different nodes #295

Closed figassis closed 4 years ago

figassis commented 4 years ago

Is this a BUG REPORT or FEATURE REQUEST?

BUG REPORT

Versions

MySQL Operator Version: 0.3.0

Environment:

What happened?

The first cluster member comes up fine, but the second gets stuck as below. mysql-mysql-cluster-1 1/2 Running

with the mysql-agent container stuck at "Cluster not yet present. Waiting..."

What you expected to happen?

All 3 members to come up healthy

How to reproduce it (as minimally and precisely as possible)?

Failed install

  1. Add mysql="true" label to node1 and node2
  2. Add nodeSelector mysql="true" to the cluster spec
  3. Install mysql-operator in its own namespace, via helm chart
  4. Install mysql-agent ServiceAccount and RoleBinding in "mysql" namespace
  5. Install mysqlcluster helm chart with 3 replicas in "mysql" namespace
  6. Only first member comes up healthy

Successful install

  1. Uninstall cluster
  2. Remove label from node1
  3. Install cluster
  4. All members come up healthy
figassis commented 4 years ago

Issue is related to https://github.com/projectcalico/calico/issues/1709.