Uploaded image for project: 'OCMUI - OpenShift Cluster Manager UI'
  1. OCMUI - OpenShift Cluster Manager UI
  2. OCMUI-87

[OSD Wizard] AWS CCS Only - Create cluster - list regions filtered by cluster version

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None
    • HAC Console Sprint 244, OCM UI Sprint 244b, OCM UI Sprint 245, OCM UI Sprint 246, OCM UI Sprint 247, OCM UI Core Sprint 248, OCM Core Sprint 249

      For AWS CCS clusters - Use the endpoint /api/clusters_mgmt/v1/aws_inquiries/regions to fetch regions filtered by OCP versions.

      We have to pass the cluster's version id and aws credentials in order to get the filtered regions.

      • We already call getAWSCloudProviderRegions() on 'OSD: Step 2: Select Cloud Provider', which calls listAWSRegions(awsCredentials, openshiftVersionId?), but currently we only use it for validation of AWS credentials entered, and we don't save the response.
      • Also, I debugged and noticed 'openshiftVersionId' is undefined; which makes sense as user hasn't selected it at this step of the wizard!  
      • On OSD: Step 2: Cluster details, when user selects a Version, we will need to call getAWSCloudProviderRegions(awsCredentials, selectedVersionId) and adjust the Region dropdown directly underneath, disabling Versions which have {enabled: false} in the response (with disabled tooltip like 'Region not supported by selected Cluster version".  Please see this breakdown.

      This one follows up on https://issues.redhat.com/browse/SDA-6667.

      Acceptance Criteria

      • UI should hide (or disable) region ap-southeast-3 regions  when cluster versions older than 4.10 is selected
        (EDIT: or is it 4.11?  seems backend is filtering it out for 4.10.x as well)
        see: https://issues.redhat.com/browse/HAC-448
        see: this breakdown.
      • For OSD CCS AWS clusters only.
        [EDITED: -GCP- is out of scope, no filtering in backend yet]
        OCMUI-957 tracks implementing this for the Rosa wizard.
      • regions dropdown on Cluster details step should be filtered by selected cluster version
      • If user changers credentials or cluster version, UI must invalidate the regions response to trigger refetch with new credentials and/or cluster version.

              Unassigned Unassigned
              oadler@redhat.com Ori Haim Adler
              Jayakrishnan Mekkattillam Jayakrishnan Mekkattillam
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: