moco icon indicating copy to clipboard operation
moco copied to clipboard

cluster-manager is not started

Open masa213f opened this issue 1 year ago • 3 comments

Describe the bug

cluster-manager is not started.

Environments

  • Version: MOCO v0.16.1

To Reproduce

  1. Create a MySQLCluster
  2. Wait for the MySQLCluster to become HEALTHY.
  3. Edit the MySQLCluster so that a reconciliation error occurs.
    $kubectl edit mysqlcluster <MySQLCluster>
    ...
    spec:
      mysqlConfigMapName: not-found
      podTemplate:
    ...
    
  4. Restart the moco-controller
    $ kubectl rollout restart -n moco-system deployment moco-controller 
    

After the above steps, a cluster-manager (goroutine) for the MySQLCluster will not start.

Expected behavior

After restarting moco-controller, the moco-controller should start cluster-managers for the existing MySQLClusters.

masa213f avatar Jul 24 '23 06:07 masa213f

@masa213f Is this a regression?

ymmt2005 avatar Jul 24 '23 06:07 ymmt2005

@ymmt2005 Probably, this defect has existed for a long time.

masa213f avatar Jul 27 '23 01:07 masa213f

@masa213f Ah, I overlooked this.

Edit the MySQLCluster so that a reconciliation error occurs

Yes, it's currently the way it does. Maybe we should add more validation.

ymmt2005 avatar Jul 27 '23 01:07 ymmt2005