Hi Martial,
Two more questions:
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?
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
原始邮件
发件人: <[email protected]>
收件人:付光荣10144542
抄送人: <[email protected]>杜家强10071173 <[email protected]>
<[email protected]> <[email protected]>
日 期 :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: [email protected] [mailto:[email protected]]
Sent: mardi 4 juillet 2017 14:37
To: [email protected] Ngueko, Gervais-Martial
<[email protected]>
Cc: [email protected] [email protected] SHACHAM, RON
<[email protected]> JI, LUSHENG <[email protected]> DRAGOSH, PAM
<[email protected]>
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
原始邮件
发件人: <[email protected]>
收件人:付光荣10144542 <[email protected]>
抄送人:杜家强10071173 <[email protected]> <[email protected]>
<[email protected]>
日 期 :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: [email protected] [mailto:[email protected]]
Sent: mardi 4 juillet 2017 13:40
To: Ngueko, Gervais-Martial <[email protected]> [email protected]
Cc: [email protected]
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
[email protected]
https://lists.onap.org/mailman/listinfo/onap-discuss