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

oc adm upgrade status does not fail gracefully on hypershift

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.20.0
    • oc / update
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      The oc adm upgrade status command does not work on HyperShift in its current form that relies on MCP presence and ignores NodePools and management/hosted cluster separation. However, the tool fails in an ugly way instead of a nice one.

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

      4.20 before branch cut

      How reproducible:

      Always

      Steps to Reproduce:

      1. Run oc adm upgrade status against a HyperShift cluster

      Actual results:

      Error from server (NotFound): deployments.apps "machine-config-operator" not found
      

      Expected results:

      Not supported on HCP clusters.
      

      Additional info:

      CI job that shows the failing test:

      https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_api/2418/pull-ci-openshift-api-master-e2e-aws-ovn-hypershift-conformance/1957536650003222528

              Unassigned Unassigned
              afri@afri.cz Petr Muller
              None
              None
              Dinesh Kumar S Dinesh Kumar S
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: