Lines Matching refs:volume_ref
905 def _clear_db(self, context, is_migrating_dest, volume_ref, status): argument
910 volume_ref.destroy()
913 "record needs to be deleted).", resource=volume_ref)
915 volume_ref.status = status
916 volume_ref.save()
1179 volume_ref = self.db.volume_get(context, snapshot.volume_id)
1182 volume_ref.get('volume_type_id'))
1392 def _create_image_cache_volume_entry(self, ctx, volume_ref, argument
1400 volume_ref,
1411 if not self.image_volume_cache.ensure_space(ctx, volume_ref):
1416 'service': volume_ref.service_topic_queue})
1420 volume_ref,
1839 volume_ref = self.db.volume_get(context, volume_id)
1841 self.driver.terminate_connection(volume_ref, connector,
1846 LOG.exception(err_msg, resource=volume_ref)
1849 resource=volume_ref)
1870 volume_ref = self.db.volume_get(context, volume_id)
1872 self.driver.remove_export(context, volume_ref)
1875 LOG.exception(msg, resource=volume_ref)
1879 resource=volume_ref)
1903 volume_ref = self.db.volume_get(context.elevated(), volume_id)
1908 volume_ref,
1921 resource=volume_ref)
1927 resource=volume_ref)
3529 for volume_ref in volumes:
3530 volume_model_update = {'id': volume_ref.id}
3532 self.driver.remove_export(context, volume_ref)
3533 self.driver.delete_volume(volume_ref)
3944 volume_ref = objects.Volume.get_by_id(context,
3948 volume_ref.volume_type_id)