jgomezve / aci-k8s-operator

Kubernetes Operator to manage Segmentation Policies on a ACI Fabric running the Cisco CNI
Apache License 2.0
1 stars 0 forks source link

Error when deleting a SegmentationPolicy resource #55

Closed jgomezve closed 2 years ago

jgomezve commented 2 years ago
1.653656944696638e+09   INFO    controller.segmentationpolicy   Annotations configured on EPG ns4 : []  {"reconciler group": "apic.aci.cisco", "reconciler kind": "SegmentationPolicy", "name": "segpol2", "namespace": "default"}
1.6536569447005017e+09  ERROR   controller.segmentationpolicy   error occurred while dealing with the delete finalizer  {"reconciler group": "apic.aci.cisco", "reconciler kind": "SegmentationPolicy", "name": "segpol2", "namespace": "default", "error": "error occurred while removing the finalizer: Operation cannot be fulfilled on segmentationpolicies.apic.aci.cisco \"segpol2\": StorageError: invalid object, Code: 4, Key: /registry/apic.aci.cisco/segmentationpolicies/default/segpol2, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: 6153c50d-174f-4bf8-a5c9-070d4baa9ab9, UID in object meta: "}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile
    /home/jgomezve/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:114
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
    /home/jgomezve/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:311
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
    /home/jgomezve/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:266
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
    /home/jgomezve/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:227
1.6536569447005792e+09  ERROR   controller.segmentationpolicy   Reconciler error    {"reconciler group": "apic.aci.cisco", "reconciler kind": "SegmentationPolicy", "name": "segpol2", "namespace": "default", "error": "error occurred while removing the finalizer: Operation cannot be fulfilled on segmentationpolicies.apic.aci.cisco \"segpol2\": StorageError: invalid object, Code: 4, Key: /registry/apic.aci.cisco/segmentationpolicies/default/segpol2, ResourceVersion: 0, AdditionalErrorMsg: Precondition failed: UID in precondition: 6153c50d-174f-4bf8-a5c9-070d4baa9ab9, UID in object meta: "}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
    /home/jgomezve/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:266
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
    /home/jgomezve/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.11.2/pkg/internal/controller/controller.go:227