The BOSH mem-check errand for VMware Tanzu GemFire for VMs fails with the following error:
Analyzing deployment xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx...\n","stderr":"error getting cluster credentials: error getting deployment manifest: Fetching manifest: Finding deployment ''service-instance_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'': Director responded with non-successful status code ''404'' response ''{\"code\":70000,\"description\":\"Deployment ''service-instance_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'' doesn''t exist\"}
The BOSH mem-check errand calculates and outputs the total amount of memory used across all PCC service instances. This errand helps VMware Tanzu GemFire for VMs (Tanzu GemFire) operators monitor resource costs, which are based on memory usage.
The following are scenarios when the BOSH mem-check errand can fail:
To recover from this issue, follow the steps below:
Run the BOSH mem-check errand again and check the status. If it still fails, then check the output from the 'bosh deployments' command and verify that this deployment isn't listed.
Using the GUID from the error log, recursively search all the Orgs and spaces to locate the orphaned service instance using the 'bosh deployments' command. After locating the orphaned service instance, you can delete the service instances using the CF CLI.
Note: Before doing so, you must remove any existing service keys and app bindings.
Please refer to the commands below.
Run cf delete-service-key SERVICE-INSTANCE-NAME KEY-NAME to delete the service key. Run cf unbind-service APP-NAME SERVICE-INSTANCE-NAME to unbind your app from the service instance. Run cf delete-service SERVICE-INSTANCE-NAME to delete the service instance.