cloudfoundry / cf-java-client

Java Client Library for Cloud Foundry
Apache License 2.0
328 stars 318 forks source link

Create org quota definition : Dynamic response from client #876

Closed ghost closed 5 years ago

ghost commented 6 years ago

Hi, We are trying to create org quota definition using cloudfoundry-operations module. Below is the code snippet. It is able to create quota once. But if we try to create another quota then it is not creating it. So respose is dynamic. Sometimes it serves the request and sometimes it does not. Can anyone please suggest the soultion for this. Are we making any mistakes while invoking the request? Please provide any pointers.

cloudFoundryOperations.organizationAdmin()
    .createQuota(CreateQuotaRequest.builder()
    .name("test-itsm")
    .memoryLimit(2048)
    .totalServices(20)
    .totalRoutes(500)
    .instanceMemoryLimit(2048)
    .build()); 

We are unable to create user using these libararies. Not getting any response neither getting any error. What is the appropriate way to invoke these requests. We are following integration test suit.

twoseat commented 6 years ago

Hi @lordcf - your basic invocation seems fine. I assume you're providing a new name each time (create will fail if the quota name already exists, though not silently)?

If you extract the code from its surroundings and just have a method that creates a quota does it still fail in the same way? If so that might suggest a configuration issue with your CF instance.

nebhale commented 5 years ago

Since there's been no response on this issue in a couple of weeks, I'm going to close it. If you'd like to see it re-opened, please comment on the issue and I'll reopen it.