Service Instance creation may fail when a space has a quota for NUMBER-OF-SERVICE-INSTANCES
search cancel

Service Instance creation may fail when a space has a quota for NUMBER-OF-SERVICE-INSTANCES

book

Article ID: 408470

calendar_today

Updated On:

Products

VMware Tanzu Platform VMware Tanzu Platform - Cloud Foundry VMware Tanzu Platform Core VMware Tanzu Application Service

Issue/Introduction

Cloud Foundry enables operators to set quotas for many resources types inside of orgs and spaces. Service Instance count can have a quota on orgs and/or spaces. The quota for Service Instances on a space enables operators to limit the total count of all service instance types in that space. See https://docs.cloudfoundry.org/adminguide/quota-plans.html#space for more details.

The specific patch versions of Tanzu Platform for Cloud Foundry listed below have a known issue with space quotas when the NUMBER-OF-SERVICE-INSTANCES is set. The known issue is likely to result in the failure to create service instances in the space. Org Quotas are uneffected.

Environment

 

You can verify if your foundation has any Space Quotas that set Total Service Instance limits by running the following command as Admin.

cf curl /v3/space_quotas | jq .resources[].services

This returns an array of all Space quotas in the foundation. Any result in this list where the key total_service_instances with a value of 1 or above indicates this bug may cause issues. The absence of any result or total_service_instances being set to null or -1 means the environment is not effected.

Cause

The cause of the issue is that CAPI Release 1.214.0 will associate all service instances in a foundation to be running in a space for the purposes of quota enforcement. This means that if a space has a quota of 5 service instances and the foundation has 10 total service instances, service instance creation will always fail in this particular space.

Resolution

The options to mitigate this problem are:

1. Unset the NUMBER-OF-SERVICE-INSTANCES on the space in question. This can be done by setting the value to -1. For example: cf update-space-quota SPACE-QUOTA-NAME -s -1 

2. Not use this particular patch of Tanzu Platform for Cloud Foundry

3. Wait until https://github.com/cloudfoundry/capi-release/releases/tag/1.215.0 is released as part of  Tanzu Platform for Cloud Foundry.