Comment 2 for bug 1023755

Revision history for this message
Vincent Hou (houshengbo) wrote : Re: Unable to delete the volume snapshot

Hi Mike. What I was doing is exactly the same as yo did. I tested on multiple machines and found something strange.
When the volume size is default with no change to the localrc file, the snapshot can be deleted successfully; when the volume size is set to a different value like VOLUME_BACKING_FILE_SIZE=25G in localrc, this issue will be raised and the status of the snapshot gets stuck to "deleting".

======================Log of c-api========================
When command cinder snapshot-delete is called, the following log prompts:
2012-07-16 13:51:26 INFO cinder.api.openstack.wsgi [req-036bc027-cee0-4ff3-a2b0-cf72d2f989c4 818048fb7d084e118c2d7e03bdb497ea 71dda5584d8145d6a0b379f61b4f3e36] GET http://9.119.148.111:8776/v1/71dda5584d8145d6a0b379f61b4f3e36/snapshots/90850e6a-d5c3-465e-971c-2897b1587222
2012-07-16 13:51:26 DEBUG cinder.api.openstack.wsgi [req-036bc027-cee0-4ff3-a2b0-cf72d2f989c4 818048fb7d084e118c2d7e03bdb497ea 71dda5584d8145d6a0b379f61b4f3e36] Unrecognized Content-Type provided in request from (pid=13765) get_body /opt/stack/cinder/cinder/api/openstack/wsgi.py:696
2012-07-16 13:51:26 INFO cinder.api.openstack.wsgi [req-036bc027-cee0-4ff3-a2b0-cf72d2f989c4 818048fb7d084e118c2d7e03bdb497ea 71dda5584d8145d6a0b379f61b4f3e36] http://9.119.148.111:8776/v1/71dda5584d8145d6a0b379f61b4f3e36/snapshots/90850e6a-d5c3-465e-971c-2897b1587222 returned with HTTP 200
2012-07-16 13:51:26 INFO cinder.api.openstack.wsgi [req-ecca3603-0c64-4cbc-8bf0-1ada7bcce170 818048fb7d084e118c2d7e03bdb497ea 71dda5584d8145d6a0b379f61b4f3e36] DELETE http://9.119.148.111:8776/v1/71dda5584d8145d6a0b379f61b4f3e36/snapshots/90850e6a-d5c3-465e-971c-2897b1587222
2012-07-16 13:51:26 DEBUG cinder.api.openstack.wsgi [req-ecca3603-0c64-4cbc-8bf0-1ada7bcce170 818048fb7d084e118c2d7e03bdb497ea 71dda5584d8145d6a0b379f61b4f3e36] Unrecognized Content-Type provided in request from (pid=13765) get_body /opt/stack/cinder/cinder/api/openstack/wsgi.py:696
2012-07-16 13:51:26 AUDIT cinder.api.openstack.volume.snapshots [req-ecca3603-0c64-4cbc-8bf0-1ada7bcce170 818048fb7d084e118c2d7e03bdb497ea 71dda5584d8145d6a0b379f61b4f3e36] Delete snapshot with id: 90850e6a-d5c3-465e-971c-2897b1587222
2012-07-16 13:51:26 DEBUG cinder.rpc.amqp [req-ecca3603-0c64-4cbc-8bf0-1ada7bcce170 818048fb7d084e118c2d7e03bdb497ea 71dda5584d8145d6a0b379f61b4f3e36] Making asynchronous cast on cinder-volume.vincent-ThinkCentre-M52... from (pid=13765) cast /opt/stack/cinder/cinder/rpc/amqp.py:363
2012-07-16 13:51:26 INFO cinder.api.openstack.wsgi [req-ecca3603-0c64-4cbc-8bf0-1ada7bcce170 818048fb7d084e118c2d7e03bdb497ea 71dda5584d8145d6a0b379f61b4f3e36] http://9.119.148.111:8776/v1/71dda5584d8145d6a0b379f61b4f3e36/snapshots/90850e6a-d5c3-465e-971c-2897b1587222 returned with HTTP 202