1. create a stack with resource_group, the template as:
**************************
heat_template_version: 2013-05-23
resources:
my_resource_group:
type: OS::Heat::ResourceGroup
properties:
resource_def:
type: OS::Nova::Server
properties:
flavor: 1
image: cirros-0.3.4-x86_64-uec
***************************
2. the stack create failed due to the nova server create failed, the reason is 'no valid hosts'
3. nova list, we can get the server status is 'ERROR'
4. I want to delete the stack, but can't, the reason is the server is in 'ERROR', and the reason is 'no valid hosts', so strange!
ResourceInError: Went to status ERROR due to "Server OK-my_resource_group-gspgg2w5o4ig-0-n3pyczr5hbsi delete failed: (500) No valid host was found. There are not enough hosts available."
5. I guess the problem is 'race', the delete_complete checking may be faster. I found the reason may be due to the
Change-Id: I4034f48f75aad748ac313c385fa4f6b991cd4128 (* Do not pass rich objects on servers' delete)
Also can't delete the stack just contains nova server resource if the server in 'ERROR'.