curve-operator icon indicating copy to clipboard operation
curve-operator copied to clipboard

Failed to update cluster and subresource status

Open caoxianfei1 opened this issue 1 year ago • 0 comments

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/

caoxianfei1 avatar Apr 25 '23 09:04 caoxianfei1