The procedure seems correct, but considering that you aren’t using a real VNF, 
something may be lost. For example, is your VES client reporting the source 
name? This would be the name of the vServer in which the VES agent runs when 
deployed in a real VNF. If so, is this vServer name in AAI? If not, DCAE fails 
the enrichment, although the closed loop should still go on.

Topics are created when needed, so if unauthenticated.DCAE_CL_OUTPUT isn’t 
there is because no message has been published in that topic yet. Can you post 
the TCA configuration from Consul?

Marco

From: Malinconico Aniello Paolo <a.malincon...@reply.it>
Date: Wednesday, August 7, 2019 at 9:56 AM
To: "PLATANIA, MARCO (MARCO)" <plata...@research.att.com>, 
"onap-discuss@lists.onap.org" <onap-discuss@lists.onap.org>
Cc: "MALAKOV, YURIY" <ym9...@att.com>
Subject: Clamp Clarifications

Hi Marco,
first of all thanks for your help to understand and improve the ONAP framework.
I am having some doubts about the CLAMP working cycle. I explain better below:

I am following the VF Scale Out Use Case here : 
https://docs.onap.org/en/latest/submodules/integration.git/docs/docs_scaleout.html<https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.onap.org_en_latest_submodules_integration.git_docs_docs-5Fscaleout.html&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=4UKmMXMQKyhOcMT4YhMFPpMoBW7UbBAToQJYjUMu37I&s=pW6gGbKyrKXrSi0L644R1zJpiwlM7fcTQy2EmwLx4ho&e=>
The deployment part, after some troubles, now works fine: all VM have been 
installed and configured correctly .
Now, I am focusing my attention on the CLAMP deploymrnts part.
In particulare I have created a clamp deployment as you done here 
https://wiki.onap.org/display/DW/2019-07-31+Control+Loop+Sub+Committee+Weekly+Meeting?preview=/68539751/68539752/zoom_0.mp4<https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.onap.org_display_DW_2019-2D07-2D31-2BControl-2BLoop-2BSub-2BCommittee-2BWeekly-2BMeeting-3Fpreview-3D_68539751_68539752_zoom-5F0.mp4&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=4UKmMXMQKyhOcMT4YhMFPpMoBW7UbBAToQJYjUMu37I&s=rXRwLIvwdLMRl3nSrgrVMNlbZFOJmf8MJJdt807gJeU&e=>
My clamp deployment is very similar to yours. The event name associated to my 
clamp deployment is vLoadBalancer and the policy works if the threshold on 
receiveidTotalPacketDelta > 50 .
After deploying it, a new pod has came up 
dep-s8583ff5e422342558ad8c7b924e334f9-dcaegen2-analytics-thlt8b .
In my understanding this clamp deployment listens on the 
unauthenticated.VES_MEASUREMENT_OUTPUT at eventName vLoadBalancer and if the 
policy is accepted (receiveidTotalPacketDelta > 50), it publishes the event 
(that will perform the closed loop i.e. command to run the scale out operation 
via SO) into the unauthenticated.DCAE_CL_OUTPUT. Right?


So, to test it (only the publishing/subscribing events via clamp deployments) 
without deploying the VMs, I have written a simple VES Agent similar to the 
vFirewall’s one that sends the messages with eventName vLoadBalancer to the VES 
Collector that validates them and publishes them into the Message Router at   
unauthenticated.VES_MEASUREMENT_OUTPUT topic.  If the validation fails the 
message is dropped.
I am sure my ves agent works because if I perform the GET  request  
http://{{k8s}}:30227/events/unauthenticated.VES_MEASUREMENT_OUTPUT/n3ll1x93/1<https://urldefense.proofpoint.com/v2/url?u=http-3A__-257b-257bk8s-257d-257d-3A30227_events_unauthenticated.VES-5FMEASUREMENT-5FOUTPUT_n3ll1x93_1&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=4UKmMXMQKyhOcMT4YhMFPpMoBW7UbBAToQJYjUMu37I&s=eSMzsDMu64_B-5RN4W_emOxdIztkFnDmOcBQZJbJYtM&e=>
 , there are multiple messages sent by my ves agent with the parameter 
receiveidTotalPacketDelta that has a value greater than 50, so the policy 
should be triggered.

To see if the clamp deployment works or not, I perform the GET request from 
http://{{k8s}}:30227/events/unauthenticated.DCAE_CL_OUTPUT/OpenDCAE-clamp/c13<https://urldefense.proofpoint.com/v2/url?u=http-3A__-257b-257bk8s-257d-257d-3A30227_events_unauthenticated.DCAE-5FCL-5FOUTPUT_OpenDCAE-2Dclamp_c13&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=4UKmMXMQKyhOcMT4YhMFPpMoBW7UbBAToQJYjUMu37I&s=eGz5gHYn0Wlr-DoMC4_2JSzRnsn1kdbBc4dINaIWv28&e=>
 , buti t returns the following messages:
It returns 
{"mrstatus":3001,"helpURL":"http://onap.readthedocs.io<https://urldefense.proofpoint.com/v2/url?u=http-3A__onap.readthedocs.io_&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=4UKmMXMQKyhOcMT4YhMFPpMoBW7UbBAToQJYjUMu37I&s=Nb1DTdHK_s681aWg37i58olcby-tv2ikrB2Nde9avl8&e=>","message":"No
 such topic exists.-[unauthenticated.DCAE_CL_OUTPUT]","status":404}.

In fact if I check all existing topics 
http://{{k8s}}:30227/topics/<https://urldefense.proofpoint.com/v2/url?u=http-3A__-257b-257bk8s-257d-257d-3A30227_topics_&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=4UKmMXMQKyhOcMT4YhMFPpMoBW7UbBAToQJYjUMu37I&s=Fd8Cy9eyxHa82_fbLjXKeQfto1DeuSxCSLrokEfTL3c&e=>
 , they are :
{
    "topics": [
        "org.onap.dmaap.mr.PNF_REGISTRATION",
        "unauthenticated.SEC_HEARTBEAT_OUTPUT",
        "AAI-EVENT",
        "SDC-DISTR-STATUS-TOPIC-AUTO",
        "SDC-DISTR-NOTIF-TOPIC-AUTO",
        "org.onap.dmaap.mr.PNF_READY",
        "POLICY-PDP-PAP",
        "POA-AUDIT-RESULT",
        "org.onap.dmaap.mr.PM_MAPPER",
        "POA-AUDIT-INIT",
        "unauthenticated.VES_MEASUREMENT_OUTPUT",
        "org.onap.dmaap.mr.mirrormakeragent",
        "__consumer_offsets",
        "POA-RULE-VALIDATION"
    ]
}

And there is any topic called unauthenticated.DCAE_CL_OUTPUT .
So should I create this topic unauthenticated.DCAE_CL_OUTPUT manually?
Or something is wrong during my clamp configuration? How can I test the Clamp 
deployment correctly?

Thanks a lot,

Aniello Paolo Malinconico





Aniello Paolo Malinconico

Net Reply
Via Cardinal Massaia, 83
10147 - Torino - ITALY
phone: +39 011 29100
a.malincon...@reply.it<mailto:a.malincon...@reply.it>
www.reply.it<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.reply.it&d=DwMGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KgFIQiUJzSC0gUhJaQxg8eC3w16GC3sKgWIcs4iIee0&m=4UKmMXMQKyhOcMT4YhMFPpMoBW7UbBAToQJYjUMu37I&s=drVT0Q1UpI8TUtLIZFuwJbwYwV5PyrjnRyQIPqN_kOI&e=>

[Net Reply]


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#18474): https://lists.onap.org/g/onap-discuss/message/18474
Mute This Topic: https://lists.onap.org/mt/32782507/21656
Group Owner: onap-discuss+ow...@lists.onap.org
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to