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

Latest OCP versions are not getting updated in RHOCP CLI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Normal Normal
    • None
    • 4.14.z
    • None
    • Moderate
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Customer is planning to upgrade the OCP cluster from 4.13.28 to the latest OCP version.
      
      Using upgrade path https://access.redhat.com/labs/ocpupgradegraph/update_path/ , we can get the OCP 4.14.x versions available for upgrade with some risks.
      
      However , when we run below commands/script, we are getting only 4.13.29 and 4.13.30 versions available for upgrade :
      ~~~
      # export CURRENT_VERSION=4.13.28
      # export CHANNEL_NAME=eus-4.14
      # curl -sH 'Accept:application/json' "https://api.openshift.com/api/upgrades_info/v1/graph?channel=${CHANNEL_NAME}" | jq -r --arg CURRENT_VERSION "${CURRENT_VERSION}" '. as $graph | $graph.nodes | map(.version=='\"$CURRENT_VERSION\"') | index(true) as $orig | $graph.edges | map(select(.[0] == $orig)[1]) | map($graph.nodes[.].version) | sort_by(.)'
      [
        "4.13.29",
        "4.13.30"
      ]
      ~~~
      Available 4.14.x versions to upgrade the cluster from version 4.13.28 are not getting updated here.

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

          

      How reproducible:

          

      Steps to Reproduce:

      1. Set the environment variables :
      $ export CURRENT_VERSION=4.13.28
      $ export CHANNEL_NAME=eus-4.14
      2. Run below shift :
      $ curl -sH 'Accept:application/json' "https://api.openshift.com/api/upgrades_info/v1/graph?channel=${CHANNEL_NAME}" | jq -r --arg CURRENT_VERSION "${CURRENT_VERSION}" '. as $graph | $graph.nodes | map(.version=='\"$CURRENT_VERSION\"') | index(true) as $orig | $graph.edges | map(select(.[0] == $orig)[1]) | map($graph.nodes[.].version) | sort_by(.)'
      4. Check available versions to upgrade the OCP cluster
          

      Actual results:

      Script is showing only two versions 4.13.29 and 4.13.30 available for upgrade from version 4.13.28

      Expected results:

      Script should also print the available 4.14.x versions for upgrade from version 4.13.28

      Additional info:

          

            lmohanty@redhat.com Lalatendu Mohanty
            rhn-support-sdharma Suruchi Dharma
            Jia Liu Jia Liu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: