stack delete failed when using OS::Neutron::Router's external_gateway_info property
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Dong Liu |
Bug Description
In case of using OS::Neutron:
procedure for reproducing
1) stack create with template file [1]
2) check CREATE_COMPLETE
3) execute stack delete
4) stack delete failed with Neutron 409 'SubnetInUse' error, heat-engine's log pasted [2]
[1] template file
{
"AWSTemplat
"Resources" : {
"
"Type": "OS::Neutron::Net",
"name": "net_external",
}
}
},
"
"Type": "OS::Neutron:
"name": "subnet_external",
"cidr": "192.168.10.0/24",
}
},
"router": {
"Type": "OS::Neutron:
"name": "router",
}
}
}
}
}
[2]heat-engine's error log
2014-02-13 13:04:09.499 ERROR heat.engine.
2014-02-13 13:04:09.499 TRACE heat.engine.
2014-02-13 13:04:09.499 TRACE heat.engine.
2014-02-13 13:04:09.499 TRACE heat.engine.
2014-02-13 13:04:09.499 TRACE heat.engine.
2014-02-13 13:04:09.499 TRACE heat.engine.
2014-02-13 13:04:09.499 TRACE heat.engine.
2014-02-13 13:04:09.499 TRACE heat.engine.
2014-02-13 13:04:09.499 TRACE heat.engine.
2014-02-13 13:04:09.499 TRACE heat.engine.
Changed in heat: | |
assignee: | nobody → Dong Liu (liudong78) |
Changed in heat: | |
assignee: | Dong Liu (liudong78) → nobody |
Changed in heat: | |
assignee: | nobody → Bartosz Górski (bartosz-gorski) |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | icehouse-rc1 → 2014.1 |
I create stack with this template, it was failed sometimes for "No IPs available for external network".
I think this is because heat create router before create subnet.
So maybe we should add "DependsOn": "subnet_external" property in router resource.
I test this, and it never failed.