If for some reason heat stack-delete fails to delete the heat stack, the app delete fails to delete the app from solum db. Also, app's image is not delete from the image table.
Here is the error that we are seeing on the solum-deployer screen:
{"stack": {"disable_rollback": true, "description": "Basic app deploy.\n", "parent": null, "tags": null, "stack_name": "original-java-app-3825fcb5-a613-45f7-818a-984f9fc8d2c5", "stack_user_project_id": "a33d0720e66a48da8851147de7b4ed49", "stack_status_reason": "Resource DELETE failed: ResourceInError: resources.compute_instance: Went to status ERROR due to \"Server original-java-app delete failed: (500) 500 Server Error: Internal Server Error (\"Cannot destroy container 9ce0adf7c4a456f15a353ac893b13a2158b9b08c67ff9fd5069fec914c38c11e: Driver aufs failed to remove root filesystem 9ce0adf7c4a456f15a353ac893b13a2158b9b08c67ff9fd5069fec914c38c11e: rename /var\"", "creation_time": "2016-05-19T17:18:11", "links": [{"href": "http://10.0.2.15:8004/v1/799120bb238f4b39b61f06db9466db44/stacks/original-java-app-3825fcb5-a613-45f7-818a-984f9fc8d2c5/ac86e340-7249-4f3b-bce9-a042b136ab5e", "rel": "self"}], "capabilities": [], "notification_topics": [], "updated_time": null, "timeout_mins": null, "stack_status": "DELETE_FAILED", "stack_owner": null, "parameters": {"OS::project_id": "799120bb238f4b39b61f06db9466db44", "public_net": "f6850121-84d9-4818-b53f-9644b90217c1", "OS::stack_name": "original-java-app-3825fcb5-a613-45f7-818a-984f9fc8d2c5", "key_name": "", "image": "42d29e88-ec5c-4345-bd40-b0c78d095298", "OS::stack_id": "ac86e340-7249-4f3b-bce9-a042b136ab5e", "private_subnet": "2dcf12f8-ca2e-436b-b853-d2c5f42947bc", "private_net": "a9781dab-a35b-4655-a766-21bbea75a751", "flavor": "m1.small", "port": "80", "app_name": "original-java-app"}, "id": "ac86e340-7249-4f3b-bce9-a042b136ab5e", "template_description": "Basic app deploy.\n"}}
log_http_response /usr/local/lib/python2.7/dist-packages/heatclient/common/http.py:155
Even if heat stack-delete fails, we should delete the app from solum db and also delete app artifacts. If we don't then the user experience is not great as user had requested to delete the app but solum is not doing it.