'This function will create consistency group with the given name.
:param name: Name of the consistency group
:param project_name: Name of the project path
:param tenant: Container tenant name
:returns: status of creation'

def create(self, name, project_name, tenant):

    try:
        status = self.show(name, project_name, tenant)
    except common.CoprHdError as e:
        if (e.err_code == common.CoprHdError.NOT_FOUND_ERR):
            if (tenant is None):
                tenant = ''
            fullproj = ((tenant + '/') + project_name)
            projobj = project.Project(self.ipaddr, self.port)
            projuri = projobj.project_query(fullproj)
            parms = {'name': name, 'project': projuri}
            body = oslo_serialization.jsonutils.dumps(parms)
            (s, h) = common.service_json_request(self.ipaddr, self.port, 'POST', self.URI_CONSISTENCY_GROUP, body)
            o = common.json_decode(s)
            return o
        else:
            raise
    if status:
        common.format_err_msg_and_raise('create', 'consistency    group', (_('consistency    group    with    name:    %s    already    exists') % name), common.CoprHdError.ENTRY_ALREADY_EXISTS_ERR)
