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.
The following Tanzu Platform for Cloud Foundry versions are affected if you are using Total Service Instances with Space Quotas.
10.2.2 - https://techdocs.broadcom.com/us/en/vmware-tanzu/platform/tanzu-platform-for-cloud-foundry/10-2/tpcf/tpcf-component-rns.html#10.2.2
10.0.9 - https://techdocs.broadcom.com/us/en/vmware-tanzu/platform/tanzu-platform-for-cloud-foundry/10-0/tpcf/tpcf-component-rns.html
6.0.19 - https://techdocs.broadcom.com/us/en/vmware-tanzu/platform/tanzu-platform-for-cloud-foundry/6-0/tpcf/runtime-rn.html#6.0.19
These versions contain https://github.com/cloudfoundry/capi-release/releases/tag/1.214.0
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.
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.
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.