Stack delete fails when swift container has objects
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Undecided
|
Pavlo Shchelokovskyy |
Bug Description
When creating a swift container in Heat - and thereafter populating that container with files - it will not be possible to delete the stack - without removing the files within the container beforehand.
If stack-delete is run - it returns DELETE_FAILED
heat-stack show <stack_name> returns
" Resource DELETE failed: ClientException: Container
DELETE failed: http://
8384e4879b6d027
ex27jdxpzjcq 409 Conflict [first 60 chars of response]
<html><
Error message is non-comprehensible.
I assume this is connected to this bug - https:/
Shouldn't deleting a stack also delete the container and all it's contents?
Changed in heat: | |
milestone: | none → kilo-2 |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | kilo-2 → 2015.1.0 |
At the basis it is not really Heat's problem, as Heat only manages the container itself (we do not have resources for objects inside the containers). If Swift demands a container to be empty on delete so be it. We probably could list all the objects in the container and delete them one by one, but that would be a deviation from Swift behaviour, plus if it was not created by Heat, Heat has no business deleting it.
But surely, the error message can be improved.