'Test cases where space-delete fails, but OS delete is still OK.'

def test_delete_volume_failure_modes(self):

    ctxt = context.get_admin_context()
    extra_specs = {}
    type_ref = volume_types.create(ctxt, 'hgst-1', extra_specs)
    volume = {'id': '1', 'name': 'volume1', 'display_name': '', 'volume_type_id': type_ref['id'], 'size': 10, 'provider_id': 'volume10'}
    self._fail_space_delete = True
    self.driver.delete_volume(volume)
    self._fail_space_delete = False
    volume['provider_id'] = None
    self.driver.delete_volume(volume)
