Skip to content

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

@vmware-todd-robbins

Description

@vmware-todd-robbins

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions