READING a topic does not create it - hence the topic not found error.

Looks like policy is not triggering the event to APPC (policy also reads for 
responses on a polling cycle and those are the not created messages you are 
seeing I think).

For closed loop testing - I have found the most value is to use curl or postman 
to do a GET against the topics and track the events going through.

Second is to check the policy logs to see if policy is querying AAI and getting 
a not found on the object. Since you are manually sending in the event I wonder 
how you ensured that the model data policy needs to map the event to the  
policy is in AAI ?

Brian




From: Devangam Manjunatha <[email protected]>
Sent: Friday, March 20, 2020 9:01 AM
To: [email protected]; FREEMAN, BRIAN D <[email protected]>
Cc: JOMY JOSE <[email protected]>; Sudarshan K.S <[email protected]>
Subject: Re: [onap-discuss] [El-Alto][vCPE]- "No such topic exists" Error from 
APPC, while triggering "closed loop" event manually

Dear ONAP Team,

Will you please update on this issue.

Regards,
Manjunath.
________________________________
From: Devangam Manjunatha 
<[email protected]<mailto:[email protected]>>
Sent: Wednesday, March 18, 2020 8:09 PM
To: [email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>>; FREEMAN, 
BRIAN D <[email protected]<mailto:[email protected]>>
Cc: JOMY JOSE <[email protected]<mailto:[email protected]>>; Sudarshan K.S 
<[email protected]<mailto:[email protected]>>
Subject: Re: [onap-discuss] [El-Alto][vCPE]- "No such topic exists" Error from 
APPC, while triggering "closed loop" event manually

Attaching logs

________________________________
From: Devangam Manjunatha
Sent: Wednesday, March 18, 2020 8:08 PM
To: [email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>>; FREEMAN, 
BRIAN D <[email protected]<mailto:[email protected]>>
Cc: JOMY JOSE <[email protected]<mailto:[email protected]>>; Sudarshan K.S 
<[email protected]<mailto:[email protected]>>
Subject: [onap-discuss] [El-Alto][vCPE]- "No such topic exists" Error from 
APPC, while triggering "closed loop" event manually

Dear Team,

We are testing Closed loop on ONAP EL-Alto. As part of this we are triggering 
closed loop(i.e. packet loss event) event manually from "nfs" VM as below.

curl -X POST -u admin:admin -H "Content-Type:application/json"  -H "Accept: 
application/json"  
http://20.0.0.53:30235/eventListener/v5<https://urldefense.proofpoint.com/v2/url?u=http-3A__20.0.0.53-3A30235_eventListener_v5&d=DwQFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=lArwdtbXLXVqYukCT6DQ15cjeK6PUAJMpFYeluJSSNg&s=St3Uf_LN_ywi8mg3ZYMHb9X-n08i7BV-8F0lUXQGduk&e=>
 -d @closedLoopEvent.json

Where "20.0.0.53" --> is VM IP of VES collector pod where it is running.

Request to reaching policy component, please find the below log from 
Policy-drools.


[2020-03-18T13:14:19.075+00:00|pool-2-thread-1][OUT|DMAAP|POLICY-PDP-PAP]
{"pdpType":"drools","state":"ACTIVE","healthy":"HEALTHY","supportedPolicyTypes":[{"name":"onap.policies.controlloop.Operational","version":"1.0.0"}],"policies":[],"messageName":"PDP_STATUS","requestId":"238e534d-8602-4705-95a9-e7ae85739a1f","timestampMs":1584537259075,"name":"rnd-policy-drools-0","pdpGroup":"defaultGroup","pdpSubgroup":"drools"}
[2020-03-18T13:14:19.758+00:00|DMAAP-source-POLICY-PDP-PAP][IN|DMAAP|POLICY-PDP-PAP]
{"pdpType":"drools","state":"ACTIVE","healthy":"HEALTHY","supportedPolicyTypes":[{"name":"onap.policies.controlloop.Operational","version":"1.0.0"}],"policies":[],"messageName":"PDP_STATUS","requestId":"238e534d-8602-4705-95a9-e7ae85739a1f","timestampMs":1584537259075,"name":"rnd-policy-drools-0","pdpGroup":"defaultGroup","pdpSubgroup":"drools"}
[2020-03-18T13:14:23.496+00:00|qtp1569754439-35]10.42.0.11 - 
[email protected]<mailto:[email protected]> [18/Mar/2020:13:14:23 
+0000] "GET /healthcheck HTTP/1.1" 200 102
[2020-03-18T13:14:38.516+00:00|qtp1569754439-35]10.42.0.11 - 
[email protected]<mailto:[email protected]> [18/Mar/2020:13:14:38 
+0000] "GET /healthcheck HTTP/1.1" 200 102
[2020-03-18T13:14:46.333+00:00|DMAAP-source-DCAE_TOPIC][IN|DMAAP|DCAE_TOPIC]
{"closedLoopEventClient":"DCAE_INSTANCE_ID.dcae-tca","policyVersion":"v0.0.1","policyName":"DCAE.Config_tca-hi-lo","policyScope":"DCAE","target_type":"VNF","AAI":{"generic-vnf.resource-version":"1583857445101","generic-vnf.vnf-name":"vcpe_vnf_vcpevsp_vgmux_0403a_202003041808","generic-vnf.prov-status":"ACTIVE","generic-vnf.model-version-id":"27bd9073-f20e-4892-b9df-e85fe3e7c810","generic-vnf.model-customization-id":"09225037-4644-4a2d-9555-184b7160501a","generic-vnf.orchestration-status":"Active","generic-vnf.is-closed-loop-disabled":false,"generic-vnf.vnf-type":"vcpesvc_vgmux_0403a/vcpevsp_vgmux_0403a
 
0","generic-vnf.service-id":"f9457e8c-4afd-45da-9389-46acd9bf5116","generic-vnf.in-maint":false,"generic-vnf.model-invariant-id":"a89867ec-f02b-4e32-a25d-5a83e81c8e02","generic-vnf.vnf-id":"1fb3e99a-fa09-49d4-950e-8fe9046a5224"},"closedLoopAlarmStart":1508871661489135,"closedLoopEventStatus":"ONSET","closedLoopControlName":"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e","version":"1.0.2","target":"generic-vnf.vnf-name","requestID":"681db7c1-da2c-4869-bfc8-dd2516229ddd","from":"DCAE"}
^C
bash-4.4$


also i can see below error( i.e. Topic not found for "APPC-CL" & 
"APPC-LCM-WRITE") from Policy-drools.

[2020-03-18T13:15:52.377+00:00|WARN|CambriaConsumerImpl|DMAAP-source-APPC-CL] 
Topic not found: 
/events/APPC-CL/39f2e184-a474-4391-bbd3-8771940c281a/rnd-policy-drools-0?timeout=15000&limit=100
[2020-03-18T13:15:52.377+00:00|WARN|CambriaConsumerImpl|DMAAP-source-APPC-LCM-WRITE]
 Topic not found: 
/events/APPC-LCM-WRITE/cef23aae-f84c-49f5-ad48-1a1f03482e4e/rnd-policy-drools-0?timeout=15000&limit=100
[2020-03-18T13:15:52.377+00:00|WARN|CambriaConsumerImpl|DMAAP-source-SDNR-CL-RSP]
 Topic not found: 
/events/SDNR-CL-RSP/411d3b52-3cec-4c8f-87c5-2088689b84b2/rnd-policy-drools-0?timeout=15000&limit=100
^C
bash-4.4$


In APPC, i can see that there are errors like "No such topic exists for 
APPC-LCM-READ & APPC-CL" as show below

2020-03-18T13:14:52,139 | INFO  | Appc-Listener-2  | HttpDmaapConsumerImpl      
      | 444 - appc-common-bundle - 1.6.4 | GET 
http://message-router.onap:3904/events/APPC-CL/appcDemoEventListener/943?timeout=60000&limit=1000<https://urldefense.proofpoint.com/v2/url?u=http-3A__message-2Drouter.onap-3A3904_events_APPC-2DCL_appcDemoEventListener_943-3Ftimeout-3D60000-26limit-3D1000&d=DwQFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=lArwdtbXLXVqYukCT6DQ15cjeK6PUAJMpFYeluJSSNg&s=jR0LB-Xj1Nt8RuFrYjOUpOGRk0xfu4ZvSLK3EWIHdpY&e=>
2020-03-18T13:14:52,139 | INFO  | Appc-Listener-1  | HttpDmaapConsumerImpl      
      | 444 - appc-common-bundle - 1.6.4 | GET 
http://message-router.onap:3904/events/APPC-LCM-READ/APPC-EVENT-LISTENER-TEST/308?timeout=60000&limit=10<https://urldefense.proofpoint.com/v2/url?u=http-3A__message-2Drouter.onap-3A3904_events_APPC-2DLCM-2DREAD_APPC-2DEVENT-2DLISTENER-2DTEST_308-3Ftimeout-3D60000-26limit-3D10&d=DwQFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=lArwdtbXLXVqYukCT6DQ15cjeK6PUAJMpFYeluJSSNg&s=hRtKB1qUuEPuo2gxVdfOD9U-s67R3n9oqmfhuO2aFZI&e=>
2020-03-18T13:14:52,150 | ERROR | Appc-Listener-1  | HttpDmaapConsumerImpl      
      | 444 - appc-common-bundle - 1.6.4 | Did not get 200 from DMaaP. Got 404 
- 
{"mrstatus":3001,"helpURL":"http://onap.readthedocs.io","message":"No<https://urldefense.proofpoint.com/v2/url?u=http-3A__onap.readthedocs.io-2522-2C-2522message-2522-3A-2522No&d=DwQFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=lArwdtbXLXVqYukCT6DQ15cjeK6PUAJMpFYeluJSSNg&s=aPnoS6JfZsIjPshHrbAEgRgykOaIDWni5lhtYcY1G-w&e=>
 such topic exists.-[APPC-LCM-READ]","status":404}
2020-03-18T13:14:52,150 | INFO  | Appc-Listener-1  | HttpDmaapConsumerImpl      
      | 444 - appc-common-bundle - 1.6.4 | Sleeping for 60s after failed request
2020-03-18T13:14:52,150 | ERROR | Appc-Listener-2  | HttpDmaapConsumerImpl      
      | 444 - appc-common-bundle - 1.6.4 | Did not get 200 from DMaaP. Got 404 
- 
{"mrstatus":3001,"helpURL":"http://onap.readthedocs.io","message":"No<https://urldefense.proofpoint.com/v2/url?u=http-3A__onap.readthedocs.io-2522-2C-2522message-2522-3A-2522No&d=DwQFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=lArwdtbXLXVqYukCT6DQ15cjeK6PUAJMpFYeluJSSNg&s=aPnoS6JfZsIjPshHrbAEgRgykOaIDWni5lhtYcY1G-w&e=>
 such topic exists.-[APPC-CL]","status":404}
2020-03-18T13:14:52,150 | INFO  | Appc-Listener-2  | HttpDmaapConsumerImpl      
      | 444 - appc-common-bundle - 1.6.4 | Sleeping for 60s after failed request


Usually topics should create automatically when first message is published on 
that topic. Here APPC is consuming messages from "APPC-LCM-READ & APPC-CL" 
topics. some how we are getting abouve error (i.e. "No such topic exists").

Please let us know how to fix this issue. attached logs contain more details.


Regards,
Manjunath.











L&T Technology Services Ltd

www.LTTS.com<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.LTTS.com&d=DwQFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=lArwdtbXLXVqYukCT6DQ15cjeK6PUAJMpFYeluJSSNg&s=1TZo-6oG4-vz4qFOT08v2ZPJjR4UQm7sqvxcAqdSV8o&e=>

L&T Technology Services Limited (LTTS) is committed to safeguard your data 
privacy. For more information to view our commitment towards data privacy under 
GDPR, please visit the privacy policy on our website 
www.Ltts.com<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.Ltts.com&d=DwQFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=e3d1ehx3DI5AoMgDmi2Fzw&m=lArwdtbXLXVqYukCT6DQ15cjeK6PUAJMpFYeluJSSNg&s=4jiHuuzhFMVqhZSj1_bOZKB-HCBvSqkkSZi_Hfk4nYY&e=>.
 This Email may contain confidential or privileged information for the intended 
recipient (s). If you are not the intended recipient, please do not use or 
disseminate the information, notify the sender and delete it from your system.

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

View/Reply Online (#20316): https://lists.onap.org/g/onap-discuss/message/20316
Mute This Topic: https://lists.onap.org/mt/72050183/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to