Hi Guangrong,

1.      In the current CLAMP design the settings of the configuration of 
Micro-service (so in this case Holmes rules) are made in CLAMP and send as 
policies to Policy. Policy then distributes them to the micro-service. Those 
are called in CLAMP configuration policies.
In my previous emails I was talking about policies for policy itself (called in 
CLAMP operational policies) so not the configuration/rulings of micro-services 
which is different. Anyway, this is still under discussion! And at this point 
is just talk, so nothing has been implemented or finalized yet in that 
direction for operational policies (Policy specific rules) used by Policy 
itself!!.

2.      Yes, CLAMP talks to DCAE to trigger the deployment of DCAE 
micro-services.

Br,
Martial

From: [email protected] [mailto:[email protected]]
Sent: mercredi 5 juillet 2017 03:50
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: 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








原始邮件
发件人: <[email protected]<mailto:[email protected]>>;
收件人:付光荣10144542;
抄送人: 
<[email protected]<mailto:[email protected]>>;杜家强10071173; 
<[email protected]<mailto:[email protected]>>; 
<[email protected]<mailto:[email protected]>>; 
<[email protected]<mailto:[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]> 
[mailto:[email protected]]
Sent: mardi 4 juillet 2017 14:37
To: 
[email protected]<mailto:[email protected]>; 
Ngueko, Gervais-Martial <[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>; SHACHAM, RON 
<[email protected]<mailto:[email protected]>>; JI, LUSHENG 
<[email protected]<mailto:[email protected]>>; DRAGOSH, PAM 
<[email protected]<mailto:[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]<mailto:[email protected]>>;
收件人:付光荣10144542; 
<[email protected]<mailto:[email protected]>>;
抄送人:杜家强10071173;  
<[email protected]<mailto:[email protected]>>; 
<[email protected]<mailto:[email protected]>>; 
<[email protected]<mailto:[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]> 
[mailto:[email protected]]
Sent: mardi 4 juillet 2017 13:40
To: Ngueko, Gervais-Martial <[email protected]<mailto:[email protected]>>; 
[email protected]<mailto:[email protected]>
Cc: [email protected]<mailto:[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

Reply via email to