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

Guard against accidental 4.y.z -> 4.(y+2).z'

XMLWordPrintable

    • Moderate
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem

      From our docs:

      Due to fundamental Kubernetes design, all OpenShift Container Platform updates between minor versions must be serialized. You must update from OpenShift Container Platform <4.y> to <4.y+1>, and then to <4.y+2>. You cannot update from OpenShift Container Platform <4.y> to <4.y+2> directly. However, administrators who want to update between two even-numbered minor versions can do so incurring only a single reboot of non-control plane hosts.

      We should add a new precondition that enforces that policy, so cluster admins who run --to-image ... don't hop straight from 4.y.z to 4.(y+2).z' or similar without realizing that they were outpacing testing and policy.

      Version-Release number of selected component

      The policy and current lack-of guard both date back to all OCP 4 releases, and since they're Kube-side constraints, they may date back to the start of Kube.

      How reproducible

      Every time.

      Steps to Reproduce

      1. Install a 4.y.z cluster.
      2. Use --to-image to request an update to a 4.(y+2).z release.
      3. Wait a few minutes for the cluster-version operator to consider the request.
      4. Check with oc adm upgrade.

      Actual results

      Update accepted.

      Expected results

      Update rejected (unless it was forced), complaining about the excessively long hop.

              trking W. Trevor King
              trking W. Trevor King
              Jian Li Jian Li
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: