Uploaded image for project: 'Hybrid Application Console'
  1. Hybrid Application Console
  2. HAC-449

[OCM-UI] UI should show the details in the error message before support version gate on UI

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None
    • Infrastructure
    • False
    • False
    • HAC Infra - Sprint 219

      Description:

      UI should show the details in the error message before support version gate on UI

      How reproducible:

      100%

      Steps:

      1. Prepare version gates (there had been version gate 4.9 on staging env now)
      2. Prepare an OSD cluster in version 4.8.x which can be upgraded to 4.9.y(I used 4.8.24)
      3. Create an manual upgrade policy to the cluster

      Actual result:

      UI just show error:

      CLUSTERS-MGMT-400: There are missing version gate agreements for this cluster. See details.
      Operation ID: ac6c4bee-495d-449d-8784-42b25adfd542

      while the detailed error message is like below:

      {"kind":"Error","id":"400","href":"/api/clusters_mgmt/v1/errors/400","code":"CLUSTERS-MGMT-400","reason":"There are missing version gate agreements for this cluster. See details.","details":[[\{"ID":"d0bdef5e-7511-11ec-a50d-0a580a800a52","VersionRawIDPrefix":"4.9","Label":"api.openshift.com/gate-ocp","Value":"v4.9","Description":"OpenShift removes several Kubernetes APIs in OpenShift 4.9. To help prevent issues with workloads and tools after upgrading, an administrator is required to provide manual acknowledgement before the cluster can be upgraded from OpenShift 4.8 to 4.9.","DocumentationURL":"","STSOnly":false,"CreationTimestamp":"2022-01-14T08:13:11.864509Z"}

      ]],"operation_id":"42fdfb3f-e2ec-4444-b910-471a2fda0f80"}

      Expect result:

      There should be readable error message show to users, especially the version gate details

              kdoberst Kim Doberstein
              xueli@redhat.com Xue Li
              Archiver:
              rhn-support-sthamilt Stacey Hamilton
              Xue Li Xue Li

                Created:
                Updated:
                Resolved:
                Archived: