Hi Taka,

Sure we will apply the patch which you suggested in below mail.

Please find below out of the curl commands which you asked, Both are successful.


ubuntu@rndelato-nfs:~$
ubuntu@rndelato-nfs:~$ curl -X POST -v -H "Content-Type: application/json" -d 
@./scaleout.json http://20.0.0.11:30227/events/APPC-LCM-READ
Note: Unnecessary use of -X or --request, POST is already inferred.
*   Trying 20.0.0.11...
* TCP_NODELAY set
* Connected to 20.0.0.11 (20.0.0.11) port 30227 (#0)
> POST /events/APPC-LCM-READ HTTP/1.1
> Host: 20.0.0.11:30227
> User-Agent: curl/7.58.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 1282
> Expect: 100-continue
>
< HTTP/1.1 100 Continue
* We are completely uploaded and fine
< HTTP/1.1 200 OK
< Date: Mon, 11 May 2020 13:33:19 GMT
< Content-Type: application/json
< Accept: */*
< breadcrumbId: ID-rnd-dmaap-message-router-0-1589023802302-0-874928
< Expect: 100-continue
< User-Agent: curl/7.58.0
< X-CSI-Internal-WriteableRequest: true
< Content-Length: 41
< Server: Jetty(9.4.z-SNAPSHOT)
<
{
    "serverTimeMs": 1,
    "count": 1
* Connection #0 to host 20.0.0.11 left intact
}ubuntu@rndelato-nfs:~$



ubuntu@rndelato-nfs:~$
ubuntu@rndelato-nfs:~$ curl -v http://20.0.0.11:30227/topics
*   Trying 20.0.0.11...
* TCP_NODELAY set
* Connected to 20.0.0.11 (20.0.0.11) port 30227 (#0)
> GET /topics HTTP/1.1
> Host: 20.0.0.11:30227
> User-Agent: curl/7.58.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Mon, 11 May 2020 13:33:53 GMT
< Content-Type: application/json
< Accept: */*
< breadcrumbId: ID-rnd-dmaap-message-router-0-1589023802302-0-875122
< User-Agent: curl/7.58.0
< X-CSI-Internal-WriteableRequest: true
< Content-Length: 555
< Server: Jetty(9.4.z-SNAPSHOT)
<
{"topics": [
    "VCPE-DHCP-EVENT",
    "org.onap.dmaap.mr.PNF_REGISTRATION",
    "unauthenticated.SEC_HEARTBEAT_OUTPUT",
    "unauthenticated.DCAE_CL_OUTPUT",
    "SDC-DISTR-STATUS-TOPIC-AUTO",
    "AAI-EVENT",
    "SDC-DISTR-NOTIF-TOPIC-AUTO",
    "org.onap.dmaap.mr.PNF_READY",
    "POLICY-CL-MGT",
    "POLICY-PDP-PAP",
    "POA-AUDIT-RESULT",
    "POA-AUDIT-INIT",
    "APPC-LCM-READ",
    "unauthenticated.VES_MEASUREMENT_OUTPUT",
    "org.onap.dmaap.mr.mirrormakeragent",
    "__consumer_offsets",
    "APPC-LCM-WRITE",
    "POA-RULE-VALIDATION"
* Connection #0 to host 20.0.0.11 left intact
]}ubuntu@rndelato-nfs:~$



Regards,
Manjunath.




________________________________
From: CHO, TAKAMUNE <[email protected]>
Sent: Monday, May 11, 2020 6:52 PM
To: Devangam Manjunatha <[email protected]>; 
[email protected] <[email protected]>; FREEMAN, BRIAN D 
<[email protected]>
Cc: JOMY JOSE <[email protected]>
Subject: RE: [onap-discuss] [El-Alto][vCPE]- APPC not reading DMAAP messages 
"closed loop" event in vCPE use case


HI,



You could try this script to see if the connectivity between dmaap router and 
APPC is working or no..





curl -X POST -v -H "Content-Type: application/json" -d @./scaleout.json 
http://<k8s-ip>:30227/events/APPC-LCM-READ<http://%3ck8s-ip%3e:30227/events/APPC-LCM-READ>

curl -v http://<k8s-ip>:30227/topics<http://%3ck8s-ip%3e:30227/topics>



scaleout.json

{

        "version": "2.00",

        "rpc-name": "config-scale-out",

        "correlation-id": "a20e2073-30b1-4357-893b-f5ed57b66ef0-10",

        "type": "request",

        "body": {

                "input": {

                        "common-header": {

                                "timestamp": "2020-02-25T19:27:30.44Z",

                                "api-ver": "2.00",

                                "originator-id": "SDNGP",

                                "request-id": "ScaleOut_RB3_16th May_TC3",

                                "sub-request-id": "ScaleOut_RB3_16th May_TC3",

                                "flags": {

                                        "force": "TRUE",

                                        "ttl": 60000

                                }

                        },

                        "action": "ConfigScaleOut",

                        "action-identifiers": {

                                "vnf-id": "APPC-test-vLB"

                        },

                        "payload": 
"{\"request-parameters\":{\"vnf-host-ip-address\":\"10.12.6.195\",\"vf-module-id\":
 \"zdfw1lb01lb01\",\"controller-template-id\": 
\"vLB\"},\"configuration-parameters\":{\"ip-addr\":\"192.168.10.212\", 
\"oam-ip-addr\":\"10.0.150.4\",\"enabled\":\"true\"}}"

                }

        }

}



Also AAF client cert will be expired in next month for El Alto release. I 
suggest to add this patch: 
https://gerrit.onap.org/r/c/oom/+/104787<https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgerrit.onap.org%2Fr%2Fc%2Foom%2F%2B%2F104787&data=02%7C01%7CDevangam.Manjunatha%40Ltts.com%7Cea9fe0f20ca5495d9cea08d7f5ae743e%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637248001943731704&sdata=bZcSfBwT%2BI2au0P90DsyQsvtsYXFByg61V1EoD1mEIQ%3D&reserved=0>



Taka



From: Devangam Manjunatha <[email protected]>
Sent: Monday, May 11, 2020 6:24 AM
To: CHO, TAKAMUNE <[email protected]>; [email protected]; FREEMAN, BRIAN 
D <[email protected]>
Cc: JOMY JOSE <[email protected]>
Subject: [onap-discuss] [El-Alto][vCPE]- APPC not reading DMAAP messages 
"closed loop" event in vCPE use case



Hi Taka,



I got your contact in ONAP portal for APPC component. We have following issue 
in APPC component.



In ONAP Elalto release we deployed vCPE use case. As part of closed loop 
testing, when we trigger the closed loop event, Policy triggering "restart" 
action to APPC via DMAAP, But in APPC's Karaf.log nothing updating / APPC not 
taking any action on closed loop request.



Please find the below "network.log" from Policy component.



Policy network.log:



[2020-05-11T08:23:17.577+00:00|Session 
org.onap.policy.drools-applications.controlloop.common:controller-usecases:1.5.3:usecases][OUT|DMAAP|POLICY-CL-MGT]

{

  "AAI": {

    "generic-vnf.resource-version": "1589043762743",

    "generic-vnf.prov-status": "ACTIVE",

    "generic-vnf.orchestration-status": "Active",

    "generic-vnf.is-closed-loop-disabled": "false",

    "generic-vnf.service-id": "f9457e8c-4afd-45da-9389-46acd9bf5116",

    "generic-vnf.in-maint": "false",

    "generic-vnf.vnf-name": "vcpe_vnf_vcpe_vgmux_202005092007",

    "generic-vnf.model-version-id": "1e6cc29b-c16d-41cc-8508-decadf278bbd",

    "generic-vnf.model-customization-id": 
"2f635775-527e-4d0e-ae0e-2039f769f77d",

    "generic-vnf.vnf-type": "demoVCPEvGMUX/vCPE_vgmux 5b9af3eb-1808 0",

    "generic-vnf.model-invariant-id": "cc2959fc-a753-4ce5-87a8-bf6cab04f345",

    "generic-vnf.vnf-id": "9c04c768-9284-43a2-9e2b-1a22966bc8ad"

  },

  "closedLoopAlarmStart": 1589090598779787,

  "closedLoopControlName": 
"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",

  "version": "1.0.2",

  "requestId": "ba1803dd-3550-4580-94c5-df567273a8e0",

  "closedLoopEventClient": "DCAE_INSTANCE_ID.dcae-tca",

  "targetType": "VNF",

  "target": "generic-vnf.vnf-name",

  "from": "policy:usecases",

  "policyScope": "onap.policies.controlloop.Operational:1.0.0",

  "policyName": 
"operational.vcpe.EVENT.MANAGER.OPERATION.LOCKED.GUARD_PERMITTED",

  "policyVersion": "1.0.0",

  "notification": "OPERATION",

  "message": "actor=APPC,operation=Restart,target=Target [type=VM, 
resourceId=null],subRequestId=1",

  "notificationTime": "2020-05-11 08:23:17.576000+00:00",

  "history": []

}

