1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
DCAE Deployment Validation
==========================
Check Deployment Status
-----------------------
The healthcheck service is exposed as a Kubernetes ClusterIP Service named
`dcae-ms-healthcheck`. The service can be queried for status as shown below.
.. code-block:: json
$ curl dcae-ms-healthcheck
{
"type": "summary",
"count": 5,
"ready": 5,
"items": [{
"name": "onap-dcae-hv-ves-collector",
"ready": 1,
"unavailable": 0
},
{
"name": "onap-dcae-prh",
"ready": 1,
"unavailable": 0
},
{
"name": "onap-dcae-tcagen2",
"ready": 1,
"unavailable": 0
},
{
"name": "onap-dcae-ves-collector",
"ready": 1,
"unavailable": 0
},
{
"name": "onap-dcae-ves-openapi-manager",
"ready": 1,
"unavailable": 0
}
]
}
Data Flow Verification
----------------------
After 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.
1. Incoming VNF Data into VES Collector can be verified through logs using kubectl
kubectl logs -f -n onap <vescollectorpod> dcae-ves-collector
.. note::
To get the "vescollectorpod" run this command: kubectl -n onap get pods | grep dcae-ves-collector
2. Check VES Output
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.
1. Run the subscription command to subscribe to the topic: **curl -H "Content-Type:text/plain" -k -X GET https://{{K8S_NODEIP}}:30226/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.
* When there are messages being published, this command returns with the JSON array of messages;
* 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;
* It may be useful to run this command in a loop: **while :; do curl -H "Content-Type:text/plain" -k -X GET https://{{K8S_NODEIP}}:30226/events/unauthenticated.VES_MEASUREMENT_OUTPUT/group1/C1?timeout=50000; echo; done**;
3. Check TCA Output
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;
* Run the subscription command to subscribe to the topic: **curl -H "Content-Type:text/plain" -k -X GET https://{{K8S_NODEIP}}:30226/events/unauthenticated.DCAE_CL_OUTPUT/group1/C1?timeout=50000**.
* Or run the command in a loop: **while :; do curl -H "Content-Type:text/plain" -k -X GET https://{{K8S_NODEIP}}:30226/events/unauthenticated.DCAE_CL_OUTPUT/group1/C1?timeout=50000; echo; done**;
|