Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

删除或更新CRD时出现Operation cannot be fulfilled ERROR #3

Open
cxwen opened this issue Jun 30, 2020 · 0 comments
Open

删除或更新CRD时出现Operation cannot be fulfilled ERROR #3

cxwen opened this issue Jun 30, 2020 · 0 comments

Comments

@cxwen
Copy link
Owner

cxwen commented Jun 30, 2020

matrix-controller-manager 报错日志

2020-06-30T06:49:47.743Z	ERROR	controllers.Master	update etcdcluster status phase failure	{"master": "example-km", "namespace": "default", "error": "Operation cannot be fulfilled on masters.crd.cxwen.com \"example-km\": StorageError: invalid object, Code: 4, Key: /registry/crd.cxwen.com/masters/default/example-km, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: b090aea1-2859-4265-b8e3-49792dd8c3e5, UID in object meta: "}
github.com/go-logr/zapr.(*zapLogger).Error
	/workspace/vendor/github.com/go-logr/zapr/zapr.go:128
github.com/cxwen/matrix/controllers.(*MasterReconciler).deleteMaster
	/workspace/controllers/master_controller.go:218
github.com/cxwen/matrix/controllers.(*MasterReconciler).Reconcile
	/workspace/controllers/master_controller.go:89
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
	/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:216
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
	/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:192
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker
	/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:171
k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1
	/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:152
k8s.io/apimachinery/pkg/util/wait.JitterUntil
	/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:153
k8s.io/apimachinery/pkg/util/wait.Until
	/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88
2020-06-30T06:49:47.743Z	ERROR	controller-runtime.controller	Reconciler error	{"controller": "master", "request": "default/example-km", "error": "Operation cannot be fulfilled on masters.crd.cxwen.com \"example-km\": StorageError: invalid object, Code: 4, Key: /registry/crd.cxwen.com/masters/default/example-km, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: b090aea1-2859-4265-b8e3-49792dd8c3e5, UID in object meta: "}
github.com/go-logr/zapr.(*zapLogger).Error
	/workspace/vendor/github.com/go-logr/zapr/zapr.go:128
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
	/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:218
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
	/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:192
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker
	/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:171
k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1
	/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:152
k8s.io/apimachinery/pkg/util/wait.JitterUntil
	/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:153
k8s.io/apimachinery/pkg/util/wait.Until
	/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88
2020-06-30T06:49:47.745Z	DEBUG	controller-runtime.controller	Successfully Reconciled	{"controller": "etcdcluster", "request": "default/example-ec"}
2020-06-30T06:49:47.745Z	DEBUG	controllers.EtcdCluster	EtcdCluster reconcile triggering	{"etcdcluster": "default/example-ec"}
2020-06-30T06:49:47.747Z	ERROR	controllers.EtcdCluster	update etcdcluster status phase failure	{"etcdcluster": "example-ec", "error": "Operation cannot be fulfilled on etcdclusters.crd.cxwen.com \"example-ec\": StorageError: invalid object, Code: 4, Key: /registry/crd.cxwen.com/etcdclusters/default/example-ec, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: ceeae7af-1f3a-421d-a70b-cc2657cbb40a, UID in object meta: "}
github.com/go-logr/zapr.(*zapLogger).Error
	/workspace/vendor/github.com/go-logr/zapr/zapr.go:128
github.com/cxwen/matrix/controllers.(*EtcdClusterReconciler).deleteEtcdCluster
	/workspace/controllers/etcdcluster_controller.go:166
github.com/cxwen/matrix/controllers.(*EtcdClusterReconciler).Reconcile
	/workspace/controllers/etcdcluster_controller.go:80
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
	/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:216
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
	/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:192
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker
	/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:171
k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1
	/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:152
k8s.io/apimachinery/pkg/util/wait.JitterUntil
	/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:153
k8s.io/apimachinery/pkg/util/wait.Until
	/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88
2020-06-30T06:49:47.747Z	ERROR	controller-runtime.controller	Reconciler error	{"controller": "etcdcluster", "request": "default/example-ec", "error": "Operation cannot be fulfilled on etcdclusters.crd.cxwen.com \"example-ec\": StorageError: invalid object, Code: 4, Key: /registry/crd.cxwen.com/etcdclusters/default/example-ec, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: ceeae7af-1f3a-421d-a70b-cc2657cbb40a, UID in object meta: "}
github.com/go-logr/zapr.(*zapLogger).Error
	/workspace/vendor/github.com/go-logr/zapr/zapr.go:128
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
	/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:218
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
	/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:192
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker
	/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:171
k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1
	/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:152
k8s.io/apimachinery/pkg/util/wait.JitterUntil
	/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:153
k8s.io/apimachinery/pkg/util/wait.Until
	/workspace/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant