volume_file)
src_info_path = '%s.info' % volume_path
volume_ref = {'id': volume['id'],
- 'name': volume['name'] + '-clone',
+ 'name': volume['name'],
'status': volume['status'],
'provider_location': volume['provider_location'],
'size': volume['size']}
'size': volume['size'],
'status': volume['status'],
'provider_location': volume['provider_location'],
- 'name': 'volume-' + volume['id'] + '-clone'}
+ 'name': 'volume-' + volume['id']}
drv.create_snapshot(snap_ref)
drv._copy_volume_from_snapshot(snap_ref,
msg = _("Volume status must be 'available'.")
raise exception.InvalidVolume(msg)
- volume_name = CONF.volume_name_template % src_vref['id']
+ volume_name = CONF.volume_name_template % volume['id']
volume_info = {'provider_location': src_vref['provider_location'],
'size': src_vref['size'],
'id': volume['id'],
- 'name': '%s-clone' % volume_name,
+ 'name': volume_name,
'status': src_vref['status']}
temp_snapshot = {'volume_name': volume_name,
'size': src_vref['size'],