code stringlengths 3 6.57k |
|---|
image_service.show(context, image_id) |
NOTE(harlowja) |
request_spec.get('backup_id') |
NOTE(luqitao) |
revert(self, context, result, **kwargs) |
isinstance(result, ft.Failure) |
result.get('volume_spec') |
common.restore_source_status(context, self.db, volume_spec) |
NotifyVolumeActionTask(flow_utils.CinderTask) |
__init__(self, db, event_suffix) |
super(NotifyVolumeActionTask, self) |
execute(self, context, volume) |
CreateVolumeFromSpecTask(flow_utils.CinderTask) |
__init__(self, manager, db, driver, image_volume_cache=None) |
super(CreateVolumeFromSpecTask, self) |
__init__(addons=[ACTION]) |
message_api.API() |
backup_api.API() |
backup_rpcapi.BackupAPI() |
_("Copying metadata from %(src_type) |
_("Failed updating volume %(vol_id) |
volume_utils.enable_bootable_flag(volume) |
kwargs.get('snapshot_id') |
kwargs.get('source_volid') |
kwargs.get('image_id') |
kwargs.get('image_meta', {}) |
exception.MetadataCopyFailure(reason=ex) |
objects.Snapshot.get_by_id(context, snapshot_id) |
self._cleanup_cg_in_volume(volume) |
NOTE(harlowja) |
volume (although they could in the future) |
LOG.exception("Failed fetching snapshot %(snapshot_id) |
exception.MetadataUpdateFailure(reason=ex) |
NOTE(harlowja) |
NOTE(harlowja) |
objects.Volume.get_by_id(context, source_volid) |
self.driver.create_cloned_volume(volume, srcvol_ref) |
self._cleanup_cg_in_volume(volume) |
NOTE(harlowja) |
volume (although they could in the future) |
LOG.debug("Creating volume glance metadata for volume %(volume_id) |
_clone_image_volume(self, context, volume, image_location, image_meta) |
NOTE (lixiaoy1) |
if (image_meta.get('container_format') |
image_meta.get('disk_format') |
LOG.info("Requested image %(id) |
image_meta.get('id') |
set([direct_url] + [loc.get('url') |
url.startswith('cinder://') |
image_volume.get('volume_metadata') |
LOG.info("Skipping image volume %(id) |
LOG.debug("No accessible image volume for image %(id) |
self.driver.create_cloned_volume(volume, image_volume) |
self._cleanup_cg_in_volume(volume) |
except (NotImplementedError, exception.CinderException) |
LOG.exception('Failed to clone image volume %(id) |
TODO(harlowja) |
self.driver.create_volume(volume) |
self._cleanup_cg_in_volume(volume) |
volume.update(model_update) |
volume.save() |
LOG.exception("Failed updating volume %(volume_id) |
excutils.save_and_reraise_exception() |
LOG.debug('Creating from source image-volume %(volume_id) |
coordination.synchronized('{image_id}') |
cinder_context.get_internal_tenant_context() |
NOTE(e0ne) |
NOTE(mnaser) |
fileutils.ensure_tree(CONF.image_conversion_dir) |
excutils.save_and_reraise_exception() |
cinder_context.get_internal_tenant_context() |
self._cleanup_cg_in_volume(volume) |
volume_utils.extract_host(volume.service_topic_queue) |
image_utils.qemu_img_info(tmp_image) |
volume.save() |
excutils.save_and_reraise_exception() |
excutils.save_and_reraise_exception() |
volume.update(model_update) |
volume.save() |
self.driver.extend_volume(volume, original_size) |
volume.save() |
LOG.debug("Cloning %(volume_id) |
image_meta.get('virtual_size') |
NOTE (singn) |
NOTE (lixiaoy1) |
_prepare_image_cache_entry() |
returns (None, False) |
_create_from_image_cache_or_download() |
_create_from_backup(self, context, volume, backup_id, **kwargs) |
LOG.info("Creating volume %(volume_id) |
objects.Backup.get_by_id(context, backup_id) |
self.driver.create_volume_from_backup(volume, backup) |
volume.update(model_update) |
volume.save() |
backup.update(updates) |
backup.save() |
LOG.info("Created volume %(volume_id) |
_create_raw_volume(self, context, volume, **kwargs) |
self.driver.create_volume(volume) |
excutils.save_and_reraise_exception() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.