blob: 2d2f357d38c49e12eb41b68fec5c20c06bfe1309 [file] [log] [blame]
Vijay VKf9e43442019-05-22 22:10:29 +01001DCAE Deployment Validation
2==========================
Lusheng Jia73548f2017-11-05 19:24:05 -05003
4
Vijay VK6b0fa462019-05-20 16:06:11 +01005Check Deployment Status
6-----------------------
7
8The healthcheck service is exposed as a Kubernetes ClusterIP Service named
9`dcae-healthcheck`. The service can be queried for status as shown below.
10
Vijay VKf9e43442019-05-22 22:10:29 +010011.. code-block:: json
Vijay VK6b0fa462019-05-20 16:06:11 +010012
13 $ curl dcae-healthcheck
14 {
15 "type": "summary",
16 "count": 14,
17 "ready": 14,
18 "items": [
19 {
20 "name": "dev-dcaegen2-dcae-cloudify-manager",
21 "ready": 1,
22 "unavailable": 0
23 },
24 {
25 "name": "dev-dcaegen2-dcae-config-binding-service",
26 "ready": 1,
27 "unavailable": 0
28 },
29 {
30 "name": "dev-dcaegen2-dcae-inventory-api",
31 "ready": 1,
32 "unavailable": 0
33 },
34 {
35 "name": "dev-dcaegen2-dcae-servicechange-handler",
36 "ready": 1,
37 "unavailable": 0
38 },
39 {
40 "name": "dev-dcaegen2-dcae-deployment-handler",
41 "ready": 1,
42 "unavailable": 0
43 },
44 {
45 "name": "dev-dcaegen2-dcae-policy-handler",
46 "ready": 1,
47 "unavailable": 0
48 },
49 {
50 "name": "dep-dcae-ves-collector",
51 "ready": 1,
52 "unavailable": 0
53 },
54 {
55 "name": "dep-dcae-tca-analytics",
56 "ready": 1,
57 "unavailable": 0
58 },
59 {
60 "name": "dep-dcae-prh",
61 "ready": 1,
62 "unavailable": 0
63 },
64 {
65 "name": "dep-dcae-hv-ves-collector",
66 "ready": 1,
67 "unavailable": 0
68 },
69 {
70 "name": "dep-dcae-dashboard",
71 "ready": 1,
72 "unavailable": 0
73 },
74 {
75 "name": "dep-dcae-snmptrap-collector",
76 "ready": 1,
77 "unavailable": 0
78 },
79 {
80 "name": "dep-holmes-engine-mgmt",
81 "ready": 1,
82 "unavailable": 0
83 },
84 {
85 "name": "dep-holmes-rule-mgmt",
86 "ready": 1,
87 "unavailable": 0
88 }
89 ]
90 }
91
92
93Data Flow Verification
Lusheng Jic5e03752017-11-22 00:38:22 -050094----------------------
Lusheng Jia73548f2017-11-05 19:24:05 -050095
Vijay VK6b0fa462019-05-20 16:06:11 +010096After the platform is assessed as healthy, the next step is to check the functionality of the system. This can be monitored at a number of "observation" points.
Lusheng Jia73548f2017-11-05 19:24:05 -050097
Vijay VK6b0fa462019-05-20 16:06:11 +0100981. Incoming VNF Data into VES Collector can be verified through logs using kubectl
99
100 kubectl logs -f -n onap <vescollectorpod> dcae-ves-collector
Lusheng Jia73548f2017-11-05 19:24:05 -0500101
1022. Check VES Output
103
104 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.
105
Vijay VK6b0fa462019-05-20 16:06:11 +0100106 1. Run the subscription command to subscribe to the topic: **curl -H "Content-Type:text/plain" -X GET http://{{K8S_NODEIP}}:30227/events/unauthenticated.VES_MEASUREMENT_OUTPUT/group1/C1?timeout=50000**. The actual format and use of Message Router API can be found in DMaaP project documentation.
Lusheng Jia73548f2017-11-05 19:24:05 -0500107 * When there are messages being published, this command returns with the JSON array of messages;
108 * 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;
Vijay VK6b0fa462019-05-20 16:06:11 +0100109 * It may be useful to run this command in a loop: **while :; do curl -H "Content-Type:text/plain" -X GET http://{{K8S_NODEIP}}:3904/events/unauthenticated.VES_MEASUREMENT_OUTPUT/group1/C1?timeout=50000; echo; done**;
Lusheng Jia73548f2017-11-05 19:24:05 -0500110
1113. Check TCA Output
112 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;
Vijay VK6b0fa462019-05-20 16:06:11 +0100113 * Run the subscription command to subscribe to the topic: **curl -H "Content-Type:text/plain" -X GET http://{{K8S_NODEIP}}:3904/events/unauthenticated.DCAE_CL_OUTPUT/group1/C1?timeout=50000**.
114 * Or run the command in a loop: **while :; do curl -H "Content-Type:text/plain" -X GET http://{{K8S_NODEIP}}:3904/events/unauthenticated.DCAE_CL_OUTPUT/group1/C1?timeout=50000; echo; done**;
Lusheng Jia73548f2017-11-05 19:24:05 -0500115