Overview
The Context Aggregator in POMBA consumes a service audit request from DMaaP and initiates the gathering of context-specific service information via a set of "builders". The information available about the service within each context (i.e. from each builder) is collated and a single report is then published to DMaaP where it can be consumed.
Currently, if a context builder is incapable of providing data, no data is published to DMaaP. Future work will allow for the publishing of data when one or more builders do not provide data (either due to the service not existing in that context or due to error).
File Structure
Code Block | ||
---|---|---|
| ||
/opt |-- app |-- config | |-- application.properties | |-- builders | | |-- aai.properties | | |-- sdc.properties | |-- logback.xml |-- debug-logs | |-- EELF | |-- debug.log |-- lib | |-- pomba-context-aggregator.jar | |-- startService.sh |-- logs |-- EELF | |-- application.log | |-- audit.log | |-- error.log | |-- metrics.log | |-- performance.log | |-- policy.log | |-- security.log | |-- server.log |-- output.log |
Configuration
Code Block | ||||
---|---|---|---|---|
| ||||
server.port=9529 builders.properties.path=config/builders/ # Transport Configuration transport.consume.host=10.147.99.139 transport.consume.port=30227 transport.consume.topic=POA-AUDIT-INIT transport.consume.motsid=motsid@motsid.com transport.consume.pass=1234 transport.consume.consumergroup=audit1 transport.consume.consumerid=audit1 transport.consume.timeout=15000 transport.consume.msglimit=1000 transport.consume.batchsize=8 transport.consume.type=HTTPAUTH transport.publish.host=10.147.99.139 transport.publish.port=30227 transport.publish.topic=POA-RULE-VALIDATION transport.publish.motsid=motsid@motsid.com transport.publish.pass=1234 transport.publish.batchsize=8 transport.publish.maxage=1000 transport.publish.delay=1000 transport.publish.type=HTTPAUTH transport.publish.partition=1 transport.publish.retries=4 event.header.domain=devINT1 event.header.source-name=RO event.header.event-type=POA-EVENT event.header.entity-type=poa-entity event.header.topic-entity-type=poa-entity event.header.topic-name=AUDIT-RESULT-TEST |
Each builder has a configuration under /opt/apps/config/builders/.
Code Block | ||||
---|---|---|---|---|
| ||||
server.host=10.53.117.15 server.port=9533 server.protocol=http trust.store.path=/auth/tomcat_keystore key.store.path=/auth/aai-client-cert.p12 key.store.password=70c87528c88dcd9f9c2558d30e817868 key.store.type=PKCS12 key.manager.factory.algorithm=SunX509 security.protocol=TLS connection.timeout.ms=5000 read.timeout.ms=1000 base.uri=/aaicontextbuilder/service/context |
Events
Consumed from POA-AUDIT-INIT
e.g.
No Format |
---|
{"serviceType":"vFW","modelVersionId":"e9851a43-c068-4eb2-9fe7-2d123bd94ff0","modelInvariantId":"4fd21763-23ed-4f69-8654-e121626df327","customerId":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb","serviceInstanceId":"b06270ab-99e6-4a58-9bc0-db2df5c36f4d","xTransactionId":"2309039=x","xFromAppId":"VID"} |
Published to POA-RULE-VALIDATION
e.g.
No Format |
---|
{"event-header":{"entity-type":"poa-entity","top-entity-type":"poa-entity","event-type":"POA-EVENT","domain":"devINT1","id":"ef6262ef-a1b4-4416-b923-446191f92ec3","topic-name":"AUDIT-RESULT-TEST","source-name":"RO","event-id":"fccc28c2-37d4-432a-9233-9fa64ab6e742"},"entity":{"poa-event":{"serviceType":"vFW","modelVersionId":"e9851a43-c068-4eb2-9fe7-2d123bd94ff0","modelInvariantId":"4fd21763-23ed-4f69-8654-e121626df327","customerId":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb","serviceInstanceId":"b06270ab-99e6-4a58-9bc0-db2df5c36f4d","xTransactionId":"2309039=x","xFromAppId":"VID"},"context-list":{"sdc":{"vf-list":[{"vnfc-list":[{"name":"abstract_vm","nfc-naming-code":"vm","uuid":"b26affdb-e770-4eed-843d-6fdec6d2e64b","invariant-id":"d722139c-cd50-4238-b1a2-2ba4dbb1a31c"}],"name":"test-vm 0","type":"org.openecomp.resource.vf.TestVm","uuid":"915b1ebc-4708-4b74-841b-ab1c8f1f8e04","invariant-id":"01ff0da6-3c75-4f88-99fe-09a7e3333b6b","vf-module-list":[{"min-instances":1,"max-instances":1,"uuid":"fecb5a3f-db6e-446e-a675-6c0386ad35e5","invariant-id":"cc7ddad9-005d-46ec-8b9c-e8cfd9d0984d"}]}],"service":{"name":"test-vm-service","uuid":"d9db52b3-0b68-48cb-b39b-560eab7b007e","invariant-id":"64f6b26a-2d45-4dc9-9672-52b2845fc8fb"}},"aai":{"vf-list":[{"nf-naming-code":"","vnfc-list":[],"name":"test-vm-service-2_vnf","type":"test-vm-service/test-vm 0","uuid":"915b1ebc-4708-4b74-841b-ab1c8f1f8e04","invariant-id":"01ff0da6-3c75-4f88-99fe-09a7e3333b6b","vf-module-list":[{"min-instances":0,"max-instances":1,"uuid":"fecb5a3f-db6e-446e-a675-6c0386ad35e5","invariant-id":"cc7ddad9-005d-46ec-8b9c-e8cfd9d0984d"}]}],"service":{"name":"test-vm-service-2","uuid":"d9db52b3-0b68-48cb-b39b-560eab7b007e","invariant-id":"64f6b26a-2d45-4dc9-9672-52b2845fc8fb"}}}}} |
Logs
No Format |
---|
2018-08-08 17:20:36,928|||pool-1-thread-4||||INFO||||||| AC0001I|AC0001I GET request at url = http://10.53.117.15:9533/aaicontextbuilder/service/context?serviceInstanceId=b06270ab-99e6-4a58-9bc0-db2df5c36f4d&modelVersionId=e9851a43-c068-4eb2-9fe7-2d123bd94ff0&modelInvariantId=4fd21763-23ed-4f69-8654-e121626df327&serviceType=vFW&customerId=a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb| 2018-08-08 17:20:37,312|||pool-1-thread-4||||INFO||||||| AC0003I|AC0003I GET request operation time = 384 ms for link = http://10.53.117.15:9533/aaicontextbuilder/service/context?serviceInstanceId=b06270ab-99e6-4a58-9bc0-db2df5c36f4d&modelVersionId=e9851a43-c068-4eb2-9fe7-2d123bd94ff0&modelInvariantId=4fd21763-23ed-4f69-8654-e121626df327&serviceType=vFW&customerId=a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb| 2018-08-08 17:20:37,313|||pool-1-thread-4||||INFO||||||| AC0004I|AC0004I request at url = http://10.53.117.15:9533/aaicontextbuilder/service/context?serviceInstanceId=b06270ab-99e6-4a58-9bc0-db2df5c36f4d&modelVersionId=e9851a43-c068-4eb2-9fe7-2d123bd94ff0&modelInvariantId=4fd21763-23ed-4f69-8654-e121626df327&serviceType=vFW&customerId=a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb resulted in http response: 200 OK| 2018-08-08 17:20:37,318|||pool-1-thread-4||||INFO||||||| AC0001I|AC0001I GET request at url = http://10.53.117.15:9532/sdccontextbuilder/service/context?serviceInstanceId=b06270ab-99e6-4a58-9bc0-db2df5c36f4d&modelVersionId=e9851a43-c068-4eb2-9fe7-2d123bd94ff0&modelInvariantId=4fd21763-23ed-4f69-8654-e121626df327&serviceType=vFW&customerId=a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb| 2018-08-08 17:20:37,567|||pool-1-thread-4||||INFO||||||| AC0003I|AC0003I GET request operation time = 249 ms for link = http://10.53.117.15:9532/sdccontextbuilder/service/context?serviceInstanceId=b06270ab-99e6-4a58-9bc0-db2df5c36f4d&modelVersionId=e9851a43-c068-4eb2-9fe7-2d123bd94ff0&modelInvariantId=4fd21763-23ed-4f69-8654-e121626df327&serviceType=vFW&customerId=a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb| 2018-08-08 17:20:37,568|||pool-1-thread-4||||INFO||||||| AC0004I|AC0004I request at url = http://10.53.117.15:9532/sdccontextbuilder/service/context?serviceInstanceId=b06270ab-99e6-4a58-9bc0-db2df5c36f4d&modelVersionId=e9851a43-c068-4eb2-9fe7-2d123bd94ff0&modelInvariantId=4fd21763-23ed-4f69-8654-e121626df327&serviceType=vFW&customerId=a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb resulted in http response: 200 OK| 2018-08-08 17:20:37,648|||pool-1-thread-4||||INFO||||||| sending 1 msgs to http://10.147.99.139:30227/events/POA-RULE-VALIDATION?partitionKey=1. Oldest: 1 ms 2018-08-08 17:20:38,262|||pool-1-thread-4||||INFO||||||| MR reply ok (614 ms):{"serverTimeMs":4,"count":1,"status":200} |