Skip to content
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

Handle 170008 InsufficientResources from CC when fetching application instance information #1240

Open
vmware-todd-robbins opened this issue Sep 10, 2024 · 0 comments

Comments

@vmware-todd-robbins
Copy link

This issue is similar to - #798

A foundation had resource issues several months ago and has numerous apps with package state InsufficientResources. The resource issue has been resolved but automation which leverage cf-java-client is continuing to report error:

PivotalClientApiException: Exception occurred while getting application: , Error: CF-InsufficientResources(170008): Insufficient resources

The current implementation of getApplicationInstances handles errors like CF_BUILDPACK_COMPILED_FAILED and CF_INSTANCES_ERROR that can be returned from CC if the staging previously failed. However, the InsufficientResources (error code 170008) is not handled and will throw an exception when fetching application instances.

cf-java-client/cloudfoundry-operations/src/main/java/org/cloudfoundry/operations/applications/DefaultApplications.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant