+Edan,Zahi
BR, Michael Lando Opensource Team Lead, SDC AT&T Network Application Development · NetCom Tel Aviv | Tampa | Atlanta | New Jersey |Chicago ··········································································· Office: +972 (3) 5451487 Mobile: +972 (54) 7833603 e-mail: ml6...@intl.att.com<mailto:ml6...@intl.att.com> From: onap-discuss-boun...@lists.onap.org [mailto:onap-discuss-boun...@lists.onap.org] On Behalf Of fu.guangr...@zte.com.cn Sent: Wednesday, July 05, 2017 4:50 AM To: ngu...@mail.linuxfoundation.org; Ngueko, Gervais-Martial <gn4...@intl.att.com> Cc: du.jiaqi...@zte.com.cn; onap-discuss@lists.onap.org Subject: [onap-discuss] 答复: RE: RE: [clamp][holmes] A Sample Rule of Holmes & a Question on CLAMP Hi Martial, Two more questions: 1. According your previous email, policy rules are designed in CLAMP and distributed by SDC. Then which system will be responsible for designing and distributing Holmes rules? CLAMP or SDC? 2. What's the workflow to deploy analytic apps/collectors to DCAE? Will CLAMP portal talk with DCAE to deploy them? Thanks in advnace. Br, Guangrong 原始邮件 发件人: <gn4...@intl.att.com<mailto:gn4...@intl.att.com>>; 收件人:付光荣10144542; 抄送人: <onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org>>;杜家强10071173; <rshac...@research.att.com<mailto:rshac...@research.att.com>>; <l...@research.att.com<mailto:l...@research.att.com>>; <pdrag...@research.att.com<mailto:pdrag...@research.att.com>>; 日 期 :2017年07月04日 20:48 主 题 :RE: RE: [clamp][holmes] A Sample Rule of Holmes & a Question on CLAMP Hi Guangrong, Yes, you need to ask help from Lusheng. Concerning the Policy, the direction of the design is to have SDC directly distributing policy rules to Policy (instead of CLAMP), but this is still under design. Br, Martial From: fu.guangr...@zte.com.cn<mailto:fu.guangr...@zte.com.cn> [mailto:fu.guangr...@zte.com.cn] Sent: mardi 4 juillet 2017 14:37 To: ngu...@m0049462.ppops.net-00191d01<mailto:ngu...@m0049462.ppops.net-00191d01>; Ngueko, Gervais-Martial <gn4...@intl.att.com<mailto:gn4...@intl.att.com>> Cc: onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org>; du.jiaqi...@zte.com.cn<mailto:du.jiaqi...@zte.com.cn>; SHACHAM, RON <rshac...@research.att.com<mailto:rshac...@research.att.com>>; JI, LUSHENG <l...@research.att.com<mailto:l...@research.att.com>>; DRAGOSH, PAM <pdrag...@research.att.com<mailto:pdrag...@research.att.com>> Subject: 答复: RE: [clamp][holmes] A Sample Rule of Holmes & a Question on CLAMP Morning Martial, Do you mean I have to turn to Lusheng for help? My understanding is that since the template in CLAMP is exactly the same as the blueprint in DCAE, if Holmes could translate the template given by CLAMP, there will be no problem for it to interpret the blueprint provided by DCAE. Therefore, what matters now is that I need to have a clear idea on how the template is mapped into the rule so that I could have a better understanding on how the whole stuff works. That's the reason I asked for a sample from both CLAMP and Policy. In a nutshell, I need to know how the rule is defined in the template and then converted into the format which could be consumed by the drools engine. I hope I've made myself clear. Thanks, Guangrong 原始邮件 发件人: <gn4...@intl.att.com<mailto:gn4...@intl.att.com>>; 收件人:付光荣10144542; <onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org>>; 抄送人:杜家强10071173; <rshac...@research.att.com<mailto:rshac...@research.att.com>>; <l...@research.att.com<mailto:l...@research.att.com>>; <pdrag...@research.att.com<mailto:pdrag...@research.att.com>>; 日 期 :2017年07月04日 20:18 主 题 :RE: [clamp][holmes] A Sample Rule of Holmes & a Question on CLAMP Hi Guangrong, To be clear and precise, CLAMP template = DCAE blueprint. So what we refer to as CLAMP template is really DCAE template that CLAMP customize and send to SDC. SDC then distribute this template to DCAE Orchestrator. Br, Martial From: fu.guangr...@zte.com.cn<mailto:fu.guangr...@zte.com.cn> [mailto:fu.guangr...@zte.com.cn] Sent: mardi 4 juillet 2017 13:40 To: Ngueko, Gervais-Martial <gn4...@intl.att.com<mailto:gn4...@intl.att.com>>; onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org> Cc: du.jiaqi...@zte.com.cn<mailto:du.jiaqi...@zte.com.cn> Subject: [clamp][holmes] A Sample Rule of Holmes & a Question on CLAMP Hi Martial, As agreed at the last weekly meeting of CLAMP, I’m sending a (quite simple but easy-to-understand) sample rule of Holmes (see below). To create such a rule, some information for alarm identification, such as alarm code or alarm name, resource (where the alarm is raised) information, etc. must be provided in advance. ===================== rule starts here ===================== package gsm.bsc.test import xxx.xxx.xxx; rule "NFVO_SameHost_Relation_Rule" salience 120 no-loop true when $root : Alarm( eventType == Alarm.EVENT_RAISED, probableCause == "RAM error", $hostname:hostname, hostname != null && !hostname.equals(""), $vmname:vmname, vmname == null || vmname.equals(""), $aid: aid) $child : Alarm( eventType == Alarm.EVENT_RAISED, aid != $aid, hostname == $hostname, probableCause in ( "compute is not available","VNF IP NSVC unavailable" ), this after [-60s, 60s] $root) then AplusServiceAccess.getAplusOutputService().publishRootChildResult("rule1", $root, $child); end rule "NFVO_Notify_Policy_Rule" salience 120 no-loop true when $alarm : Alarm( eventType == Alarm.EVENT_RAISED, probableCause == "RAM error", $hostname:hostname, hostname != null && !hostname.equals(""), $vmname:vmname, vmname == null || vmname.equals(""), $aid: aid) then Event event = new Event($alarm); AplusServiceAccess.getAplusOutputService().sendEvent("rule2", event); end ===================== rule ends here ===================== The question from Holmes’ side is how CLAMP template is translated into this kind of rule? It’ll be great if you could give us a sample of a CLAMP template and the corresponding Policy rule. I’m not sure whether the info above would be useful or not for you. If further information about Holmes and the rules is needed. Please feel free to contact me. BR, Guangrong
_______________________________________________ onap-discuss mailing list onap-discuss@lists.onap.org https://lists.onap.org/mailman/listinfo/onap-discuss