"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cinder/volume/manager.py" between
cinder-15.0.1.tar.gz and cinder-15.1.0.tar.gz

About: OpenStack Cinder (Core Service: Block Storage) provides persistent block storage to running instances. Its pluggable driver architecture facilitates the creation and management of block storage devices.
The "Train" series (latest release).

manager.py  (cinder-15.0.1):manager.py  (cinder-15.1.0)
skipping to change at line 938 skipping to change at line 938
QUOTAS.add_volume_type_opts(context, QUOTAS.add_volume_type_opts(context,
reserve_opts, reserve_opts,
volume.volume_type_id) volume.volume_type_id)
reservations = QUOTAS.reserve(context, reservations = QUOTAS.reserve(context,
project_id=project_id, project_id=project_id,
**reserve_opts) **reserve_opts)
except Exception: except Exception:
LOG.exception("Failed to update usages deleting volume.", LOG.exception("Failed to update usages deleting volume.",
resource=volume) resource=volume)
# Delete glance metadata if it exists
self.db.volume_glance_metadata_delete_by_volume(context, volume.id)
volume.destroy() volume.destroy()
# If deleting source/destination volume in a migration or a temp # If deleting source/destination volume in a migration or a temp
# volume for backup, we should skip quotas. # volume for backup, we should skip quotas.
if not skip_quota: if not skip_quota:
notification = "delete.end" notification = "delete.end"
if unmanage_only: if unmanage_only:
notification = "unmanage.end" notification = "unmanage.end"
self._notify_about_volume_usage(context, volume, notification) self._notify_about_volume_usage(context, volume, notification)
skipping to change at line 3565 skipping to change at line 3562
reservations = QUOTAS.reserve(context, reservations = QUOTAS.reserve(context,
project_id=project_id, project_id=project_id,
**reserve_opts) **reserve_opts)
except Exception: except Exception:
reservations = None reservations = None
LOG.exception("Delete group " LOG.exception("Delete group "
"failed to update usages.", "failed to update usages.",
resource={'type': 'group', resource={'type': 'group',
'id': group.id}) 'id': group.id})
# Delete glance metadata if it exists
self.db.volume_glance_metadata_delete_by_volume(context, vol.id)
vol.destroy() vol.destroy()
# Commit the reservations # Commit the reservations
if reservations: if reservations:
QUOTAS.commit(context, reservations, project_id=project_id) QUOTAS.commit(context, reservations, project_id=project_id)
self.stats['allocated_capacity_gb'] -= vol.size self.stats['allocated_capacity_gb'] -= vol.size
if grpreservations: if grpreservations:
GROUP_QUOTAS.commit(context, grpreservations, GROUP_QUOTAS.commit(context, grpreservations,
 End of changes. 2 change blocks. 
6 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)