Lusheng Ji | a73548f | 2017-11-05 19:24:05 -0500 | [diff] [blame] | 1 | Testing and Debugging ONAP DCAE Deployment |
| 2 | =========================================== |
| 3 | |
| 4 | |
| 5 | Check Component Status |
Lusheng Ji | c5e0375 | 2017-11-22 00:38:22 -0500 | [diff] [blame] | 6 | ---------------------- |
Lusheng Ji | a73548f | 2017-11-05 19:24:05 -0500 | [diff] [blame] | 7 | |
Eric Debeau | de42098 | 2017-11-13 22:16:07 +0000 | [diff] [blame] | 8 | Testing of a DCAE system starts with checking the health of the deployed components. This can be done by accessing the Consul becsue all DCAE components register their staus with Consul. Such API is accessible at http://{{ANY_CONSUL_VM_IP}}:8500. |
Lusheng Ji | a73548f | 2017-11-05 19:24:05 -0500 | [diff] [blame] | 9 | |
Eric Debeau | de42098 | 2017-11-13 22:16:07 +0000 | [diff] [blame] | 10 | In addition, more details status information can be obtained in additional ways. |
Lusheng Ji | a73548f | 2017-11-05 19:24:05 -0500 | [diff] [blame] | 11 | |
| 12 | 1. Check VES Status |
Eric Debeau | de42098 | 2017-11-13 22:16:07 +0000 | [diff] [blame] | 13 | VES status and running logs can be found on the {{RAND}}doks00 VM. The detailed API and access methods can be found in the logging and human interface sections. |
Lusheng Ji | a73548f | 2017-11-05 19:24:05 -0500 | [diff] [blame] | 14 | |
| 15 | 2. Check TCA Status |
Eric Debeau | de42098 | 2017-11-13 22:16:07 +0000 | [diff] [blame] | 16 | TCA has its own GUI that provides detailed operation information. Point browser to http://{{CDAP02_VM_IP}}:11011/oldcdap/ns/cdap_tca_hi_lo/apps/, select the application with Description "DCAE Analytics Threshold Crossing Alert Application"; then select "TCAVESCollectorFlow". This leads to a flow display where all stages of processing are illustrated and the number inside of each stage icon shows the number of events/messages processed. |
Lusheng Ji | a73548f | 2017-11-05 19:24:05 -0500 | [diff] [blame] | 17 | |
| 18 | |
| 19 | 3. Check Message Router Status |
| 20 | Run **curl {{MESSAGE_ROUTER_IP}}:3904/topics** to check the status of the message router. It should return with a list of message topics currently active on the Message Router; |
| 21 | * Among the topics, find one called "unauthenticated.SEC_MEASUREMENT_OUTPUT", which is the topics VES collector publishes its data to, and the other called "unauthenticated.DCAE_CL_OUTPUT", which is used for TCA to publish analytics events. |
| 22 | |
| 23 | |
| 24 | Check data Flow |
Lusheng Ji | c5e0375 | 2017-11-22 00:38:22 -0500 | [diff] [blame] | 25 | --------------- |
| 26 | |
Lusheng Ji | a73548f | 2017-11-05 19:24:05 -0500 | [diff] [blame] | 27 | After the platform is assessed as heathy, the next step is to check the functionality of the system. This can be monitored at a number of "observation" points. |
| 28 | |
| 29 | 1. Check incoming VNF Data |
| 30 | |
| 31 | For R1 use cases, VNF data enters the DCAE system via the VES collector. This can be verified in the following steps: |
| 32 | |
| 33 | 1. ssh into the {{RAND}}doks00 VM; |
| 34 | 2. Run: **sudo docker ps** to see that the VES collector container is running; |
| 35 | * Optionally run: **docker logs -f {{ID_OF_THE_VES_CONTAINER}}** to check the VES container log information; |
| 36 | 3. Run: **netstat -ln** to see that port 8080 is open; |
| 37 | 4. Run: **sudo tcpdump dst port 8080** to see incoming packets (from VNFs) into the VM's 8080 port, which is mapped to the VES collectors's 8080 port. |
| 38 | |
| 39 | |
| 40 | 2. Check VES Output |
| 41 | |
| 42 | VES publishes received VNF data, after authentication and syntax check, onto DMaaP Message Router. To check this is happening we can subscribe to the publishing topic. |
| 43 | |
| 44 | 1. Run the subscription command to subscribe to the topic: **curl -H "Content-Type:text/plain" -X GET http://{{MESSAGE_ROUTER_IP}}:3904/events/unauthenticated.SEC_MEASUREMENT_OUTPUT/group19/C1?timeout=50000**. The actual format and use of Message Router API can be found in DMaaP project documentation. |
| 45 | * When there are messages being published, this command returns with the JSON array of messages; |
| 46 | * If no message being published, up to the timeout value (i.e. 50000 seconds as in the example above), the call is returned with empty JAON array; |
| 47 | * It may be useful to run this command in a loop: **while :; do curl -H "Content-Type:text/plain" -X GET http://{{MESSAGE_ROUTER_IP}}:3904/events/unauthenticated.SEC_MEASUREMENT_OUTPUT/group19/C1?timeout=50000; echo; done**; |
| 48 | |
| 49 | 3. Check TCA Output |
| 50 | TCA also publishes its events to Message Router under the topic of "unauthenticated.DCAE_CL_OUTPUT". The same Message Router subscription command can be used for checking the messages being published by TCA; |
| 51 | * Run the subscription command to subscribe to the topic: **curl -H "Content-Type:text/plain" -X GET http://{{MESSAGE_ROUTER_IP}}:3904/events/unauthenticated.DCAE_CL_OUTPUT/group19/C1?timeout=50000**. |
| 52 | * Or run the command in a loop: **while :; do curl -H "Content-Type:text/plain" -X GET http://{{MESSAGE_ROUTER_IP}}:3904/events/unauthenticated.DCAE_CL_OUTPUT/group19/C1?timeout=50000; echo; done**; |
| 53 | |