Stack deletion failed because the VPCGatewayAttachment resource cannot be deleted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
High
|
Jeff Peeler |
Bug Description
A stack created with the following template cannot be deleted properly because Heat tries to delete the VPCGatewayAttac
{
"AWSTemplateF
"Description" : "Template for testing creation of VPC resources",
"Parameters" : {
"KeyName" : {
"Description" : "Name of and existing EC2 KeyPair to enable SSH access to the instance",
"Type" : "String"
},
"InstanceType" : {
"Description" : "EC2 instance type",
"Type" : "String",
"Default" : "t1.micro",
"
"
},
"LinuxDistr
"Description" : "Distribution of choice",
"Type": "String",
"Default": "cirros-
}
},
"Resources" : {
"myVpc" : {
"Type" : "AWS::EC2::VPC",
"Properties" : {
"CidrBlock" : "20.0.0.0/16"
}
},
"mySubnet" : {
"Type" : "AWS::EC2::Subnet",
"Properties" : {
"VpcId" : { "Ref" : "myVpc" },
"CidrBlock" : "20.0.0.0/24"
}
},
"myInternet
"Type" : "AWS::EC2:
},
"myInternet
"Type" : "AWS::EC2:
"Properties" : {
"VpcId" : { "Ref" : "myVpc" },
}
},
"IPAddress" : {
"Type" : "AWS::EC2::EIP"
},
"IPAssoc" : {
"Type" : "AWS::EC2:
"Properties" : {
"EIP" : { "Ref" : "IPAddress" }
}
},
"InstanceSe
"Type" : "AWS::EC2:
"Properties" : {
]
}
},
"myNetworkI
"Type" : "AWS::EC2:
"Properties" : {
"SubnetId" : { "Ref" : "mySubnet" },
}
},
"myInstance" : {
"Type" : "AWS::EC2:
"DependsOn" : "InstanceSecuri
"Properties" : {
"ImageId" : { "Ref" : "LinuxDistribution" },
"KeyName" : { "Ref" : "KeyName" },
}
}
},
"Outputs" : {
"InstanceId" : {
"Value" : { "Ref" : "myInstance" },
"Description" : "Instance Id of newly created instance"
},
"IPAddress" : {
"Value" : { "Ref" : "IPAddress" },
"Description" : "Public IP address of instance"
}
}
}
$ heat stack-show myStack3
+------
| Property | Value |
+------
...
| stack_name | myStack3 |
| stack_status | DELETE_FAILED |
| stack_status_reason | Failed to delete VPCGatewayAttac
| | "myInternetGate
...
$ heat event-show myStack3 myInternetGatew
...
| resource_
...
Changed in heat: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → havana-1 |
Changed in heat: | |
milestone: | havana-1 → havana-2 |
Changed in heat: | |
milestone: | havana-2 → havana-3 |
Changed in heat: | |
status: | Triaged → Fix Released |
Changed in heat: | |
milestone: | havana-3 → 2013.2 |
Is there a stack trace from the heat-engine log that you can post for this?