'This create\'s a live volume instead of a replication.
Servers are not created at this point so we cannot map up a remote
server immediately.
:param scvolume: Source SC Volume
:param remotessn: Destination SSN.
:param active: Replicate the active replay boolean.
:param sync: Sync replication boolean.
:param autofailover: enable autofailover and failback boolean.
:param primaryqos: QOS node name for the primary side.
:param secondaryqos: QOS node name for the remote side.
:return: ScLiveVolume object or None on failure.'

def create_live_volume(self, scvolume, remotessn, active=False, sync=False, autofailover=False, primaryqos='CinderQOS', secondaryqos='CinderQOS'):

    destssn = self.find_sc(int(remotessn))
    pscqos = self._find_qos(primaryqos)
    sscqos = self._find_qos(secondaryqos, destssn)
    if (not destssn):
        LOG.error('create_live_volume:    Unable    to    find    remote    %s', remotessn)
    elif (not pscqos):
        LOG.error('create_live_volume:    Unable    to    find    or    create    qos    node    %s', primaryqos)
    elif (not sscqos):
        LOG.error('create_live_volume:    Unable    to    find    or    create    remote    qos    node    %(qos)s    on    %(ssn)s', {'qos': secondaryqos, 'ssn': destssn})
    else:
        payload = {}
        payload['PrimaryVolume'] = self._get_id(scvolume)
        payload['PrimaryQosNode'] = self._get_id(pscqos)
        payload['SecondaryQosNode'] = self._get_id(sscqos)
        payload['SecondaryStorageCenter'] = destssn
        payload['StorageCenter'] = self.ssn
        payload['FailoverAutomaticallyEnabled'] = autofailover
        payload['RestoreAutomaticallyEnabled'] = autofailover
        payload['SwapRolesAutomaticallyEnabled'] = False
        payload['ReplicateActiveReplay'] = (active or autofailover)
        if (sync or autofailover):
            payload['Type'] = 'Synchronous'
            payload['SyncMode'] = 'HighAvailability'
        else:
            payload['Type'] = 'Asynchronous'
        secondaryvolumeattributes = {}
        secondaryvolumeattributes['CreateSourceVolumeFolderPath'] = True
        secondaryvolumeattributes['Notes'] = self.notes
        secondaryvolumeattributes['Name'] = scvolume['name']
        payload['SecondaryVolumeAttributes'] = secondaryvolumeattributes
        r = self.client.post('StorageCenter/ScLiveVolume', payload, True)
        if self._check_result(r):
            LOG.info('create_live_volume:    Live    Volume    created    from%(svol)s    to    %(ssn)s', {'svol': self._get_id(scvolume), 'ssn': remotessn})
            return self._get_json(r)
    LOG.error('create_live_volume:    Failed    to    create    Live    Volume    from%(svol)s    to    %(ssn)s', {'svol': self._get_id(scvolume), 'ssn': remotessn})
    return None
