-
Notifications
You must be signed in to change notification settings - Fork 323
Closed
Description
The cf delete
command line operation does not care whether or not there are bound services on an app.
The programmatic API gives me the following though:
org.cloudfoundry.client.v2.CloudFoundryException: CF-AssociationNotEmpty(10006): Please delete the service_bindings associations for your apps.
at org.cloudfoundry.spring.client.v2.CloudFoundryExceptionBuilder.build(CloudFoundryExceptionBuilder.java:47) ~[cloudfoundry-client-spring-2.0.0.BUILD-20160310.143940-594.jar:2.0.0.BUILD-SNAPSHOT]
at org.cloudfoundry.spring.util.AbstractSpringOperations.lambda$null$1(AbstractSpringOperations.java:72) ~[cloudfoundry-client-spring-2.0.0.BUILD-20160310.143940-594.jar:2.0.0.BUILD-SNAPSHOT]
at org.cloudfoundry.spring.util.AbstractSpringOperations$$Lambda$20/1158721381.accept(Unknown Source) ~[na:na]
at reactor.core.publisher.FluxYieldingEmitter$YieldingSignalEmitter.request(FluxYieldingEmitter.java:72) ~[reactor-core-2.5.0.BUILD-20160309.103427-478.jar:na]
at reactor.core.util.DeferredSubscription.request(DeferredSubscription.java:92) ~[reactor-core-2.5.0.BUILD-20160309.103427-478.jar:na]
at reactor.core.publisher.FluxPublishOn$PublishOnPipeline.run(FluxPublishOn.java:164) ~[reactor-core-2.5.0.BUILD-20160309.103427-478.jar:na]
at reactor.core.publisher.SchedulerGroup$TaskSubscriber.onNext(SchedulerGroup.java:1081) [reactor-core-2.5.0.BUILD-20160309.103427-478.jar:na]
at reactor.core.publisher.SchedulerGroup$TaskSubscriber.onNext(SchedulerGroup.java:1063) [reactor-core-2.5.0.BUILD-20160309.103427-478.jar:na]
at reactor.core.publisher.WorkQueueProcessor$QueueSubscriberLoop.run(WorkQueueProcessor.java:842) [reactor-core-2.5.0.BUILD-20160309.103427-478.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_51]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_51]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_51]
Caused by: org.springframework.web.client.HttpClientErrorException: 400 Bad Request
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91) ~[spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.security.oauth2.client.http.OAuth2ErrorHandler.handleError(OAuth2ErrorHandler.java:165) ~[spring-security-oauth2-2.0.9.RELEASE.jar:na]
at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:641) ~[spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:597) ~[spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.security.oauth2.client.OAuth2RestTemplate.doExecute(OAuth2RestTemplate.java:128) ~[spring-security-oauth2-2.0.9.RELEASE.jar:na]
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:572) ~[spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:534) ~[spring-web-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.cloudfoundry.spring.util.AbstractSpringOperations.lambda$delete$0(AbstractSpringOperations.java:59) ~[cloudfoundry-client-spring-2.0.0.BUILD-20160310.143940-594.jar:2.0.0.BUILD-SNAPSHOT]
at org.cloudfoundry.spring.util.AbstractSpringOperations$$Lambda$66/733700885.apply(Unknown Source) ~[na:na]
at org.cloudfoundry.spring.util.AbstractSpringOperations.lambda$null$1(AbstractSpringOperations.java:66) ~[cloudfoundry-client-spring-2.0.0.BUILD-20160310.143940-594.jar:2.0.0.BUILD-SNAPSHOT]
... 10 common frames omitted
2016-03-14 17:35:35.376 INFO 9906 --- [ Thread-9] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@4b0b0854: startup date [Mon Mar 14 17:35:24 CET 2016]; root of context hierarchy
Process finished with exit code 130
Metadata
Metadata
Assignees
Labels
No labels