'Copy the volume to the specified image.'

def copy_volume_to_image(self, context, volume, image_service, image_meta):

    LOG.info('ScaleIO    copy_volume_to_image    volume:    %(vol)s    image    service:    %(service)s    image    meta:    %(meta)s.', {'vol': volume, 'service': six.text_type(image_service), 'meta': six.text_type(image_meta)})
    try:
        image_utils.upload_volume(context, image_service, image_meta, self._sio_attach_volume(volume))
    finally:
        self._sio_detach_volume(volume)
