opencurve / curve-operator

Curve Storage Orchestration for Kubernetes
23 stars 21 forks source link

Failed to update cluster and subresource status #43

Open caoxianfei1 opened 1 year ago

caoxianfei1 commented 1 year ago

When we update cluster obj or cluster status, sometimes the following errors occur.

failed to update cluster condition to {Type:Ready Status:True ObservedGeneration:0 LastTransitionTime:2023-04-25 16:26:28.49526704 +0800 CST m=+267.053386433 Reason:ReconcileSucceeded Message:Reconcile curvecluster successed}. failed to update object "curve/curvebs-cluster-cloud" status: Operation cannot be fulfilled on curveclusters.operator.curve.io "curvebs-cluster-cloud": the object has been modified; please apply your changes to the latest version and try again

But update it successfully finally. here may be reason.

  1. https://alenkacz.medium.com/kubernetes-operators-best-practices-understanding-conflict-errors-d05353dff421
  2. https://zyy.rs/post/operator-update-conflict/