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

"operator-sdk run bundle-upgrade" approve the wrong install plan

XMLWordPrintable

    • Important
    • None
    • OPECO 233
    • 1
    • Rejected
    • Unspecified
    • If docs needed, set a value

      Description of problem:
      "operator-sdk run bundle-upgrade" approve the wrong install plan

      Version-Release number of selected component (if applicable):
      zhaoxia@xzha-mac openshift-tests-private % operator-sdk version
      operator-sdk version: "v1.22.0-ocp", commit: "23a982b81ba064596508510748bb8bb6eea19a4b", kubernetes version: "v1.24.1", go version: "go1.18.3", GOOS: "darwin", GOARCH: "amd64"

      How reproducible:
      sometime, not always

      Steps to Reproduce:
      1. create a project
      oc new-project e2e-test-default-2cmm9
      2. operator-sdk run bundle quay.io/olmqe/kubeturbo-bundle:v8.4.0 -n e2e-test-default-2cmm9 --timeout 5m
      3. operator-sdk run bundle-upgrade quay.io/olmqe/kubeturbo-bundle:v8.5.0 -n e2e-test-default-2cmm9 --timeout 5m

      time="2022-07-15T03:53:10+08:00" level=info msg="Found existing subscription with name kubeturbo-operator-v8-4-0-sub and namespace e2e-test-default-2cmm9"
      time="2022-07-15T03:53:10+08:00" level=info msg="Found existing catalog source with name kubeturbo-catalog and namespace e2e-test-default-2cmm9"
      time="2022-07-15T03:53:14+08:00" level=info msg="Generated a valid Upgraded File-Based Catalog"
      time="2022-07-15T03:53:19+08:00" level=info msg="Created registry pod: quay-io-olmqe-kubeturbo-bundle-v8-5-0"
      time="2022-07-15T03:53:19+08:00" level=info msg="Updated catalog source kubeturbo-catalog with address and annotations"
      time="2022-07-15T03:53:19+08:00" level=info msg="Deleted previous registry pod with name "quay-io-olmqe-kubeturbo-bundle-v8-4-0""
      time="2022-07-15T03:53:21+08:00" level=info msg="Approved InstallPlan install-nt2d7 for the Subscription: kubeturbo-operator-v8-4-0-sub"
      time="2022-07-15T03:53:21+08:00" level=info msg="Waiting for ClusterServiceVersion "e2e-test-default-2cmm9/kubeturbo-operator.v8.5.0" to reach 'Succeeded' phase"
      time="2022-07-15T03:53:21+08:00" level=info msg=" Waiting for ClusterServiceVersion "e2e-test-default-2cmm9/kubeturbo-operator.v8.5.0" to appear"
      time="2022-07-15T03:58:08+08:00" level=fatal msg="Failed to run bundle upgrade: error waiting for CSV to install: timed out waiting for the condition\n"

      4, check installplan

      oc get pod:
      NAME READY STATUS RESTARTS AGE
      20ffa8e49872755fdbbdd2c5889090d4172f86ab7c9b8de9797df3e9degtblc 0/1 Completed 0 4m46s
      c0fd2a0a2f02b5093ccd9cf7abb66a0ff5789990836ff6ea7447883beeqzv68 0/1 Completed 0 5m45s
      kubeturbo-operator-7ddb49cb8d-jsmfp 1/1 Running 0 5m25s
      quay-io-olmqe-kubeturbo-bundle-v8-5-0 1/1 Running 0 4m55s

      oc get ip:
      NAME CSV APPROVAL APPROVED
      install-9xqwr kubeturbo-operator.v8.5.0 Manual false
      install-nt2d7 kubeturbo-operator.v8.4.0 Manual true

      Actual results:
      Approve the wrong InstallPlan install-nt2d7

      Expected results:
      Approved the correct InstallPlan install-9xqwr

      Additional info:

              rh-ee-bpalmer Bryce Palmer
              rhn-support-xzha Xia Zhao
              Keenon Lee Keenon Lee
              Red Hat Employee
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: