GlanceMetadataNotFound Exception was catching during
a call to volume_glance_metadata_delete_by_volume().
This exception is never thrown by the implementation.
This catching has been removed.
Change-Id: Ifa15df5d9c4517f75a1a050ff5aa34225f33931b
Closes-Bug: #
1274601
LOG.exception(_("Failed to update usages deleting volume"))
# Delete glance metadata if it exists
- try:
- self.db.volume_glance_metadata_delete_by_volume(context, volume_id)
- LOG.debug(_("volume %s: glance metadata deleted"),
- volume_ref['id'])
- except exception.GlanceMetadataNotFound:
- LOG.debug(_("no glance metadata found for volume %s"),
- volume_ref['id'])
+ self.db.volume_glance_metadata_delete_by_volume(context, volume_id)
self.db.volume_destroy(context, volume_id)
LOG.info(_("volume %s: deleted successfully"), volume_ref['id'])