500 error when image is in use though the backend store
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
New
|
Undecided
|
Feilong Wang |
Bug Description
When delete image from Glance and if the image is still in use in RBD, Glance will raise 500 error as below:
=======
2016-02-26 14:23:42.849 2190 ERROR glance.common.wsgi [req-e1ca13af-
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi Traceback (most recent call last):
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi File "/opt/cat/
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi request, **action_args)
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi File "/opt/cat/
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi return method(*args, **kwargs)
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi File "/opt/cat/
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi return func(self, req, *args, **kwargs)
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi File "/opt/cat/
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi {'status': ori_status})
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi File "/opt/cat/
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi six.reraise(
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi File "/opt/cat/
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi upload_
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi File "/opt/cat/
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi id, location_data)
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi File "/opt/cat/
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi safe_delete_
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi File "/opt/cat/
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi ret = store_api.
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi File "/opt/cat/
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi return store.delete(loc, context=context)
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi File "/opt/cat/
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi return store_op_fun(store, *args, **kwargs)
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi File "/opt/cat/
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi self._delete_
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi File "/opt/cat/
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi raise exceptions.
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi InUseByStore: The image cannot be deleted because it is in use through the backend store outside of Glance.
2016-02-26 14:23:42.849 2190 TRACE glance.common.wsgi
2016-02-26 14:23:42.902 2190 INFO eventlet.
Changed in glance: | |
assignee: | nobody → Fei Long Wang (flwang) |
This was introduced with https:/ /review. openstack. org/#/c/ 211447/ I would say