[2020-05-11T08:23:17.578+00:00|Session 
org.onap.policy.drools-applications.controlloop.common:controller-usecases:1.5.3:usecases][OUT|DMAAP|APPC-LCM-READ]

{

  "body": {

    "input": {

      "common-header": {

        "timestamp": "2020-05-11T08:23:17.576Z",

        "api-ver": "2.00",

        "originator-id": "ba1803dd-3550-4580-94c5-df567273a8e0",

        "request-id": "ba1803dd-3550-4580-94c5-df567273a8e0",

        "sub-request-id": "1",

        "flags": {}

      },

      "action": "Restart",

      "action-identifiers": {

        "vnf-id": "9c04c768-9284-43a2-9e2b-1a22966bc8ad"

      }

    }

  },

  "version": "2.0",

  "rpc-name": "restart",

  "correlation-id": "ba1803dd-3550-4580-94c5-df567273a8e0-1",

  "type": "request"

}

[2020-05-11T08:23:18.640+00:00|qtp1569754439-35]10.42.3.9 - 
[email protected]<mailto:[email protected]> [11/May/2020:08:23:18 
+0000] "GET /healthcheck HTTP/1.1" 200 102

[2020-05-11T08:23:19.148+00:00|DMAAP-source-APPC-LCM-WRITE][IN|DMAAP|APPC-LCM-WRITE]

