Description of problem: Running automation tests from tempest . we see failures in lvm and glusterfs backend tests steps : #1 we create volume #2 create instance from image #3 attach volume to instance #4 create snapshot from instance #5 delete the snapshot - FAILS def test_snapshot_create_with_volume_in_use(self): # Create a snapshot when volume status is in-use # Create a test instance server_name = data_utils.rand_name('instance-') resp, server = self.servers_client.create_server(server_name, self.image_ref, self.flavor_ref) self.addCleanup(self.servers_client.delete_server, server['id']) self.servers_client.wait_for_server_status(server['id'], 'ACTIVE') mountpoint = '/dev/%s' % CONF.compute.volume_device_name resp, body = self.volumes_client.attach_volume( self.volume_origin['id'], server['id'], mountpoint) self.assertEqual(202, resp.status) self.volumes_client.wait_for_volume_status(self.volume_origin['id'], 'in-use') self.addCleanup(self._detach, self.volume_origin['id']) # Snapshot a volume even if it's attached to an instance snapshot = self.create_snapshot(self.volume_origin['id'], force=True) # Delete the snapshot self.snapshots_client.delete_snapshot(snapshot['id']) self.assertEqual(202, resp.status) self.snapshots_client.wait_for_resource_deletion(snapshot['id']) self.snapshots.remove(snapshot) Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: #1 we create volume #2 create instance from image #3 attach volume to instance #4 create snapshot from instance #5 delete the snapshot - FAILS Actual results: Expected results: the snapshot should be deleted Additional info:
Created attachment 899473 [details] cinder api.log
Created attachment 899474 [details] cinder volume
Created attachment 899475 [details] cinder scheduler.log
*** This bug has been marked as a duplicate of bug 1056037 ***