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
Hi Mike. What I was doing is exactly the same as yo did. I tested on multiple machines and found something strange. BACKING_ FILE_SIZE= 25G in localrc, this issue will be raised and the status of the snapshot gets stuck to "deleting".
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_
======= ======= ======= =Log of c-api== ======= ======= ======= = api.openstack. wsgi [req-036bc027- cee0-4ff3- a2b0-cf72d2f989 c4 818048fb7d084e1 18c2d7e03bdb497 ea 71dda5584d8145d 6a0b379f61b4f3e 36] GET http:// 9.119.148. 111:8776/ v1/71dda5584d81 45d6a0b379f61b4 f3e36/snapshots /90850e6a- d5c3-465e- 971c-2897b15872 22 api.openstack. wsgi [req-036bc027- cee0-4ff3- a2b0-cf72d2f989 c4 818048fb7d084e1 18c2d7e03bdb497 ea 71dda5584d8145d 6a0b379f61b4f3e 36] Unrecognized Content-Type provided in request from (pid=13765) get_body /opt/stack/ cinder/ cinder/ api/openstack/ wsgi.py: 696 api.openstack. wsgi [req-036bc027- cee0-4ff3- a2b0-cf72d2f989 c4 818048fb7d084e1 18c2d7e03bdb497 ea 71dda5584d8145d 6a0b379f61b4f3e 36] http:// 9.119.148. 111:8776/ v1/71dda5584d81 45d6a0b379f61b4 f3e36/snapshots /90850e6a- d5c3-465e- 971c-2897b15872 22 returned with HTTP 200 api.openstack. wsgi [req-ecca3603- 0c64-4cbc- 8bf0-1ada7bcce1 70 818048fb7d084e1 18c2d7e03bdb497 ea 71dda5584d8145d 6a0b379f61b4f3e 36] DELETE http:// 9.119.148. 111:8776/ v1/71dda5584d81 45d6a0b379f61b4 f3e36/snapshots /90850e6a- d5c3-465e- 971c-2897b15872 22 api.openstack. wsgi [req-ecca3603- 0c64-4cbc- 8bf0-1ada7bcce1 70 818048fb7d084e1 18c2d7e03bdb497 ea 71dda5584d8145d 6a0b379f61b4f3e 36] Unrecognized Content-Type provided in request from (pid=13765) get_body /opt/stack/ cinder/ cinder/ api/openstack/ wsgi.py: 696 api.openstack. volume. snapshots [req-ecca3603- 0c64-4cbc- 8bf0-1ada7bcce1 70 818048fb7d084e1 18c2d7e03bdb497 ea 71dda5584d8145d 6a0b379f61b4f3e 36] Delete snapshot with id: 90850e6a- d5c3-465e- 971c-2897b15872 22 0c64-4cbc- 8bf0-1ada7bcce1 70 818048fb7d084e1 18c2d7e03bdb497 ea 71dda5584d8145d 6a0b379f61b4f3e 36] Making asynchronous cast on cinder- volume. vincent- ThinkCentre- M52... from (pid=13765) cast /opt/stack/ cinder/ cinder/ rpc/amqp. py:363 api.openstack. wsgi [req-ecca3603- 0c64-4cbc- 8bf0-1ada7bcce1 70 818048fb7d084e1 18c2d7e03bdb497 ea 71dda5584d8145d 6a0b379f61b4f3e 36] http:// 9.119.148. 111:8776/ v1/71dda5584d81 45d6a0b379f61b4 f3e36/snapshots /90850e6a- d5c3-465e- 971c-2897b15872 22 returned with HTTP 202
When command cinder snapshot-delete is called, the following log prompts:
2012-07-16 13:51:26 INFO cinder.
2012-07-16 13:51:26 DEBUG cinder.
2012-07-16 13:51:26 INFO cinder.
2012-07-16 13:51:26 INFO cinder.
2012-07-16 13:51:26 DEBUG cinder.
2012-07-16 13:51:26 AUDIT cinder.
2012-07-16 13:51:26 DEBUG cinder.rpc.amqp [req-ecca3603-
2012-07-16 13:51:26 INFO cinder.