Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-51192

4.17 upgrade leaves orphaned resources

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

          Upgrding a cluster from 4.16 to 4.17 leaves orphaned resources in the openshift-console-operator namespace. A fresh 4.17 cluster does not have the console-conversion-webhook. A cluster upgraded form 4.16 to 4.17 does not properly clean up the console-conversion-webhook deployment and service.
      
      Based on this commit, 4.17 should not contain these resources: https://github.com/openshift/console-operator/commit/2a8b852f2b3c9c9c3e0b5113839f1c24631d0ceb#diff-e3df89e09c4af23be4f94ebfc53fb5f0160e0befcdb791c50a48999499c8aae6

      Version-Release number of selected component (if applicable):

          4.17.z

      How reproducible:

          Every time

      Steps to Reproduce:

          1. Create 4.16 cluster
          2. Upgrade to 4.17
          3. Check openshift-console-operator namespace
          

      Actual results:

      $ oc -n openshift-console-operator get all
      Warning: apps.openshift.io/v1 DeploymentConfig is deprecated in v4.14+, unavailable in v4.10000+
      NAME                                              READY   STATUS    RESTARTS   AGE
      pod/console-conversion-webhook-5879bddc8d-kqwnn   1/1     Running   0          84m
      pod/console-operator-545f6d8695-pmppt             1/1     Running   0          31m
      
      NAME              TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)    AGE
      service/metrics   ClusterIP   172.21.177.119   <none>        443/TCP    103m
      service/webhook   ClusterIP   172.21.124.240   <none>        9443/TCP   103m
      
      NAME                                         READY   UP-TO-DATE   AVAILABLE   AGE
      deployment.apps/console-conversion-webhook   1/1     1            1           103m
      deployment.apps/console-operator             1/1     1            1           103m
      
      NAME                                                    DESIRED   CURRENT   READY   AGE
      replicaset.apps/console-conversion-webhook-5879bddc8d   1         1         1       103m
      replicaset.apps/console-operator-545f6d8695             1         1         1       31m
      replicaset.apps/console-operator-687b59b57              0         0         0       103m

      Expected results:

      # A fresh 4.17 cluster (no upgrade)
      $ oc -n openshift-console-operator get all
      Warning: apps.openshift.io/v1 DeploymentConfig is deprecated in v4.14+, unavailable in v4.10000+
      NAME                                    READY   STATUS    RESTARTS      AGE
      pod/console-operator-545f6d8695-krzbj   1/1     Running   1 (71m ago)   71m
      
      NAME              TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)   AGE
      service/metrics   ClusterIP   172.21.223.44   <none>        443/TCP   89m
      
      NAME                               READY   UP-TO-DATE   AVAILABLE   AGE
      deployment.apps/console-operator   1/1     1            1           89m
      
      NAME                                          DESIRED   CURRENT   READY   AGE
      replicaset.apps/console-operator-545f6d8695   1         1         1       89m

      Additional info:

          

              jhadvig@redhat.com Jakub Hadvig
              jonesbry Bryan Jones (Inactive)
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: