Hi Harish, Jimmy,
Thanks for your support! Now we are able to get the AAI published data from
DMaaP.
[Inline image 1]
Thanks,
Ramu N
________________________________
***************************************************************************************
This e-mail and attachments contain confidential information from
HUAWEI, which is intended only for the person or entity whose address is listed
above. Any use of the information contained herein in any way (including, but
not limited to, total or partial disclosure, reproduction, or dissemination) by
persons other than the intended recipient's) is prohibited. If you receive this
e-mail in error, please notify the sender by phone or email immediately and
delete it!
From: FORSYTH, JAMES [mailto:[email protected]]
Sent: Wednesday, January 03, 2018 7:28 PM
To: Ramu n; KAJUR, HARISH V
Cc: Shashikanth vh; [email protected]
Subject: RE: [onap-discuss] [AAI] Does AAI support publish data using DMaaP
Hi, Ramu,
Try adding similar /etc/hosts entries for
mr.api.simpledemo.onap.org<https://urldefense.proofpoint.com/v2/url?u=http-3A__mr.api.simpledemo.onap.org&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=Oej6QUk5p2KdqNEWySpOHA&m=uiVoYvodkYCGQX1Rm9Sc20sxSMPhJeW04QnIr2F6ZaA&s=no9OnFSF6nL9kIpOhlwY9_BIWaIkZcLhidIc1F6L6j8&e=>
in addition to the ones you have openecomp.org.
Thanks,
jimmy
From: Ramu n [mailto:[email protected]]
Sent: Wednesday, January 03, 2018 8:52 AM
To: KAJUR, HARISH V <[email protected]<mailto:[email protected]>>; FORSYTH, JAMES
<[email protected]<mailto:[email protected]>>
Cc: Shashikanth vh <[email protected]<mailto:[email protected]>>
Subject: RE: [onap-discuss] [AAI] Does AAI support publish data using DMaaP
Hi Harish,
Initially aai host & aai-resource container was not able to ping
mr.api.simpledemo.openecomp.org..
After adding to dmaap host name & ip-adress mapping in /etc/hosts file manually
in both host and docker container, ping mr.api.simpledemo.openecomp.org is
success..
But still aai publish event to "AAI-EVENT" topic was failing with below error..
2018-01-03T13:19:36.766+0000|2018-01-03T13:19:36.766+0000|4e3f3761-ac54-4d7a-80fd-930a2981e46f||org.springframework.jms.listener.DefaultMessageListenerContainer#0-1|||postman|||||ERROR|||0|||org.onap.aai.dmaap.AAIDmaapEventJMSConsumer|||||||co=:AAI_7350
Error sending message to dmaap.
{"fromAppId":"postman","event-topic":"AAI-EVENT","transId":"4e3f3761-ac54-4d7a-80fd-930a2981e46f","aaiEventPayload":{"cambria.partition":"AAI","event-header":{"severity":"NORMAL","entity-type":"pnf","top-entity-type":"pnf","entity-link":"/aai/v11/network/pnfs/pnf/a8098c1a-f86e-11da-bd1a-00112444be1d","event-type":"AAI-EVENT","domain":"dev","action":"CREATE","sequence-number":"0","id":"4e3f3761-ac54-4d7a-80fd-930a2981e46f","source-name":"postman","version":"v11","timestamp":"20180103-13:19:36:713"},"entity":{"ipaddress-v4-oam":"example-ipaddress-v4-oam-val-14106","nf-role":"example-nf-role-val-75080","pnf-name2-source":"example-pnf-name2-source-val-93829","equip-type":"example-equip-type-val-54408","ipaddress-v6-loopback-0":"example-ipaddress-v6-loopback0-val-64041","equip-vendor":"example-equip-vendor-val-79687","serial-number":"example-serial-number-val-54000","ipaddress-v6-oam":"example-ipaddress-v6-oam-val-82953","frame-id":"example-frame-id-val-21069","prov-status":"example-prov-status-val-35250","ipaddress-v4-loopback-0":"example-ipaddress-v4-loopback0-val-57218","ipaddress-v6-aim":"example-ipaddress-v6-aim-val-89025","pnf-name2":"pe4_id","equip-model":"example-equip-model-val-44828","in-maint":true,"inv-status":"example-inv-status-val-1920","resource-version":"1514985576618","sw-version":"example-sw-version-val-80071","ipaddress-v4-aim":"192.168.1.1","pnf-id":"example-pnf-id-val-32823","management-option":"example-management-option-val-84964","pnf-name":"a8098c1a-f86e-11da-bd1a-00112444be1d"}},"fullId":""}
com.sun.jersey.api.client.ClientHandlerException:
java.net.UnknownHostException:
mr.api.simpledemo.onap.org<https://urldefense.proofpoint.com/v2/url?u=http-3A__mr.api.simpledemo.onap.org&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=Oej6QUk5p2KdqNEWySpOHA&m=uiVoYvodkYCGQX1Rm9Sc20sxSMPhJeW04QnIr2F6ZaA&s=no9OnFSF6nL9kIpOhlwY9_BIWaIkZcLhidIc1F6L6j8&e=>
at
com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:155)
at com.sun.jersey.api.client.Client.handle(Client.java:652)
at
com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)
at
com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
at
com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:570)
at
org.onap.aai.dmaap.AAIDmaapEventJMSConsumer.sentWithHttp(AAIDmaapEventJMSConsumer.java:136)
at
org.onap.aai.dmaap.AAIDmaapEventJMSConsumer.onMessage(AAIDmaapEventJMSConsumer.java:109)
at
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:699)
at
org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:637)
at
org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:605)
at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:308)
at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:246)
at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1144)
at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1136)
at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:1033)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.UnknownHostException:
mr.api.simpledemo.onap.org<https://urldefense.proofpoint.com/v2/url?u=http-3A__mr.api.simpledemo.onap.org&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=Oej6QUk5p2KdqNEWySpOHA&m=uiVoYvodkYCGQX1Rm9Sc20sxSMPhJeW04QnIr2F6ZaA&s=no9OnFSF6nL9kIpOhlwY9_BIWaIkZcLhidIc1F6L6j8&e=>
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:357)
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1202)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:966)
at
sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1316)
at
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1291)
at
com.sun.jersey.client.urlconnection.URLConnectionClientHandler$1$1.getOutputStream(URLConnectionClientHandler.java:238)
at
com.sun.jersey.api.client.CommittingOutputStream.commitStream(CommittingOutputStream.java:117)
at
com.sun.jersey.api.client.CommittingOutputStream.write(CommittingOutputStream.java:89)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
at
sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
at java.io.BufferedWriter.flush(BufferedWriter.java:254)
at
com.sun.jersey.core.util.ReaderWriter.writeToAsString(ReaderWriter.java:191)
at
com.sun.jersey.core.provider.AbstractMessageReaderWriterProvider.writeToAsString(AbstractMessageReaderWriterProvider.java:128)
at
com.sun.jersey.core.impl.provider.entity.StringProvider.writeTo(StringProvider.java:88)
at
com.sun.jersey.core.impl.provider.entity.StringProvider.writeTo(StringProvider.java:58)
at
com.sun.jersey.api.client.RequestWriter.writeRequestEntity(RequestWriter.java:300)
at
com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:217)
at
com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:153)
... 15 common frames omitted
________________________________
***************************************************************************************
This e-mail and attachments contain confidential information from
HUAWEI, which is intended only for the person or entity whose address is listed
above. Any use of the information contained herein in any way (including, but
not limited to, total or partial disclosure, reproduction, or dissemination) by
persons other than the intended recipient's) is prohibited. If you receive this
e-mail in error, please notify the sender by phone or email immediately and
delete it!
From: KAJUR, HARISH V [mailto:[email protected]]
Sent: Friday, December 22, 2017 9:43 PM
To: Ramu n; FORSYTH, JAMES
Cc: Shashikanth vh
Subject: RE: [onap-discuss] [AAI] Does AAI support publish data using DMaaP
Hi Ramu,
Is the dns configured correctly, can you verify from both the host and docker
container that you can reach this hostname by running this command?
ping mr.api.simpledemo.openecomp.org
The AAI application is configured to send the dmaap messages to this hostname.
Also, can you please provide me with the dmaap logs.
They are located on the host machine here:
/opt/aai/logroot/AAI-RESOURCES/dmaapAAIEventConsumer/
Thanks,
Harish
From: Ramu n [mailto:[email protected]]
Sent: Friday, December 22, 2017 10:56 AM
To: KAJUR, HARISH V <[email protected]<mailto:[email protected]>>; FORSYTH, JAMES
<[email protected]<mailto:[email protected]>>
Cc: Shashikanth vh <[email protected]<mailto:[email protected]>>
Subject: RE: [onap-discuss] [AAI] Does AAI support publish data using DMaaP
Hi Harish,
I have sent below PUT request to AAI, even after this "AAI-EVENT" topic is not
created.
[Inline image 1]
I get below error when query "AAI-EVENT" topic
GET
http://192.168.17.4:3904/events/AAI-EVENT/T/T2<https://urldefense.proofpoint.com/v2/url?u=http-3A__192.168.17.4-3A3904_events_AAI-2DEVENT_T_T2&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=f44eG3iZaja2ozEA2yRZnQ&m=YpVHEfulRvOhkfUb6v1HRutE6V7YaWKrBvXYhSL6vio&s=ENB48wSDeFoKo79FCLwJa2l11AeaMnCqzouU8esEu20&e=>
{"mrstatus":3001,"helpURL":"https://wiki.web.att.com/display/DMAAP/DMaaP+Home","message":"No
such topic exists.-[AAI-EVENT]","status":404}
Thanks,
Ramu N
________________________________
***************************************************************************************
This e-mail and attachments contain confidential information from
HUAWEI, which is intended only for the person or entity whose address is listed
above. Any use of the information contained herein in any way (including, but
not limited to, total or partial disclosure, reproduction, or dissemination) by
persons other than the intended recipient's) is prohibited. If you receive this
e-mail in error, please notify the sender by phone or email immediately and
delete it!
From: KAJUR, HARISH V [mailto:[email protected]]
Sent: Friday, December 22, 2017 8:29 PM
To: Ramu n; FORSYTH, JAMES
Cc: Shashikanth vh
Subject: RE: [onap-discuss] [AAI] Does AAI support publish data using DMaaP
Hi Ramu,
AAI-EVENT is an anonymous topic on dmaap so the first put request that you send
to AAI will trigger a subsequent request to dmaap which will trigger the
creation of the topic.
Thanks,
Harish
From: Ramu n [mailto:[email protected]]
Sent: Friday, December 22, 2017 7:46 AM
To: KAJUR, HARISH V <[email protected]<mailto:[email protected]>>; FORSYTH, JAMES
<[email protected]<mailto:[email protected]>>
Cc: Shashikanth vh <[email protected]<mailto:[email protected]>>
Subject: RE: [onap-discuss] [AAI] Does AAI support publish data using DMaaP
Hi Harish,
Thanks for the reply and sharing the DMaaP docs, but I couldn't find
"AAI-EVENT" topic in DMaaP.
let me know if I am missing any steps.
GET
http://DMAAP_HOSTNAME:3904/topics<https://urldefense.proofpoint.com/v2/url?u=http-3A__DMAAP-5FHOSTNAME-3A3904_topics&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=f44eG3iZaja2ozEA2yRZnQ&m=kKYVzEbHdpVDx5DGb6tipn-lnfuBbyb33HeAbeZJy3o&s=-kUfpGRCAdgGbDMlUDRF65J_9AIU4gYx1t19EbvjPig&e=>
{
"topics": [
"ECOMP-PORTAL-OUTBOX-APP1",
"ECOMP-PORTAL-OUTBOX-POL1",
"SDC-DISTR-STATUS-TOPIC-AUTO",
"msgrtr.apinode.metrics.dmaap",
"APPC-CL",
"PDPD-CONFIGURATION",
"POLICY-CL-MGT",
"SDC-DISTR-NOTIF-TOPIC-SDC-OPENSOURCE-ENV1",
"SDC-DISTR-NOTIF-TOPIC-AUTO",
"unauthenticated.DCAE_CL_OUTPUT",
"unauthenticated.SEC_MEASUREMENT_OUTPUT",
"SDC-DISTR-STATUS-TOPIC-SDC-OPENSOURCE-ENV1",
"ECOMP-PORTAL-OUTBOX-VID1",
"ECOMP-PORTAL-INBOX",
"ECOMP-PORTAL-OUTBOX-SDC1",
"unauthenticated.TCA_EVENT_OUTPUT",
"DCAE-CL-EVENT",
"APPC-TEST2",
"APPC-TEST1",
"ECOMP-PORTAL-OUTBOX-DBC1"
]
}
Thanks,
Ramu N
________________________________
***************************************************************************************
This e-mail and attachments contain confidential information from
HUAWEI, which is intended only for the person or entity whose address is listed
above. Any use of the information contained herein in any way (including, but
not limited to, total or partial disclosure, reproduction, or dissemination) by
persons other than the intended recipient's) is prohibited. If you receive this
e-mail in error, please notify the sender by phone or email immediately and
delete it!
From: KAJUR, HARISH V [mailto:[email protected]]
Sent: Friday, December 15, 2017 9:30 PM
To: FORSYTH, JAMES; Ramu n
Subject: RE: [onap-discuss] [AAI] Does AAI support publish data using DMaaP
Hi Ramu,
Yes we do publish data to DMaaP onto the AAI-EVENT topic.
If you want to fetch data, then you can use this curl request.
curl -i -X GET http://${DMAAP_HOSTNAME}:3904/events/AAI-EVENT
/T/T2<https://urldefense.proofpoint.com/v2/url?u=http-3A__-24-257bDMAAP-5FHOSTNAME-257d-3A3904_events_AAI-2DEVENT-2520_T_T2&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=f44eG3iZaja2ozEA2yRZnQ&m=kKYVzEbHdpVDx5DGb6tipn-lnfuBbyb33HeAbeZJy3o&s=hIo7F0rAKcquTtKE-qIb9Ti9oTrMSY35RJqZlprmQkY&e=>
Here is more docs for dmaap here:
https://wiki.onap.org/display/DW/DMaaP+API?preview=/11928249/15994301/DMaaP%20Message%20Router%20APIs%20In%20Detailed.pdf<https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.onap.org_display_DW_DMaaP-2BAPI-3Fpreview-3D_11928249_15994301_DMaaP-2520Message-2520Router-2520APIs-2520In-2520Detailed.pdf&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=f44eG3iZaja2ozEA2yRZnQ&m=kKYVzEbHdpVDx5DGb6tipn-lnfuBbyb33HeAbeZJy3o&s=oF4GZueJYWSH501-0RkbVDtZiuI_43jzz6g-K0b_cqM&e=>
https://wiki.onap.org/display/DW/DMaaP+API?preview=/11928249/15994299/DMaaP%20Message%20Router%20Filter.pdf<https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.onap.org_display_DW_DMaaP-2BAPI-3Fpreview-3D_11928249_15994299_DMaaP-2520Message-2520Router-2520Filter.pdf&d=DwMFAg&c=LFYZ-o9_HUMeMTSQicvjIg&r=f44eG3iZaja2ozEA2yRZnQ&m=kKYVzEbHdpVDx5DGb6tipn-lnfuBbyb33HeAbeZJy3o&s=XU06AkVIo-9AW3kVHhz49w2jh3bvGWDOPGQhiTOKuUA&e=>
We are using anonymous topics for the Amsterdam release.
The plan for Beijing is to use aaf topics so they will require username
password going forward.
It is not implemented yet but it is the plan so for now you can use this
anonymous topic without any authentication.
Thanks,
Harish
From: FORSYTH, JAMES
Sent: Friday, December 15, 2017 10:35 AM
To: KAJUR, HARISH V <[email protected]<mailto:[email protected]>>
Subject: FW: [onap-discuss] [AAI] Does AAI support publish data using DMaaP
Harish,
Can you respond to this one?
Thanks,
jimmy
From: Ramu n [mailto:[email protected]]
Sent: Friday, December 15, 2017 10:21 AM
To: FORSYTH, JAMES <[email protected]<mailto:[email protected]>>
Cc: [email protected]<mailto:[email protected]>
Subject: [onap-discuss] [AAI] Does AAI support publish data using DMaaP
HI Jimmy,
Does AAI support publish data using DMaaP ? if yes, plz provide any reference
links for how to subscribe for a particular type of objects in AAI.
Thanks,
Ramu N
________________________________
***************************************************************************************
This e-mail and attachments contain confidential information from
HUAWEI, which is intended only for the person or entity whose address is listed
above. Any use of the information contained herein in any way (including, but
not limited to, total or partial disclosure, reproduction, or dissemination) by
persons other than the intended recipient's) is prohibited. If you receive this
e-mail in error, please notify the sender by phone or email immediately and
delete it!
_______________________________________________
onap-discuss mailing list
[email protected]
https://lists.onap.org/mailman/listinfo/onap-discuss