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

ClusterVersionRecommendedUpdate condition blocks explicitly allowed upgrade which is not in the available updates

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • None
    • 4.12
    • None
    • Important
    • 3
    • OTA 226, OTA 228
    • 2
    • Approved
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      CVO recently introduced a new precondition RecommendedUpdate[1]. While we request an upgrade to a version which is not an available update, the precondition got UnknownUpdate and blocks the upgrade.
      
      # oc get clusterversion/version -ojson | jq -r '.status.availableUpdates'null
      
      # oc get clusterversion/version -ojson | jq -r '.status.conditions[]|select(.type == "ReleaseAccepted")'
      {
        "lastTransitionTime": "2022-10-20T08:16:59Z",
        "message": "Preconditions failed for payload loaded version=\"4.12.0-0.nightly-multi-2022-10-18-153953\" image=\"quay.io/openshift-release-dev/ocp-release-nightly@sha256:71c1912990db7933bcda1d6914228e8b9b0d36ddba265164ee33a1bca06fe695\": Precondition \"ClusterVersionRecommendedUpdate\" failed because of \"UnknownUpdate\": RetrievedUpdates=False (VersionNotFound), so the recommended status of updating from 4.12.0-0.nightly-multi-2022-10-18-091108 to 4.12.0-0.nightly-multi-2022-10-18-153953 is unknown.",
        "reason": "PreconditionChecks",
        "status": "False",
        "type": "ReleaseAccepted"
      }
      
      
      [1]https://github.com/openshift/cluster-version-operator/pull/841/

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

      4.12.0-0.nightly-multi-2022-10-18-091108

      How reproducible:

      Always

      Steps to Reproduce:

      1. Install a 4.12 cluster
      2. Upgrade to a version which is not in the available update
      # oc adm upgrade --allow-explicit-upgrade --to-image=quay.io/openshift-release-dev/ocp-release-nightly@sha256:71c1912990db7933bcda1d6914228e8b9b0d36ddba265164ee33a1bca06fe695warning: The requested upgrade image is not one of the available updates.You have used --allow-explicit-upgrade for the update to proceed anywayRequesting update to release image quay.io/openshift-release-dev/ocp-release-nightly@sha256:71c1912990db7933bcda1d6914228e8b9b0d36ddba265164ee33a1bca06fe695 
      

      Actual results:

      CVO precondition check fails and blocks upgrade

      Expected results:

      Upgrade proceeds

      Additional info:

       

      Attachments

        Issue Links

          Activity

            People

              lmohanty@redhat.com Lalatendu Mohanty
              yanyang@redhat.com Yang Yang
              Yang Yang Yang Yang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: