Uploaded image for project: 'ONAP Operations Manager'
  1. ONAP Operations Manager
  2. OOM-1580

HELM undeploy may hang on Terminating pods that need a --purge

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Dublin Release
    • Casablanca Release
    • None

      example - using cd.sh

      We are stuck at the following line
      https://git.onap.org/logging-analytics/tree/deploy/cd.sh#n95
      sudo helm undeploy $ENVIRON --purge

      before we can get to the loop that would purge the node
      https://git.onap.org/logging-analytics/tree/deploy/cd.sh#n122
      export POD_NAMES=$(kubectl get pods --field-selector=status.phase!=Running --all-namespaces -o jsonpath="

      {.items[*].metadata.name}

      ")
      echo "--force delete on pods: $POD_NAMES"
      for pod in $POD_NAMES; do
      echo "running: kubectl delete pods $pod --grace-period=0 --force -n $ENVIRON"
      kubectl delete pods $pod --grace-period=0 --force -n $ENVIRON

      ubuntu@a-cd-cas0:~$ kubectl get pods --all-namespaces
      NAMESPACE     NAME                                            READY     STATUS        RESTARTS   AGE
      kube-system   heapster-7b48b696fc-j4x45                       1/1       Running       0          15d
      kube-system   kube-dns-6655f78c68-zdxsd                       3/3       Running       3          15d
      kube-system   kubernetes-dashboard-6f54f7c4b-7kpwf            1/1       Running       0          15d
      kube-system   monitoring-grafana-7877679464-f8j56             1/1       Running       0          15d
      kube-system   monitoring-influxdb-64664c6cf5-5hqnt            1/1       Running       0          15d
      kube-system   tiller-deploy-6f4745cbcf-cdmzl                  1/1       Running       0          15d
      onap          onap-oof-oof-has-reservation-5cd655b79f-56cn7   0/1       Terminating   0          15d
      
      (+) will try moving the helm undeploy after the force deletes
      

            michaelobrien michaelobrien
            michaelobrien michaelobrien
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: