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

'oc adm upgrade channel ...' should not clobber unrecognized spec properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Normal
    • None
    • 4.9
    • oc
    • None
    • Moderate
    • 3
    • OTA 232
    • 1
    • No
    • False
    • Hide

      None

      Show
      None

    Description

      Description of problem:

      4.9 and 4.10 oc calls to oc adm upgrade channel ... for 4.11+ clusters would clear spec.capabilities. Not all that many clusters try to restrict capabilities, but folks will need to bump their channel for at least every other minor (if their using EUS channels), and while we recommend folks use an oc from the 4.y they're heading towards, we don't have anything in place to enforce that.

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

      4.9 and 4.10 oc are exposed vs. the new-in-4.11 spec.capabilities. Newer oc could theoretically be exposed vs. any new ClusterVersion spec capabilities.

      How reproducible:

      100%

      Steps to Reproduce:

      1. Install a 4.11+ cluster with None capabilities.
      2. Set the channel with a 4.10.51 oc, like oc adm upgrade channel fast-4.11.
      3. Check the capabilities with oc get -o json clusterversion version | jq -c .spec.capabilities.

      Actual results:

      null
      

      Expected results:

      {"baselineCapabilitySet":"None"}
      

      Attachments

        Issue Links

          Activity

            People

              trking W. Trevor King
              trking W. Trevor King
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: