Comment 8 for bug 1406263

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/144317
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=ae0ccc4b51d3f6755e53c67f2e7895f3713b56dc
Submitter: Jenkins
Branch: master

commit ae0ccc4b51d3f6755e53c67f2e7895f3713b56dc
Author: Pavlo Shchelokovskyy <email address hidden>
Date: Mon Dec 29 15:37:41 2014 +0000

    Better error on deleting non-empty Swift container

    Swift client method delete_container() does not allow to delete
    non-empty containers, in which case user gets a confusing 409 error
    exessively truncated by Swift with no actual reason information.

    This patch catches 409 errors from Swift client on container delete,
    checks for objects in the container and raises a suitable error if
    container is not empty, so that the DELETE_FAILED reason is clearly
    seen.

    Change-Id: Ibca3851d11b509413b739a693b1ddd244479d37b
    Closes-Bug: #1406263