"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cinder/volume/drivers/dell_emc/xtremio.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).

xtremio.py  (cinder-15.0.1):xtremio.py  (cinder-15.1.0)
skipping to change at line 545 skipping to change at line 545
snapshot['consistencygroup_id']) snapshot['consistencygroup_id'])
def create_cloned_volume(self, volume, src_vref): def create_cloned_volume(self, volume, src_vref):
"""Creates a clone of the specified volume.""" """Creates a clone of the specified volume."""
vol = self.client.req('volumes', name=src_vref['id'])['content'] vol = self.client.req('volumes', name=src_vref['id'])['content']
ctxt = context.get_admin_context() ctxt = context.get_admin_context()
cache = self.db.image_volume_cache_get_by_volume_id(ctxt, cache = self.db.image_volume_cache_get_by_volume_id(ctxt,
src_vref['id']) src_vref['id'])
limit = self.configuration.safe_get('xtremio_volumes_per_glance_cache') limit = self.configuration.safe_get('xtremio_volumes_per_glance_cache')
if cache and limit and limit > 0 and limit <= vol['num-of-dest-snaps']: if cache and limit and limit > 0 and limit <= vol['num-of-dest-snaps']:
raise exception.CinderException('Exceeded the configured limit of ' raise exception.SnapshotLimitReached(set_limit=limit)
'%d snapshots per volume' % limit)
try: try:
self.client.create_snapshot(src_vref['id'], volume['id']) self.client.create_snapshot(src_vref['id'], volume['id'])
except XtremIOSnapshotsLimitExceeded as e: except XtremIOSnapshotsLimitExceeded as e:
raise exception.CinderException(e.message) raise exception.CinderException(e.message)
# extend the snapped volume if requested size is larger then original # extend the snapped volume if requested size is larger then original
if volume['size'] > src_vref['size']: if volume['size'] > src_vref['size']:
try: try:
self.extend_volume(volume, volume['size']) self.extend_volume(volume, volume['size'])
except Exception: except Exception:
 End of changes. 1 change blocks. 
2 lines changed or deleted 1 lines changed or added

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