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

[ROSA Hypershift] "Add machine pool" button enabled even after a validation error thrown against the security group limit .

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • OCM Core Sprint 251

      Description of the issue
      User has tried to create a new machine pool with security group definition for a ROSA Hypershift cluster. User has selected more than 5 security groups and the a validation error has thrown against the field that the maximum of 5 security group could be selected but the "Add machine pool"  button has still shown enabled. If user clicks the "Add machine pool" button it results the backend error. From usability point of view, we should disable the "Add machine pool" in above circumstance. This works fine with ROSA classic.
      See the screenshot 

      Steps to Reproduce:

      1. Launch OCM UI staging.
      2. Open ready ROSA Hypershift cluster (Make sure the VPC configured against cluster has more than 5 custom security group definitions).
      3. Go to Machine pool tab.
      4. Click "Add machine pool" button.
      5. Fill all required fields, Go to security group sections.
      6. Select more than 5 security group definition.
      7. See the behavior of "Add machine pool" button.
      8. Click " Add machine pool" button and see the behavior.

      Actual results:

      At step 7, The "Add machine pool" button has enabled although the security group field thrown validation error.

      At step 8, Click action resulted UI to throw the backend error about the limitation .

      Expected results:

      At step 7,  The "Add machine pool" button should be disabled when there is a validation error against the security group. This will also avoid consequences seen in following step 8

        1. image-2024-03-21-14-36-59-711.png
          120 kB
          Jayakrishnan Mekkattillam
        2. image-2024-03-25-11-59-09-351.png
          87 kB
          Jayakrishnan Mekkattillam

              emingora Enrique Mingorance Cano
              jmekkatt@redhat.com Jayakrishnan Mekkattillam
              Jayakrishnan Mekkattillam Jayakrishnan Mekkattillam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: