'Create local clone of the specified volume.'

@lockutils.synchronized('ETERNUS-vol', 'cinder-', True)
def _create_local_cloned_volume(self, tgt_vol_instance, src_vol_instance):

    s_volumename = src_vol_instance['ElementName']
    t_volumename = tgt_vol_instance['ElementName']
    LOG.debug('_create_local_cloned_volume,    tgt    volume    name:    %(t_volumename)s,    src    volume    name:    %(s_volumename)s,    ', {'t_volumename': t_volumename, 's_volumename': s_volumename})
    repservice = self._find_eternus_service(REPL)
    if (repservice is None):
        msg = _('_create_local_cloned_volume,    Replication    Service    not    found.')
        LOG.error(msg)
        raise exception.VolumeBackendAPIException(data=msg)
    (rc, errordesc, job) = self._exec_eternus_service('CreateElementReplica', repservice, SyncType=self._pywbem_uint(8, '16'), SourceElement=src_vol_instance.path, TargetElement=tgt_vol_instance.path)
    if (rc != 0):
        msg = (_('_create_local_cloned_volume,    volumename:    %(volumename)s,    sourcevolumename:    %(sourcevolumename)s,    source    volume    instance:    %(source_volume)s,    target    volume    instance:    %(target_volume)s,    Return    code:    %(rc)lu,    Error:    %(errordesc)s.') % {'volumename': t_volumename, 'sourcevolumename': s_volumename, 'source_volume': src_vol_instance.path, 'target_volume': tgt_vol_instance.path, 'rc': rc, 'errordesc': errordesc})
        LOG.error(msg)
        raise exception.VolumeBackendAPIException(data=msg)
    LOG.debug('_create_local_cloned_volume,    out:    %(rc)s,    %(job)s.', {'rc': rc, 'job': job})
