-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloud Controller API does not validate if 2 services with the same name are shared in the same spaces #2306
Comments
@tstannard and I have done some preliminary exploration and determined that we are not checking for name uniqueness among service instances that have been shared into the space. We're only checking against service instances that originated in the space. |
Do we have any update on this...? |
service instance whose name is already in use in the target space. This commit resolves GitHub issue #2306 Co-authored-by: Brandon Potts <bpotts@vmware.com> Co-authored-by: Seth Boyles <sboyles@pivotal.io>
service instance whose name is already in use in the target space. This commit resolves GitHub issue #2306 This commit is a retry of a previous commit. Co-authored-by: Brandon Potts <bpotts@vmware.com> Co-authored-by: Seth Boyles <sboyles@pivotal.io>
service instance whose name is already in use in the target space. This commit resolves GitHub issue cloudfoundry#2306 Co-authored-by: Brandon Potts <bpotts@vmware.com> Co-authored-by: Seth Boyles <sboyles@pivotal.io>
service instance whose name is already in use in the target space. This commit resolves GitHub issue #2306 This commit is a retry of a previous commit. Co-authored-by: Brandon Potts <bpotts@vmware.com> Co-authored-by: Seth Boyles <sboyles@pivotal.io>
Co-authored-by: Brandon Potts <bpotts@vmware.com> Co-authored-by: Seth Boyles <sboyles@pivotal.io> Co-authored-by: Jenna Goldstrich <jgoldstrich@pivotal.io> This commit prevents a space from being shared if it contains a service instance whose name is already in use in the target space. This commit resolves GitHub issue #2306 This commit is a retry of a previous commit. Co-authored-by: Brandon Potts <bpotts@vmware.com> Co-authored-by: Seth Boyles <sboyles@pivotal.io> Fix issue in unit tests where target_space would no longer update its list of shared_services Remove test that validated idempotant service_instance creates, this is no longer valid as we are changing them to enforce name uniqueness Authored-by: Jenna Goldstrich <jgoldstrich@pivotal.io>
@Team, @JenGoldstrich Could someone please help me to get more information on this. Apologies, if i am missing the part of the chain, which tell this is fixed. |
It is in capi-release 1.119.0 https://github.com/cloudfoundry/capi-release/releases/tag/1.119.0 |
@moleske - We are currently on TAS 2.11.10 But don't find capi version what you mentioned i.e. 1.119.0 xxxxx@xxxxxxxxxx:~$ bosh releases | grep -i capi Could you please confirm, in what version of TAS we would get capi version what you have mentioned? |
Hi @Raj0564, as this is the open source cloud foundry product, I can't speak to what is or isn't in the proprietary product produced by VMware. I would consider reaching out to VMware support and checking the release notes for the TAS product in question |
Issue
The cloud controller does not enforce the name uniqueness for shared services in a spaces. It creates a situation where you can have multiple SI with the same name in a space.
Steps to Reproduce
Use the overview-broker service to deploy a service broker:
Create service instances in two different spaces, then share them to a third:
See that there are two service instances with the same name in the
target
org/space:Output:
Expected result
The second
share-service
command should fail with a422 Unprocessable Entity
Current result
Currently it succeeds, allowing users to end up with two service instances that have the same name in a single space.
This validation is already in place when trying to create a new service instance in a space:
Possible Fix
Validate service instance name uniqueness when sharing services
The text was updated successfully, but these errors were encountered: