TEST FOR PNF Registration flow without SO (AAI entry created manually) Integration SB04 Environment - 10/10/2018 1) AAI entry creation via AAI API with pnf name "PAIRWISE" on node port 30233 krzysztof_kuzmicki@pod-onap-01-vjhost:~$ curl -i -X PUT -k -H "accept: application/json" -H "Real-Time: true" -H "Content-Type: application/json" -H "X-FromAppId: dcae-curl" -H "x-transactionId: 9998" -d '{"pnf-name":"PAIRWISE","pnf-name2":"example-pnf-name2-val-78244","pnf-name2-source":"example-pnf-name2-source-val-99275","pnf-id":"example-pnf-id-val-7989","equip-type":"example-equip-type-val-20348","equip-vendor":"example-equip-vendor-val-52182","equip-model":"example-equip-model-val-8370","management-option":"example-management-option-val-72881", "ipaddress-v4-oam": "", "ipaddress-v6-oam": ""}' "https://AAI:AAI@10.12.5.63:30233/aai/v11/network/pnfs/pnf/PAIRWISE" HTTP/1.1 201 Created Date: Wed, 10 Oct 2018 11:16:54 GMT vertex-id: 323744 Content-Type: application/json X-AAI-TXID: 1-aai-resources-181010-11:16:54:076-69371 Content-Length: 0 Strict-Transport-Security: max-age=16000000; includeSubDomains; preload; krzysztof_kuzmicki@pod-onap-01-vjhost:~$ date Wed Oct 10 11:16:59 UTC 2018 2) AAI entry verification - ipaddress-v4-oam and ipaddress-v6-oam are empty krzysztof_kuzmicki@pod-onap-01-vjhost:~$ curl -i -X GET -k -H "accept: application/json" -H "Real-Time: true" -H "Content-Type: application/json" -H "X-FromAppId: dcae-curl" -H "x-transactionId: 9998" "https://AAI:AAI@10.12.5.63:30233/aai/v11/network/pnfs/pnf/PAIRWISE" HTTP/1.1 200 OK Date: Wed, 10 Oct 2018 11:18:38 GMT vertex-id: 323744 Content-Type: application/json X-AAI-TXID: 1-aai-resources-181010-11:18:38:836-60580 Content-Length: 447 Strict-Transport-Security: max-age=16000000; includeSubDomains; preload; {"pnf-name":"PAIRWISE","pnf-name2":"example-pnf-name2-val-78244","pnf-name2-source":"example-pnf-name2-source-val-99275","pnf-id":"example-pnf-id-val-7989","equip-type":"example-equip-type-val-20348","equip-vendor":"example-equip-vendor-val-52182","equip-model":"example-equip-model-val-8370","management-option":"example-management-option-val-72881","ipaddress-v4-oam":"","in-maint":false,"ipaddress-v6-oam":"","resource-version":"1539170214092"} krzysztof_kuzmicki@pod-onap-01-vjhost:~$ date Wed Oct 10 11:18:44 UTC 2018 krzysztof_kuzmicki@pod-onap-01-vjhost:~$ 3) MR topic verification - it doesn't exists because PNF registration has never happen krzysztof_kuzmicki@pod-onap-01-vjhost:~$ curl -i -X GET http://10.12.5.63:30227/events/unauthenticated.PNF_READY/2/1 HTTP/1.1 404 Not Found Date: Wed, 10 Oct 2018 11:20:01 GMT Content-Type: */*;charset=utf-8 Accept: */* breadcrumbId: ID-dev-dmaap-message-router-5cdf4cc6fd-58pvr-33056-1538674219972-0-91627190 User-Agent: curl/7.47.0 X-CSI-Internal-WriteableRequest: true Content-Length: 131 Server: Jetty(9.3.z-SNAPSHOT) {"mrstatus":3001,"helpURL":"http://onap.readthedocs.io","message":"No such topic exists.-[unauthenticated.PNF_READY]","status":404} krzysztof_kuzmicki@pod-onap-01-vjhost:~$ 4) Send data into the VES Collector on node port 30235 ( oamV4IpAddress is set to 13.13.13.13and oamV6IpAddress is set to 2001:0db8:0:0:0:0:1428:57ab) krzysztof_kuzmicki@pod-onap-01-vjhost:~$ curl -i -H "Content-type: application/json" -X POST -d '{"event": > {"commonEventHeader":{"startEpochMicrosec":1538407540940,"sourceId":"val13","eventId":"registration_38407540","nfcNamingCode":"oam","internalHeaderFields":{},"eventType":"pnfRegistration","priority":"Normal","version":"4.0.1","reportingEntityName":"NOK6061ZW3","sequence":0,"domain":"pnfRegistration","lastEpochMicrosec":1538407540940,"eventName":"pnfRegistration_Nokia_5gDu","vesEventListenerVersion":"7.0.1","sourceName":"PAIRWISE","nfNamingCode":"gNB"},"pnfRegistrationFields":{"unitType":"val8","serialNumber":"6061ZW3","pnfRegistrationFieldsVersion":"2.0","manufactureDate":"1538407540942","modelNumber":"val6","lastServiceDate":"1538407540942","unitFamily":"BBU","vendorName":"Nokia","oamV4IpAddress":"13.13.13.13","oamV6IpAddress":"2001:0db8:0:0:0:0:1428:57ab","softwareVersion":"val7"}}}' http://10.12.5.63:30235/eventListener/v7 HTTP/1.1 202 Content-Type: application/json Content-Length: 8 Date: Wed, 10 Oct 2018 11:21:11 GMT Acceptedkrzysztof_kuzmicki@pod-onap-01-vjhost:~$ date Wed Oct 10 11:21:16 UTC 2018 5) AAI entry verification - ipaddress-v4-oam and ipaddress-v6-oam are filled by PRH krzysztof_kuzmicki@pod-onap-01-vjcurl -i -X GET -k -H "accept: application/json" -H "Real-Time: true" -H "Content-Type: application/json" -H "X-FromAppId: dcae-curl" -H "x-transactionId: 9998" "https://AAI:AAI@10.12.5.63:30233/aai/v11/network/pnfs/pnf/PAIRWISE" HTTP/1.1 200 OK Date: Wed, 10 Oct 2018 11:23:13 GMT vertex-id: 323744 Content-Type: application/json X-AAI-TXID: 2-aai-resources-181010-11:23:13:613-32580 Content-Length: 485 Strict-Transport-Security: max-age=16000000; includeSubDomains; preload; {"pnf-name":"PAIRWISE","pnf-name2":"example-pnf-name2-val-78244","pnf-name2-source":"example-pnf-name2-source-val-99275","pnf-id":"example-pnf-id-val-7989","equip-type":"example-equip-type-val-20348","equip-vendor":"example-equip-vendor-val-52182","equip-model":"example-equip-model-val-8370","management-option":"example-management-option-val-72881","ipaddress-v4-oam":"13.13.13.13","in-maint":false,"ipaddress-v6-oam":"2001:0db8:0:0:0:0:1428:57ab","resource-version":"1539170583447"} 6) MR topic verification - topic has been created and contains all data from PNF registration event krzysztof_kuzmicki@pod-onap-01-vjhost:~$ curl -i -X GET http://10.12.5.63:30227/events/unauthenticated.PNF_READY/2/1 HTTP/1.1 200 OK Date: Wed, 10 Oct 2018 11:25:23 GMT Cache-Control: no-store, no-cache, must-revalidate Pragma: no-cache Expires: 0 Content-Type: application/json Accept: */* breadcrumbId: ID-dev-dmaap-message-router-5cdf4cc6fd-58pvr-33056-1538674219972-0-91628921 User-Agent: curl/7.47.0 X-CSI-Internal-WriteableRequest: true Content-Length: 126 Server: Jetty(9.3.z-SNAPSHOT) ["{\"ipaddress-v4-oam\":\"13.13.13.13\",\"ipaddress-v6-oam\":\"2001:0db8:0:0:0:0:1428:57ab\",\"correlationId\":\"PAIRWISE\"}"] 6) VES logs [2018-10-10 11:21:11,608][INFO ][pool-3-thread-6][org.onap.dcae.commonFunction.EventProcessor] - QueueSize:0 EventProcessor Removing element: {"VESversion":"v7","VESuniqueId":"b24083b7-9e26-4121-beb3-cb91e8a98587","event":{"commonEventHeader":{"startEpochMicrosec":1538407540940,"sourceId":"val13","eventId":"registration_38407540","nfcNamingCode":"oam","internalHeaderFields":{},"eventType":"pnfRegistration","priority":"Normal","version":"4.0.1","reportingEntityName":"NOK6061ZW3","sequence":0,"domain":"pnfRegistration","lastEpochMicrosec":1538407540940,"eventName":"pnfRegistration_Nokia_5gDu","vesEventListenerVersion":"7.0.1","sourceName":"PAIRWISE","nfNamingCode":"gNB"},"pnfRegistrationFields":{"unitType":"val8","serialNumber":"6061ZW3","pnfRegistrationFieldsVersion":"2.0","manufactureDate":"1538407540942","modelNumber":"val6","lastServiceDate":"1538407540942","unitFamily":"BBU","vendorName":"Nokia","oamV4IpAddress":"13.13.13.13","oamV6IpAddress":"2001:0db8:0:0:0:0:1428:57ab","softwareVersion":"val7"}}} [2018-10-10 11:21:11,612][INFO ][pool-3-thread-6][org.onap.dcae.commonFunction.EventProcessor] - Invoking publisher for streamId:ves-pnfRegistration [2018-10-10 11:21:11,617][INFO ][pool-3-thread-6][org.onap.dcae.commonFunction.event.publishing.DMaaPEventPublisher] - Event: '{"event":{"commonEventHeader":{"startEpochMicrosec":1538407540940,"sourceId":"val13","eventId":"registration_38407540","nfcNamingCode":"oam","internalHeaderFields":{"collectorTimeStamp":"Wed, 10 10 2018 11:21:11 UTC"},"eventType":"pnfRegistration","priority":"Normal","version":"4.0.1","reportingEntityName":"NOK6061ZW3","sequence":0,"domain":"pnfRegistration","lastEpochMicrosec":1538407540940,"eventName":"pnfRegistration_Nokia_5gDu","vesEventListenerVersion":"7.0.1","sourceName":"PAIRWISE","nfNamingCode":"gNB"},"pnfRegistrationFields":{"unitType":"val8","serialNumber":"6061ZW3","pnfRegistrationFieldsVersion":"2.0","manufactureDate":"1538407540942","modelNumber":"val6","lastServiceDate":"1538407540942","unitFamily":"BBU","vendorName":"Nokia","oamV4IpAddress":"13.13.13.13","oamV6IpAddress":"2001:0db8:0:0:0:0:1428:57ab","softwareVersion":"val7"}}}' scheduled to be send asynchronously on domain: 'ves-pnfRegistration' [2018-10-10 11:21:11,617][INFO ][pool-3-thread-6][org.onap.dcae.commonFunction.output] - Event: '{"event":{"commonEventHeader":{"startEpochMicrosec":1538407540940,"sourceId":"val13","eventId":"registration_38407540","nfcNamingCode":"oam","internalHeaderFields":{"collectorTimeStamp":"Wed, 10 10 2018 11:21:11 UTC"},"eventType":"pnfRegistration","priority":"Normal","version":"4.0.1","reportingEntityName":"NOK6061ZW3","sequence":0,"domain":"pnfRegistration","lastEpochMicrosec":1538407540940,"eventName":"pnfRegistration_Nokia_5gDu","vesEventListenerVersion":"7.0.1","sourceName":"PAIRWISE","nfNamingCode":"gNB"},"pnfRegistrationFields":{"unitType":"val8","serialNumber":"6061ZW3","pnfRegistrationFieldsVersion":"2.0","manufactureDate":"1538407540942","modelNumber":"val6","lastServiceDate":"1538407540942","unitFamily":"BBU","vendorName":"Nokia","oamV4IpAddress":"13.13.13.13","oamV6IpAddress":"2001:0db8:0:0:0:0:1428:57ab","softwareVersion":"val7"}}}' scheduled to be send asynchronously on domain: 'ves-pnfRegistration' [2018-10-10 11:21:11,719][INFO ][pool-6-thread-1][com.att.nsa.cambria.client.impl.CambriaSimplerBatchPublisher] - sending 1 msgs to /events/unauthenticated.VES_PNFREG_OUTPUT. Oldest: 102 ms [2018-10-10 11:21:11,735][INFO ][pool-6-thread-1][com.att.nsa.apiClient.http.HttpClient] - POST http://message-router:3904/events/unauthenticated.VES_PNFREG_OUTPUT (anonymous) ... [2018-10-10 11:21:11,915][INFO ][pool-6-thread-1][com.att.nsa.apiClient.http.HttpClient] - --> HTTP/1.1 200 OK 7) PRH logs 548-a0e5-4e72-b443-4ea0643b2528 | |INVOKE |pool-2-thread-1 | org.onap.dcaegen2.services.prh.service.DMaaPReactiveWebClient |2018-10-10T11:58:02.670Z |INFO |Request: GET http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_PNFREG_OUTPUT/OpenDCAE-c12/c12 |InvocationID=9f7a642c-1bf3-4703-8f80-665f41e5e265, InstanceUUID=42a89548-a0e5-4e72-b443-4ea0643b2528, RequestID=SampleRequestID, ServiceName=http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_PNFREG_OUTPUT/OpenDCAE-c12/c12 | | |pool-2-thread-1 | org.onap.dcaegen2.services.prh.service.DMaaPReactiveWebClient |2018-10-10T11:58:02.670Z |INFO |X-ONAP-RequestID=SampleRequestID |InvocationID=9f7a642c-1bf3-4703-8f80-665f41e5e265, InstanceUUID=42a89548-a0e5-4e72-b443-4ea0643b2528, RequestID=SampleRequestID, ServiceName=http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_PNFREG_OUTPUT/OpenDCAE-c12/c12 | | |pool-2-thread-1 | org.onap.dcaegen2.services.prh.service.DMaaPReactiveWebClient |2018-10-10T11:58:02.670Z |INFO |X-InvocationID=07d5351e-cef3-447e-815b-90eda242b756 |InvocationID=9f7a642c-1bf3-4703-8f80-665f41e5e265, InstanceUUID=42a89548-a0e5-4e72-b443-4ea0643b2528, RequestID=SampleRequestID, ServiceName=http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_PNFREG_OUTPUT/OpenDCAE-c12/c12 | | |pool-2-thread-1 | org.onap.dcaegen2.services.prh.service.DMaaPReactiveWebClient |2018-10-10T11:58:02.670Z |INFO |Content-Type=application/json |InvocationID=9f7a642c-1bf3-4703-8f80-665f41e5e265, InstanceUUID=42a89548-a0e5-4e72-b443-4ea0643b2528, RequestID=SampleRequestID, ServiceName=http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_PNFREG_OUTPUT/OpenDCAE-c12/c12 | | |pool-2-thread-1 | org.onap.dcaegen2.services.prh.service.DMaaPReactiveWebClient |2018-10-10T11:58:10.748Z |INFO |Response Status 200 |ResponseCode=200 | | |reactor-http-client-epoll-17 | org.onap.dcaegen2.services.prh.tasks.AaiProducerTaskImpl |2018-10-10T11:58:10.755Z |INFO |Publish to AAI DmaapModel | | | |reactor-http-client-epoll-17 | org.onap.dcaegen2.services.prh.service.AaiReactiveWebClient |2018-10-10T11:58:10.757Z |INFO |Request: PATCH https://aai.onap.svc.cluster.local:8443/aai/v12/network/pnfs/pnf/PAIRWISE |ServiceName=https://aai.onap.svc.cluster.local:8443/aai/v12/network/pnfs/pnf/PAIRWISE | | |reactor-http-client-epoll-17 | org.onap.dcaegen2.services.prh.service.AaiReactiveWebClient |2018-10-10T11:58:10.757Z |INFO |X-ONAP-RequestID=null |ServiceName=https://aai.onap.svc.cluster.local:8443/aai/v12/network/pnfs/pnf/PAIRWISE | | |reactor-http-client-epoll-17 | org.onap.dcaegen2.services.prh.service.AaiReactiveWebClient |2018-10-10T11:58:10.757Z |INFO |X-InvocationID=2220b30b-f704-484d-b702-935fb6e90d36 |ServiceName=https://aai.onap.svc.cluster.local:8443/aai/v12/network/pnfs/pnf/PAIRWISE | | |reactor-http-client-epoll-17 | org.onap.dcaegen2.services.prh.service.AaiReactiveWebClient |2018-10-10T11:58:10.757Z |INFO |X-FromAppId=prh |ServiceName=https://aai.onap.svc.cluster.local:8443/aai/v12/network/pnfs/pnf/PAIRWISE | | |reactor-http-client-epoll-17 | org.onap.dcaegen2.services.prh.service.AaiReactiveWebClient |2018-10-10T11:58:10.757Z |INFO |X-TransactionId=9999 |ServiceName=https://aai.onap.svc.cluster.local:8443/aai/v12/network/pnfs/pnf/PAIRWISE | | |reactor-http-client-epoll-17 | org.onap.dcaegen2.services.prh.service.AaiReactiveWebClient |2018-10-10T11:58:10.757Z |INFO |Accept=application/json |ServiceName=https://aai.onap.svc.cluster.local:8443/aai/v12/network/pnfs/pnf/PAIRWISE | | |reactor-http-client-epoll-17 | org.onap.dcaegen2.services.prh.service.AaiReactiveWebClient |2018-10-10T11:58:10.757Z |INFO |Real-Time=true |ServiceName=https://aai.onap.svc.cluster.local:8443/aai/v12/network/pnfs/pnf/PAIRWISE | | |reactor-http-client-epoll-17 | org.onap.dcaegen2.services.prh.service.AaiReactiveWebClient |2018-10-10T11:58:10.757Z |INFO |Content-Type=application/merge-patch+json |ServiceName=https://aai.onap.svc.cluster.local:8443/aai/v12/network/pnfs/pnf/PAIRWISE | | |reactor-http-client-epoll-17 | org.onap.dcaegen2.services.prh.service.AaiReactiveWebClient |2018-10-10T11:58:10.757Z |INFO |Authorization=Basic QUFJOkFBSQ== |ServiceName=https://aai.onap.svc.cluster.local:8443/aai/v12/network/pnfs/pnf/PAIRWISE | | |reactor-http-client-epoll-17 | org.onap.dcaegen2.services.prh.service.AaiReactiveWebClient |2018-10-10T11:58:10.914Z |INFO |Response Status 200 |ResponseCode=200 | | |reactor-http-nio-5 | org.onap.dcaegen2.services.prh.tasks.DmaapPublisherTaskImpl |2018-10-10T11:58:10.916Z |INFO |Method called with arg ConsumerDmaapModel{correlationId=PAIRWISE, ipv4=13.13.13.13, ipv6=2001:0db8:0:0:0:0:1428:57ab} | | | |reactor-http-nio-5 | org.onap.dcaegen2.services.prh.tasks.ScheduledTasks |2018-10-10T11:58:10.931Z |INFO |Prh consumed tasks successfully. HTTP Response code from DMaaPProducer 200 |ResponseCode=200 | | |reactor-http-nio-5 | org.onap.dcaegen2.services.prh.tasks.ScheduledTasks |2018-10-10T11:58:10.931Z |INFO |PRH tasks have been completed | | | |reactor-http-nio-5 |