Uploaded image for project: 'OpenShift Over the Air'
  1. OpenShift Over the Air
  2. OTA-1627

oc adm upgrade could not display available channels with a nightly cluster

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Repro steps:
      1. install a OCP cluster with nightly build
      2. patch a dummy cincy which has upgrade paths and multiple channels, like:

      $ oc patch clusterversion version --type json -p '[{"op": "add", "path": "/spec/channel", "value": "channel-a"}, {"op": "add", "path": "/spec/upstream", "value": "https://raw.githubusercontent.com/JianLi-RH/ota/refs/heads/main/OCP-43178.json"}]'
      
      {
          "nodes": [
            {
              "version": "4.19.0-0.nightly-2025-09-15-062654",
              "payload": "registry.ci.openshift.org/ocp/release@sha256:47ac2154b2fb4e4d9ad72dcb01db26f1c646509a486a45672ec156ee029b21c5",
              "metadata": {
                  "io.openshift.upgrades.graph.release.channels": "channel-a,channel-b,stable-4.20"
              }
            },
            {
              "version": "4.20.0-rc.1",
              "payload": "quay.io/openshift-release-dev/ocp-release@sha256:23e31abd998aa80ee11344e6ad910d8283d4f2f973c79e9d7fecbd355be459ab",
              "metadata": {
            "io.openshift.upgrades.graph.release.channels": "channel-a,channel-b,stable-4.20"
              }
            },
            {
              "version": "4.20.0-rc.2",
              "payload": "quay.io/openshift-release-dev/ocp-release@sha256:668c92b06279cb5c7a2a692860b297eeb9013af10d49d2095f2c3fe9ad02baaa",
              "metadata": {
                  "io.openshift.upgrades.graph.release.channels": "channel-a,channel-b,stable-4.20"
              }
            }
          ],
          "edges": [
            [0,1],
            [0,2]
          ]
        }
      

      3. run `oc adm upgrade`

      Expected result:
      It should show current channel and available channels, for example:

      $ oc adm upgrade
      Cluster version is 4.9.0-0.nightly-2021-07-31-093358
       
      Upstream: https://github.com/shellyyang1989/upgrade-cincy/raw/master/cincy5.json
      Channel: channel-a (available channels: channel-a, channel-b)
      Updates:
       
      VERSION                           IMAGE
      4.9.0-0.nightly-2021-08-01-102437 registry.ci.openshift.org/ocp/release@sha256:421304acff8d9c5bf24365c42460721f9ae1392dd20fbf642c118c163b7731e5
      

      Observed result:

      For details, please refer the attachments.

      [jianl@jianl-thinkpadt14gen4 419]$ oc adm upgrade
      Cluster version is 4.19.0-0.nightly-2025-09-15-062654
      
      Upstream: https://raw.githubusercontent.com/JianLi-RH/ota/refs/heads/main/OCP-43178.json
      Channel: stable-4.20
      
      Recommended updates:
      
        VERSION     IMAGE
        4.20.0-rc.2 quay.io/openshift-release-dev/ocp-release@sha256:668c92b06279cb5c7a2a692860b297eeb9013af10d49d2095f2c3fe9ad02baaa
        4.20.0-rc.1 quay.io/openshift-release-dev/ocp-release@sha256:23e31abd998aa80ee11344e6ad910d8283d4f2f973c79e9d7fecbd355be459ab
      [jianl@jianl-thinkpadt14gen4 419]$ 
      

              trking W. Trevor King
              rhn-support-jianl Jian Li
              None
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: