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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
|
{
"name": "LOOP_h2NMX_v1_0_ResourceInstanceName1_tca",
"dcaeBlueprintId": "typeId-3a942643-a8f7-4e54-b2c1-eea8daba2b17",
"globalPropertiesJson": {
"dcaeDeployParameters": {
"location_id": "",
"service_id": "",
"policy_id": "TCA_h2NMX_v1_0_ResourceInstanceName1_tca"
}
},
"modelPropertiesJson": {
"serviceDetails": {
"serviceType": "",
"namingPolicy": "",
"environmentContext": "General_Revenue-Bearing",
"serviceEcompNaming": "true",
"serviceRole": "",
"name": "vLoadBalancerMS",
"description": "vLBMS",
"invariantUUID": "30ec5b59-4799-48d8-ac5f-1058a6b0e48f",
"ecompGeneratedNaming": "true",
"category": "Network L4+",
"type": "Service",
"UUID": "63cac700-ab9a-4115-a74f-7eac85e3fce0",
"instantiationType": "A-la-carte"
},
"resourceDetails": {
"CP": {},
"VL": {},
"VF": {
"vLoadBalancerMS 0": {
"resourceVendor": "Test",
"resourceVendorModelNumber": "",
"name": "vLoadBalancerMS",
"description": "vLBMS",
"invariantUUID": "1a31b9f2-e50d-43b7-89b3-a040250cf506",
"subcategory": "Load Balancer",
"category": "Application L4+",
"type": "VF",
"UUID": "b4c4f3d7-929e-4b6d-a1cd-57e952ddc3e6",
"version": "1.0",
"resourceVendorRelease": "1.0",
"customizationUUID": "465246dc-7748-45f4-a013-308d92922552"
}
},
"CR": {},
"VFC": {},
"PNF": {},
"Service": {},
"CVFC": {},
"Service Proxy": {},
"Configuration": {},
"AllottedResource": {},
"VFModule": {
"Vloadbalancerms..vpkg..module-1": {
"vfModuleModelInvariantUUID": "ca052563-eb92-4b5b-ad41-9111768ce043",
"vfModuleModelVersion": "1",
"vfModuleModelName": "Vloadbalancerms..vpkg..module-1",
"vfModuleModelUUID": "1e725ccc-b823-4f67-82b9-4f4367070dbc",
"vfModuleModelCustomizationUUID": "1bffdc31-a37d-4dee-b65c-dde623a76e52",
"min_vf_module_instances": 0,
"vf_module_label": "vpkg",
"max_vf_module_instances": 1,
"vf_module_type": "Expansion",
"isBase": false,
"initial_count": 0,
"volume_group": false
},
"Vloadbalancerms..vdns..module-3": {
"vfModuleModelInvariantUUID": "4c10ba9b-f88f-415e-9de3-5d33336047fa",
"vfModuleModelVersion": "1",
"vfModuleModelName": "Vloadbalancerms..vdns..module-3",
"vfModuleModelUUID": "4fa73b49-8a6c-493e-816b-eb401567b720",
"vfModuleModelCustomizationUUID": "bafcdab0-801d-4d81-9ead-f464640a38b1",
"min_vf_module_instances": 0,
"vf_module_label": "vdns",
"max_vf_module_instances": 50,
"vf_module_type": "Expansion",
"isBase": false,
"initial_count": 0,
"volume_group": false
},
"Vloadbalancerms..base_template..module-0": {
"vfModuleModelInvariantUUID": "921f7c96-ebdd-42e6-81b9-1cfc0c9796f3",
"vfModuleModelVersion": "1",
"vfModuleModelName": "Vloadbalancerms..base_template..module-0",
"vfModuleModelUUID": "63734409-f745-4e4d-a38b-131638a0edce",
"vfModuleModelCustomizationUUID": "86baddea-c730-4fb8-9410-cd2e17fd7f27",
"min_vf_module_instances": 1,
"vf_module_label": "base_template",
"max_vf_module_instances": 1,
"vf_module_type": "Base",
"isBase": true,
"initial_count": 1,
"volume_group": false
},
"Vloadbalancerms..vlb..module-2": {
"vfModuleModelInvariantUUID": "a772a1f4-0064-412c-833d-4749b15828dd",
"vfModuleModelVersion": "1",
"vfModuleModelName": "Vloadbalancerms..vlb..module-2",
"vfModuleModelUUID": "0f5c3f6a-650a-4303-abb6-fff3e573a07a",
"vfModuleModelCustomizationUUID": "96a78aad-4ffb-4ef0-9c4f-deb03bf1d806",
"min_vf_module_instances": 0,
"vf_module_label": "vlb",
"max_vf_module_instances": 1,
"vf_module_type": "Expansion",
"isBase": false,
"initial_count": 0,
"volume_group": false
}
}
}
},
"lastComputedState": "DESIGN",
"components": {
"POLICY": {
"componentState": {
"stateName": "NOT_SENT",
"description": "The policies defined have NOT yet been created on the policy engine"
}
},
"DCAE": {
"componentState": {
"stateName": "BLUEPRINT_DEPLOYED",
"description": "The DCAE blueprint has been found in the DCAE inventory but not yet instancianted for this loop"
}
}
},
"operationalPolicies": [
{
"name": "OPERATIONAL_h2NMX_v1_0_ResourceInstanceName1_tca",
"configurationsJson": {
"guard_policies": {
"guard.minmax.new": {
"recipe": "",
"clname": "LOOP_h2NMX_v1_0_ResourceInstanceName1_tca",
"actor": "",
"targets": "",
"min": "gg",
"max": "gg",
"limit": "",
"timeUnits": "",
"timeWindow": "",
"guardActiveStart": "00:00:00Z",
"guardActiveEnd": "00:00:01Z"
}
},
"operational_policy": {
"controlLoop": {
"trigger_policy": "new",
"timeout": "0",
"abatement": "false",
"controlLoopName": "LOOP_h2NMX_v1_0_ResourceInstanceName1_tca"
},
"policies": [
{
"id": "new",
"recipe": "",
"retry": "0",
"timeout": "0",
"actor": "",
"payload": "",
"success": "",
"failure": "",
"failure_timeout": "",
"failure_retries": "",
"failure_exception": "",
"failure_guard": "",
"target": {
"type": "VM",
"resourceID": ""
}
}
]
}
}
}
],
"microServicePolicies": [
{
"name": "TCA_h2NMX_v1_0_ResourceInstanceName1_tca",
"modelType": "onap.policies.monitoring.cdap.tca.hi.lo.app",
"properties": {
"domain": "measurementsForVfScaling",
"metricsPerEventName": [
{
"policyVersion": "ff",
"thresholds": [
{
"severity": "CRITICAL",
"fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
"thresholdValue": 0,
"closedLoopEventStatus": "ONSET",
"closedLoopControlName": "ff",
"version": "ff",
"direction": "LESS"
}
],
"policyName": "ff",
"controlLoopSchemaType": "VM",
"policyScope": "ff",
"eventName": "ff"
}
]
},
"shared": false,
"jsonRepresentation": {
"schema": {
"uniqueItems": "true",
"format": "tabs-top",
"type": "array",
"title": "TCA Policy JSON",
"items": {
"type": "object",
"title": "TCA Policy JSON",
"required": [
"domain",
"metricsPerEventName"
],
"properties": {
"domain": {
"propertyOrder": 1001,
"default": "measurementsForVfScaling",
"title": "Domain name to which TCA needs to be applied",
"type": "string"
},
"metricsPerEventName": {
"propertyOrder": 1002,
"uniqueItems": "true",
"format": "tabs-top",
"title": "Contains eventName and threshold details that need to be applied to given eventName",
"type": "array",
"items": {
"type": "object",
"required": [
"controlLoopSchemaType",
"eventName",
"policyName",
"policyScope",
"policyVersion",
"thresholds"
],
"properties": {
"policyVersion": {
"propertyOrder": 1007,
"title": "TCA Policy Scope Version",
"type": "string"
},
"thresholds": {
"propertyOrder": 1008,
"uniqueItems": "true",
"format": "tabs-top",
"title": "Thresholds associated with eventName",
"type": "array",
"items": {
"type": "object",
"required": [
"closedLoopControlName",
"closedLoopEventStatus",
"direction",
"fieldPath",
"severity",
"thresholdValue",
"version"
],
"properties": {
"severity": {
"propertyOrder": 1013,
"title": "Threshold Event Severity",
"type": "string",
"enum": [
"CRITICAL",
"MAJOR",
"MINOR",
"WARNING",
"NORMAL"
]
},
"fieldPath": {
"propertyOrder": 1012,
"title": "Json field Path as per CEF message which needs to be analyzed for TCA",
"type": "string",
"enum": [
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsDelta",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsDelta",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsDelta",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsDelta",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsDelta",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsDelta",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedTotalPacketsAccumulated",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedOctetsAccumulated",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedUnicastPacketsAccumulated",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedMulticastPacketsAccumulated",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsAccumulated",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedErrorPacketsAccumulated",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsDelta",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsDelta",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsDelta",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsDelta",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsDelta",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsDelta",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsDelta",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedTotalPacketsAccumulated",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedOctetsAccumulated",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedUnicastPacketsAccumulated",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedMulticastPacketsAccumulated",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedBroadcastPacketsAccumulated",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedDiscardedPacketsAccumulated",
"$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].transmittedErrorPacketsAccumulated",
"$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuIdle",
"$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageInterrupt",
"$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageNice",
"$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSoftIrq",
"$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSteal",
"$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuUsageSystem",
"$.event.measurementsForVfScalingFields.cpuUsageArray[*].cpuWait",
"$.event.measurementsForVfScalingFields.cpuUsageArray[*].percentUsage",
"$.event.measurementsForVfScalingFields.meanRequestLatency",
"$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryBuffered",
"$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryCached",
"$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryConfigured",
"$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryFree",
"$.event.measurementsForVfScalingFields.memoryUsageArray[*].memoryUsed",
"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value"
]
},
"thresholdValue": {
"propertyOrder": 1014,
"title": "Threshold value for the field Path inside CEF message",
"type": "integer"
},
"closedLoopEventStatus": {
"propertyOrder": 1010,
"title": "Closed Loop Event Status of the threshold",
"type": "string",
"enum": [
"ONSET",
"ABATED"
]
},
"closedLoopControlName": {
"propertyOrder": 1009,
"title": "Closed Loop Control Name associated with the threshold",
"type": "string"
},
"version": {
"propertyOrder": 1015,
"title": "Version number associated with the threshold",
"type": "string"
},
"direction": {
"propertyOrder": 1011,
"title": "Direction of the threshold",
"type": "string",
"enum": [
"LESS",
"LESS_OR_EQUAL",
"GREATER",
"GREATER_OR_EQUAL",
"EQUAL"
]
}
}
}
},
"policyName": {
"propertyOrder": 1005,
"title": "TCA Policy Scope Name",
"type": "string"
},
"controlLoopSchemaType": {
"propertyOrder": 1003,
"title": "Specifies Control Loop Schema Type for the event Name e.g. VNF, VM",
"type": "string",
"enum": [
"VM",
"VNF"
]
},
"policyScope": {
"propertyOrder": 1006,
"title": "TCA Policy Scope",
"type": "string"
},
"eventName": {
"propertyOrder": 1004,
"title": "Event name to which thresholds need to be applied",
"type": "string"
}
}
}
}
}
}
}
}
}
],
"loopLogs": [
{
"id": 2,
"logType": "INFO",
"logComponent": "CLAMP",
"message": "Micro Service policies UPDATED",
"logInstant": "2019-07-08T09:44:53Z"
},
{
"id": 1,
"logType": "INFO",
"logComponent": "CLAMP",
"message": "Operational and Guard policies UPDATED",
"logInstant": "2019-07-08T09:44:37Z"
}
]
}
|