kube-arangodb icon indicating copy to clipboard operation
kube-arangodb copied to clipboard

CRD for arango deployment not deleting

Open Hugheym opened this issue 6 years ago • 3 comments

I'm trying to delete the arango crd using kubectl delete, but it is stuck at "CustomResource deletion is in progress". I've already deleted all other arango resources in the cluster and there are no arangoDeployments currently running. My master and node versions are at 1.10.7-gke.6 and I'm running on GKE with istio.

 >>>kubectl describe crd/arangodeployments.database.arangodb.com

Name:         arangodeployments.database.arangodb.com
Namespace:
Labels:       <none>
Annotations:  kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"apiextensions.k8s.io/v1beta1","kind":"CustomResourceDefinition","metadata":{"annotations":{},"name":"arangodeployments.database.arangodb...
API Version:  apiextensions.k8s.io/v1beta1
Kind:         CustomResourceDefinition
Metadata:
  Creation Timestamp:             2018-09-30T13:25:29Z
  Deletion Grace Period Seconds:  0
  Deletion Timestamp:             2018-10-13T08:22:05Z
  Finalizers:
    customresourcecleanup.apiextensions.k8s.io
  Generation:        1
  Resource Version:  16979330
  Self Link:         /apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/arangodeployments.database.arangodb.com
  UID:               4cc9630e-c4b4-11e8-b22a-42010a92012a
Spec:
  Group:  database.arangodb.com
  Names:
    Kind:       ArangoDeployment
    List Kind:  ArangoDeploymentList
    Plural:     arangodeployments
    Short Names:
      arangodb
      arango
    Singular:  arangodeployment
  Scope:       Namespaced
  Version:     v1alpha
Status:
  Accepted Names:
    Kind:       ArangoDeployment
    List Kind:  ArangoDeploymentList
    Plural:     arangodeployments
    Short Names:
      arangodb
      arango
    Singular:  arangodeployment
  Conditions:
    Last Transition Time:  2018-09-30T13:25:29Z
    Message:               no conflicts found
    Reason:                NoConflicts
    Status:                True
    Type:                  NamesAccepted
    Last Transition Time:  2018-09-30T13:25:29Z
    Message:               the initial names have been accepted
    Reason:                InitialNamesAccepted
    Status:                True
    Type:                  Established
    Last Transition Time:  2018-10-13T06:17:12Z
    Message:               CustomResource deletion is in progress
    Reason:                InstanceDeletionInProgress
    Status:                True
    Type:                  Terminating
Events:                    <none>

Hugheym avatar Oct 13 '18 08:10 Hugheym

Please provide information how to reproduce the above problem. Obviously there is still a finalizer

Finalizers:
    customresourcecleanup.apiextensions.k8s.io

attached to the CRD. This is most likely the result of a wrong order of deletions. You may have come across this known issue. A workaround how to manually delete the finalizer is also available.

maierlars avatar Oct 15 '18 12:10 maierlars

I encountered this issue today and somehow the workaround worked. Thank you @maierlars

edbergavera avatar Jan 31 '22 09:01 edbergavera

I am no longer working on this project. @ajanikow is now responsible for kube-arangodb.

maierlars avatar Jan 31 '22 09:01 maierlars

@ajanikow Hi, I'm facing this issue using AragoDB in cluster mode (on a K8s cluster using AWS), is any fix available or workaround (without manual steps) for this issue?

When I try to delete ArangoDB the CRDs are not being deleted, they stay in an infinite cycle with the message "terminating"

Thanks :)

I will appreciate any help

JPaulAlf avatar May 12 '23 14:05 JPaulAlf

@JPaulAlf This is a common issue with CRD controllers.

There are two ways of fixing it: Remove finalizer from your resource by editing it OR install again the operator, which will unblock the termination state

jwierzbo avatar May 15 '23 20:05 jwierzbo