'Sever Replication at the destination.
This method will sever the package and move the volume to a project,
if project name is not passed in then the package name is selected
as the project name'

def sever_replication(self, package, src_name, project=None):

    svc = ('/api/storage/v1/replication/sources/%(src)s/packages/%(pkg)s/sever' % {'src': src_name, 'pkg': package})
    if (not project):
        project = package
    arg = {'projname': project}
    ret = self.rclient.put(svc, arg)
    if (ret.status != restclient.Status.ACCEPTED):
        exception_msg = (_('Error    severing    the    package:    %(package)s    from    source:    %(src)s    Return    code:    %(ret.status)d    Message:    %(ret.data)s    .') % {'package': package, 'src': src_name, 'ret.status': ret.status, 'ret.data': ret.data})
        LOG.error(exception_msg)
        raise exception.VolumeBackendAPIException(data=exception_msg)