{"body":{"output":{"common-header":{"timestamp":"2020-05-11T08:23:17.576Z","originator-id":"ba1803dd-3550-4580-94c5-df567273a8e0","request-id":"ba1803dd-3550-4580-94c5-df567273a8e0","sub-request-id":"1","flags":{},"api-ver":"2.00"},"status":{"message":"ACCEPTED
 - request 
accepted","code":100}}},"cambria.partition":"MSO","correlation-id":"ba1803dd-3550-4580-94c5-df567273a8e0-1","rpc-name":"restart","type":"response","version":"2.0"}





With the above message, it is clear that Policy triggering "Restart" request to 
APPC component via DMAAP. Please find the DMAAP log below.





DMAAP log:



2020-05-11 08:23:17,502|||qtp89387388-4828437||||INFO||||||| inside servlet 
filter Cambria Auth Headers checking before doing other Authentication

2020-05-11 08:23:17,503|||qtp89387388-4828437||||INFO||||||| Publishing message 
to topic POLICY-CL-MGT

2020-05-11 08:23:17,508|||qtp89387388-4828437||||INFO||||||| Published 2 msgs 
in 3 ms for topic POLICY-CL-MGT from server 10.42.2.21

2020-05-11 08:23:17,508|||qtp89387388-4828437||||INFO||||||| Overall Response 
time - Published  msgs in 5 ms for topic POLICY-CL-MGT

2020-05-11 08:23:17,622|||qtp89387388-4826421||||INFO||||||| inside servlet 
filter Cambria Auth Headers checking before doing other Authentication

2020-05-11 08:23:17,623|||qtp89387388-4826421||||INFO||||||| Publishing message 
to topic POLICY-CL-MGT

2020-05-11 08:23:17,624|||qtp89387388-4826421||||INFO||||||| Published 2 msgs 
in 0 ms for topic POLICY-CL-MGT from server 10.42.2.21

2020-05-11 08:23:17,624|||qtp89387388-4826421||||INFO||||||| Overall Response 
time - Published  msgs in 1 ms for topic POLICY-CL-MGT

2020-05-11 08:23:17,632|||qtp89387388-4828437||||INFO||||||| inside servlet 
filter Cambria Auth Headers checking before doing other Authentication

2020-05-11 08:23:17,632|||qtp89387388-4828437||||INFO||||||| Publishing message 
to topic APPC-LCM-READ

2020-05-11 08:23:17,636|||qtp89387388-4828437||||INFO||||||| Published 1 msgs 
in 2 ms for topic APPC-LCM-READ from server 10.42.2.21

2020-05-11 08:23:17,636|||qtp89387388-4828437||||INFO||||||| Overall Response 
time - Published  msgs in 4 ms for topic APPC-LCM-READ



>From the above it is clear that Messages are publishing in "APPC-LCM-READ" 
>topic. But APPC component not receiving messages. Please find the below APPC 
>"karaf.log".



APPC Karaf.log:



2020-05-11T08:23:03,564 | INFO  | Appc-Listener-2  | HttpDmaapConsumerImpl      
      | 444 - appc-common-bundle - 1.6.4 | GET 
http://message-router.onap:3904/events/APPC-CL/appcDemoEventListener/185?timeout=60000&limit=1000<https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttp-3A__message-2Drouter.onap-3A3904_events_APPC-2DCL_appcDemoEventListener_185-3Ftimeout-3D60000-26limit-3D1000%26d%3DDwQFAw%26c%3DLFYZ-o9_HUMeMTSQicvjIg%26r%3D2SpRaOlaUglzr4dgoYaSsJQHU3X5g6PDPy8-4kdLndM%26m%3DOTTzNdNWsO5LdTFFY59csFg4mAZ0AZXY_tXed_xCwlU%26s%3DFsArvgvUU7IBhi3HCyELRnN2I9sie0vUmxjJV615sHw%26e%3D&data=02%7C01%7CDevangam.Manjunatha%40Ltts.com%7Cea9fe0f20ca5495d9cea08d7f5ae743e%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637248001943731704&sdata=gBVh8lkq0YIOZxexlCxEywicHqG2F4ipRbu9ffPEU8U%3D&reserved=0>

2020-05-11T08:23:03,574 | 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://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttp-3A__onap.readthedocs.io-2522-2C-2522message-2522-3A-2522No%26d%3DDwQFAw%26c%3DLFYZ-o9_HUMeMTSQicvjIg%26r%3D2SpRaOlaUglzr4dgoYaSsJQHU3X5g6PDPy8-4kdLndM%26m%3DOTTzNdNWsO5LdTFFY59csFg4mAZ0AZXY_tXed_xCwlU%26s%3DvMabuCjHwe1_V7ZPQd46CUyBra2Nls-0fLloaB1CsH8%26e%3D&data=02%7C01%7CDevangam.Manjunatha%40Ltts.com%7Cea9fe0f20ca5495d9cea08d7f5ae743e%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637248001943741689&sdata=O44mbLIlolOtZfScCj3y71z5NwA8DDCvO2cKUNDoikA%3D&reserved=0>
 such topic exists.-[APPC-CL]","status":404}

2020-05-11T08:23:03,574 | INFO  | Appc-Listener-2  | HttpDmaapConsumerImpl      
      | 444 - appc-common-bundle - 1.6.4 | Sleeping for 60s after failed request

2020-05-11T08:23:11,530 | INFO  | sshd-SshServer[46dcd05c]-nio2-thread-2 | 
ServerUserAuthService            | 143 - org.apache.sshd.core - 1.6.0 | Session 
karaf@/127.0.0.1:48880<mailto:karaf@/127.0.0.1:48880> authenticated

2020-05-11T08:23:13,001 | INFO  | sshd-SshServer[46dcd05c]-nio2-thread-2 | 
ServerUserAuthService            | 143 - org.apache.sshd.core - 1.6.0 | Session 
karaf@/127.0.0.1:48894<mailto:karaf@/127.0.0.1:48894> authenticated

2020-05-11T08:23:35,817 | INFO  | Appc-Listener-1  | HttpDmaapConsumerImpl      
      | 444 - appc-common-bundle - 1.6.4 | Got 0 messages from DMaaP

2020-05-11T08:23:35,818 | INFO  | Appc-Listener-1  | EventHandlerImpl           
      | 444 - appc-common-bundle - 1.6.4 | Read 0 messages from APPC-LCM-READ 
as APPC-EVENT-LISTENER-TEST/593.

2020-05-11T08:23:35,818 | INFO  | Appc-Listener-1  | EventHandlerImpl           
      | 444 - appc-common-bundle - 1.6.4 | Getting up to 10 incoming events

2020-05-11T08:23:35,818 | 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/593?timeout=60000&limit=10<https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttp-3A__message-2Drouter.onap-3A3904_events_APPC-2DLCM-2DREAD_APPC-2DEVENT-2DLISTENER-2DTEST_593-3Ftimeout-3D60000-26limit-3D10%26d%3DDwQFAw%26c%3DLFYZ-o9_HUMeMTSQicvjIg%26r%3D2SpRaOlaUglzr4dgoYaSsJQHU3X5g6PDPy8-4kdLndM%26m%3DOTTzNdNWsO5LdTFFY59csFg4mAZ0AZXY_tXed_xCwlU%26s%3D48MyEWy-conN0fer1MXaT8EXx5z8dEfh86Lr9A52KjQ%26e%3D&data=02%7C01%7CDevangam.Manjunatha%40Ltts.com%7Cea9fe0f20ca5495d9cea08d7f5ae743e%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637248001943751685&sdata=xwALhqn7BIPRSw01%2Fn%2BYveDFknx1%2FyZ2BVjxOpMJuC8%3D&reserved=0>

2020-05-11T08:24:03,574 | INFO  | Appc-Listener-2  | EventHandlerImpl           
      | 444 - appc-common-bundle - 1.6.4 | Read 0 messages from APPC-CL as 
appcDemoEventListener/185.

2020-05-11T08:24:03,575 | INFO  | Appc-Listener-2  | EventHandlerImpl           
      | 444 - appc-common-bundle - 1.6.4 | Getting up to 1000 incoming events





Request to let us know why APPC not receiving Closed loop restart request. Are 
we missing anything ? Are we on right track ?



Please let know how to fix this issue.



For more details please find the attached log from VES collector, Policy, Dmaap 
& APPC components, Also RegionOne details & Event which is triggered.







Regards,

Manjunath.

















L&T Technology Services Ltd

www.LTTS.com<https://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttp-3A__www.LTTS.com%26d%3DDwQFAw%26c%3DLFYZ-o9_HUMeMTSQicvjIg%26r%3D2SpRaOlaUglzr4dgoYaSsJQHU3X5g6PDPy8-4kdLndM%26m%3DOTTzNdNWsO5LdTFFY59csFg4mAZ0AZXY_tXed_xCwlU%26s%3DEpWPgmBfVeCBPYofZ3zDOby6OuJQiFtZ5daaYCrLZEY%26e%3D&data=02%7C01%7CDevangam.Manjunatha%40Ltts.com%7Cea9fe0f20ca5495d9cea08d7f5ae743e%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637248001943751685&sdata=ZtA0HXTqkSpXZU7Lx6tfBxzEZtH5NxvFmi1ZdwkC1f8%3D&reserved=0>

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://ind01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttp-3A__www.Ltts.com%26d%3DDwQFAw%26c%3DLFYZ-o9_HUMeMTSQicvjIg%26r%3D2SpRaOlaUglzr4dgoYaSsJQHU3X5g6PDPy8-4kdLndM%26m%3DOTTzNdNWsO5LdTFFY59csFg4mAZ0AZXY_tXed_xCwlU%26s%3DYD7TjJUNcryUHO2pbXsH_X8jh1GWtggJsmPMhg08CUI%26e%3D&data=02%7C01%7CDevangam.Manjunatha%40Ltts.com%7Cea9fe0f20ca5495d9cea08d7f5ae743e%7C311b33788e8a4b5ea33fe80a3d8ba60a%7C0%7C0%7C637248001943761688&sdata=w%2FTaHlntBuDEJKhQgK4Vlz2cCTRMtJbAnotznrqSasY%3D&reserved=0>.
 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.

L&T Technology Services Ltd

www.LTTS.com

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. 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 (#21014): https://lists.onap.org/g/onap-discuss/message/21014
Mute This Topic: https://lists.onap.org/mt/74132753/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to