Uploaded image for project: 'A-MQ Messaging-as-a-Service'
  1. A-MQ Messaging-as-a-Service
  2. ENTMQMAAS-2196

Enmasse CRDs are not removed (waiting for finalizers)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 1.5.0
    • None
    • None
    • None

      Seems uninstall of enmasse stuck on deleting CRDs in case iot was deployed as well, I think some finalyzers must block removing of resources.
      iot projects is not deleted properly

      2020-06-08T07:05:11.506Z INFO  [EnmasseOperatorManager] Delete enmasse OLM from: /home/cloud-user/jenkins/workspace/enmasse-master-folder/enmasse-master-iot-4.4-BUNDLE/enmasse/systemtests/../templates/build/enmasse-latest
      2020-06-08T07:05:11.506Z INFO  [Exec] Running command - oc get subscriptions -n openshift-operators
      2020-06-08T07:05:11.875Z INFO  [Exec] Return code: 0
      2020-06-08T07:05:11.875Z INFO  [Exec] stderr: 
      No resources found in openshift-operators namespace.
      
      2020-06-08T07:05:11.875Z INFO  [Exec] Running command - oc get subscriptions -n enmasse-infra
      2020-06-08T07:05:12.247Z INFO  [Exec] Return code: 0
      2020-06-08T07:05:12.247Z INFO  [Exec] stderr: 
      No resources found in enmasse-infra namespace.
      
      2020-06-08T07:05:12.247Z INFO  [Kubernetes] Following namespace will be removed - systemtests-container-builds
      2020-06-08T07:05:12.409Z INFO  [Kubernetes] Namespace systemtests-container-builds already removed
      2020-06-08T07:05:12.409Z INFO  [Exec] Running command - oc delete crd -l app=enmasse,enmasse-component=iot
      2020-06-08T07:06:12.417Z INFO  [Exec] Return code: 1
      2020-06-08T07:06:12.418Z INFO  [Exec] stdout: 
      customresourcedefinition.apiextensions.k8s.io "iotprojects.iot.enmasse.io" deleted
      
      2020-06-08T07:06:12.418Z INFO  [Exec] Running command - oc delete crd -l app=enmasse --timeout=600s
      2020-06-08T07:16:12.430Z INFO  [Exec] Return code: 1
      2020-06-08T07:16:12.430Z INFO  [Exec] stdout: 
      customresourcedefinition.apiextensions.k8s.io "addresses.enmasse.io" deleted
      customresourcedefinition.apiextensions.k8s.io "addressplans.admin.enmasse.io" deleted
      customresourcedefinition.apiextensions.k8s.io "addressspaceplans.admin.enmasse.io" deleted
      customresourcedefinition.apiextensions.k8s.io "addressspaces.enmasse.io" deleted
      customresourcedefinition.apiextensions.k8s.io "addressspaceschemas.enmasse.io" deleted
      customresourcedefinition.apiextensions.k8s.io "authenticationservices.admin.enmasse.io" deleted
      customresourcedefinition.apiextensions.k8s.io "brokeredinfraconfigs.admin.enmasse.io" deleted
      customresourcedefinition.apiextensions.k8s.io "consoleservices.admin.enmasse.io" deleted
      customresourcedefinition.apiextensions.k8s.io "iotconfigs.iot.enmasse.io" deleted
      customresourcedefinition.apiextensions.k8s.io "iotprojects.iot.enmasse.io" deleted
      customresourcedefinition.apiextensions.k8s.io "messagingusers.user.enmasse.io" deleted
      customresourcedefinition.apiextensions.k8s.io "standardinfraconfigs.admin.enmasse.io" deleted
      
      2020-06-08T07:16:12.430Z INFO  [Exec] Running command - oc delete clusterrolebindings -l app=enmasse
      2020-06-08T07:16:14.240Z INFO  [Exec] Return code: 0
      2020-06-08T07:16:14.241Z INFO  [Exec] stdout: 
      clusterrolebinding.rbac.authorization.k8s.io "enmasse.io:address-space-admin-enmasse-infra" deleted
      clusterrolebinding.rbac.authorization.k8s.io "enmasse.io:address-space-controller-enmasse-infra" deleted
      clusterrolebinding.rbac.authorization.k8s.io "enmasse.io:console-server-enmasse-infra" deleted
      clusterrolebinding.rbac.authorization.k8s.io "enmasse.io:enmasse-operator-enmasse-infra" deleted
      clusterrolebinding.rbac.authorization.k8s.io "enmasse.io:schema" deleted
      clusterrolebinding.rbac.authorization.k8s.io "enmasse.io:standard-authservice-enmasse-infra" deleted
      
      2020-06-08T07:16:14.241Z INFO  [Exec] Running command - oc delete clusterroles -l app=enmasse
      2020-06-08T07:16:16.223Z INFO  [Exec] Return code: 0
      2020-06-08T07:16:16.223Z INFO  [Exec] stdout: 
      clusterrole.rbac.authorization.k8s.io "enmasse.io:address-space-admin" deleted
      clusterrole.rbac.authorization.k8s.io "enmasse.io:address-space-controller" deleted
      clusterrole.rbac.authorization.k8s.io "enmasse.io:console-server" deleted
      clusterrole.rbac.authorization.k8s.io "enmasse.io:enmasse-operator" deleted
      clusterrole.rbac.authorization.k8s.io "enmasse.io:schema" deleted
      clusterrole.rbac.authorization.k8s.io "enmasse.io:service-admin" deleted
      clusterrole.rbac.authorization.k8s.io "enmasse.io:standard-authservice" deleted
      clusterrole.rbac.authorization.k8s.io "enmasse.io:tenant-edit" deleted
      clusterrole.rbac.authorization.k8s.io "enmasse.io:tenant-view" deleted
      
      2020-06-08T07:16:16.224Z INFO  [Exec] Running command - oc delete apiservices -l app=enmasse
      2020-06-08T07:16:16.604Z INFO  [Exec] Return code: 0
      2020-06-08T07:16:16.604Z INFO  [Exec] stdout: 
      No resources found
      
      2020-06-08T07:16:16.604Z INFO  [Exec] Running command - oc delete oauthclients -l app=enmasse
      2020-06-08T07:16:17.167Z INFO  [Exec] Return code: 0
      2020-06-08T07:16:17.167Z INFO  [Exec] stdout: 
      oauthclient.oauth.openshift.io "console-oauth" deleted
      
      2020-06-08T07:16:17.693Z INFO  [Exec] Running command - oc delete consolelinks -l app=enmasse
      2020-06-08T07:16:18.294Z INFO  [Exec] Return code: 0
      2020-06-08T07:16:18.294Z INFO  [Exec] stdout: 
      consolelink.console.openshift.io "enmasse-consoleservice" deleted
      

              lulf@redhat.com Ulf Lilleengen (Inactive)
              dkornel@redhat.com David Kornel
              David Kornel David Kornel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: