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

The wizard didn't restrict user from creating OSD cluster when quota limit exceeded.

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

      None

      Show
      None
    • False
    • OCM UI Core Sprint 248, OCM Core Sprint 249, ACM Console Sprint 250, OCMUI Core Sprint 262, OCMUI Core Sprint 263

      Description of problem:

      A user assigned with OSD standard quota ( for creating an OSD cluster with "RedHat" infrastructure type) as 1. User was allowed to create a cluster from wizard and successfully created cluster. Once the OSD standard quota was consumed when user tried to create another OSD cluster with "RedHat" infrastructure type from Billing model , there was no indication that quota was consumed and user allowed to proceed to all the steps without any notification from wizard side. But while submitting the cluster backend reported the error as below.

      The same case even for the CCS cluster quota as well.

      Quota limits 

      Response from 
      https://api.stage.openshift.com/api/accounts_mgmt/v1/organizations/<orgid>/quota_cost?fetchRelatedResources=true&fetchCloudAccounts=true
       

              {
                  "allowed": 1,
                  "consumed": 1,
                  "href": "/api/accounts_mgmt/v1/organizations/1eU7aV6UsNntnnCN4u0PX452kh8/quota_cost",
                  "kind": "QuotaCost",
                  "organization_id": "1eU7aV6UsNntnnCN4u0PX452kh8",
                  "quota_id": "cluster|general-purpose|single|rhinfra|osd|any",
                  "related_resources": [
                      {
                          "availability_zone_type": "single",
                          "billing_model": "standard",
                          "byoc": "rhinfra",
                          "cloud_provider": "any",
                          "cost": 2,
                          "product": "OSD",
                          "resource_name": "standard-8",
                          "resource_type": "cluster"
                      },
                      {
                          "availability_zone_type": "single",
                          "billing_model": "standard",
                          "byoc": "rhinfra",
                          "cloud_provider": "any",
                          "cost": 2,
                          "product": "OSD",
                          "resource_name": "gp.medium",
                          "resource_type": "cluster"
                      },
                      {
                          "availability_zone_type": "single",
                          "billing_model": "standard",
                          "byoc": "rhinfra",
                          "cloud_provider": "any",
                          "cost": 4,
                          "product": "OSD",
                          "resource_name": "standard-16",
                          "resource_type": "cluster"
                      },
                      {
                          "availability_zone_type": "single",
                          "billing_model": "standard",
                          "byoc": "rhinfra",
                          "cloud_provider": "any",
                          "cost": 4,
                          "product": "OSD",
                          "resource_name": "gp.large",
                          "resource_type": "cluster"
                      },
                      {
                          "availability_zone_type": "single",
                          "billing_model": "standard",
                          "byoc": "rhinfra",
                          "cloud_provider": "any",
                          "cost": 1,
                          "product": "OSD",
                          "resource_name": "standard-4",
                          "resource_type": "cluster"
                      },
                      {
                          "availability_zone_type": "single",
                          "billing_model": "standard",
                          "byoc": "rhinfra",
                          "cloud_provider": "any",
                          "cost": 1,
                          "product": "OSD",
                          "resource_name": "gp.small",
                          "resource_type": "cluster"
                      }
                  ],
                  "version": "3cf36dfe-06b3-454b-8bdd-b47356deb821"
              }, 

       

      How reproducible:

       Always

      Steps to reproduce:

      1. Launch OCM UI Staging.
      2. Login with a user has limited quota(ex: An OSD standard cluster quota is 1 i.e. this user could create only one OSD non ccs cluster with "RedHat" infrastructure type)
      3. Launch OSD wizard and create or submit for OSD cluster with "RedHat" infrastructure type.
      4. Check the quota limits.
      5. Launch OSD wizard and try to create another OSD cluster with "RedHat" infrastructure type.
      6. See the behavior.

      Actual results:

      At step 4, Once user created OSD non ccs cluster with  "RedHat" infrastructure type, quota limit is reached.

      At step 5, There was no indication in wizard that quota limit already exceeded and user allowed to proceed each step but while submission of cluster, the backend reported about the error.

      Expected results:
      At step 5, The Wizard shouldn't allow user to proceed to next steps since the quota limit is reached. At the billing model step itself user should be restricted with clear definition.
      Probably respective infrastructure type selection should be disabled.

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

                Created:
                Updated:
                Resolved: