Table of Contents |
---|
Test Case Id | Description | Pre-conditions | Test Steps | Expected Results | ||
---|---|---|---|---|---|---|
1 | Perform healthcheck for the Policy components using Healthcheck API
|
| API – healthcheck Method - GET Endpoint: http://<host>:8081/healthcheck | All the policy components should return health status as “true” | ||
|
|
|
|
| ||
3 | Create config Policy for the following use cases
| Policy components up and running | API – CreateConfig Method – PUT Endpoint: https://<host>:8081/Pdp/createPolicy | Config Policy should be created in Policy Engine (PAP) | ||
34 | Push Config policy to the PDP Engines for the following use cases
| Policy components up and running | API - pushPolicy Method - PUT Endpoint: https:// <host>:8081/Pdp/pushPolicy | Config Policy should be pushed to the PDP group | 4 | Load the Drools Controller Configurations |
5 | Import/Load Use case template Create Operational policy for the following use cases (
| Policy components should be up and running | API – policyEngineImport - createPolicy Method – POSTPUT Endpoint: https://<host>:8081/pdpPdp/policyEngineImportcreatePolicy | Operational Policy service models should be imported for the specified use cases. We should be able to create policy from here. | ||
6 | Create Operational policy for the following use cases
| Policy components up and running | API - createPolicy Method – PUT Endpoint: https://<host>:8081/Pdp/createPolicy | Operational Policy should be created in Policy Engine (PAP) | ||
should be created in Policy Engine (PAP) | ||||||
67 | Push operational Policy to the PDP Engines for each use case
| Policy components up and running | API - pushPolicy Method - PUT Endpoint: https:// <host>:8081/Pdp/pushPolicy | Operational Policy should be pushed to the PDP group | ||
87 | Retrieve the configs for the following use cases
| Policy components up and running | API – getConfig Method – POST Endpoint: https://<host>:8081/Pdp/getConfig | Both Config and Operational Policies configured for each use case should be retrieved successfully | ||
9 |
|
|
|
| ||
10 | ||||||
11 |
|
|
|
| ||
12 | ||||||
13 | ||||||
14 | ||||||
15 |
|
|
|
| ||
16 |
|
|
|
| ||
17 |
|
|
|
|
vFirewall Use Case
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
tca_policy: "{ "domain": "measurementsForVfScaling", "metricsPerEventName": [ { "eventName": "vFirewallBroadcastPackets", "controlLoopSchemaType": "VNF", "policyScope": "DCAE", "policyName": "DCAE.Config_tca-hi-lo", "policyVersion": "v0.0.1", "thresholds": [ { "closedLoopControlName": "CLControlLoop-FRWLvFirewall-LOWd0a1dfc6-TRAFFIC94f5-SIG4fd4-d925ed73-8231-4d02-9545-db4e101f88f8a5b5-4630b438850a", "version": "1.0.2", "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArrayvNicUsageArray[*].receivedBroadcastPacketsAccumulatedreceivedTotalPacketsDelta", "thresholdValue": 4000300, "direction": "LESS_OR_EQUAL", "severity": "MAJOR", "closedLoopEventStatus": "ONSET" }, { "closedLoopControlName": "CLControlLoop-FRWLvFirewall-HIGHd0a1dfc6-TRAFFIC94f5-SIG4fd4-EA36FE84-9342-5E13-A656-EC5F21309A09"a5b5-4630b438850a", "version": "1.0.2", "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArrayvNicUsageArray[*].receivedBroadcastPacketsAccumulatedreceivedTotalPacketsDelta", "thresholdValue": 20000700, "direction": "GREATER_OR_EQUAL", "severity": "CRITICAL", "closedLoopEventStatus": "ONSET" } ] } ] }" |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "closedLoopEventClient": "DCAE_INSTANCE_ID.dcae-tca", "policyVersion": "1controlLoop: version: 2.0.0.5", "policyName": "vFirewall", "policyScope": "resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=SampleClosedLoop", "target_type": "VNF", "AAI": { "generic-vnf.vnf-id": "zdfw1fwl01fwl02" }, "closedLoopAlarmStart": 1484855291527925, "closedLoopEventStatus": "ONSET", "closedLoopControlName": "CL-FRWL-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8", "version": "1.0.2", "target": "generic-vnf.vnf-id", "requestID": "8c1b8bd8-06f7-493f-8ed7-daaa4cc481bc", "from": "DCAE" } | ||||||
Code Block | ||||||
| ||||||
POST /aai/search/named-query { "query-parameters": { controlLoopName: ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a trigger_policy: unique-policy-id-1-modifyConfig timeout: 1200 abatement: false policies: - id: unique-policy-id-1-modifyConfig name: modify packet gen config description: actor: APPC recipe: ModifyConfig target: # TBD "named-query": {Cannot be known until instantiation is done "named-query-uuid": "a93ac487-409c-4e8c-9e5f-334ae8f99087" resourceID: Eace933104d443b496b8.nodes.heat.vpg type: VNF retry: } 0 },timeout: 300 "instance-filters":{success: final_success "instance-filter":[ {failure: final_failure failure_timeout: final_failure_timeout "generic-vnf": { failure_retries: final_failure_retries "vnf-id": "de7cc3ab-0212-47df-9e64-da1c79234deb"failure_exception: final_failure_exception } } ] } }failure_guard: final_failure_guard |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
"closedLoopEventClient": "DCAE_INSTANCE_ID.dcae-tca",
"policyVersion": "1.0.0.5",
"policyName": "vFirewall",
"policyScope": "resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=SampleClosedLoop",
"target_type": "VNF",
"AAI": {
"generic-vnf.vnf-name": "zdfw1fwl01fwl02"
},
"closedLoopAlarmStart": 1484855291527925,
"closedLoopEventStatus": "ONSET",
"closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
"version": "1.0.2",
"target": "generic-vnf.vnf-name",
"requestID": "8c1b8bd8-06f7-493f-8ed7-daaa4cc481bc",
"from": "DCAE"
} |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
https://{aai}/aai/v11/network/generic-vnfs/generic-vnf?vnf-name=zdfw1fwl01fwl02 |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
*TODO
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "CommonHeader": { "TimeStamp": 1500997725298, "APIver": "1.01", "RequestID": "664be3d2-6c12-4f4b-a3e7-c349acced200", "RequestTrack": [], "Flags": [] }, "Action": "ModifyConfig", "Payload": { "generic-vnf.vnf-id": "fw0001vm001fw001", "pg-streams": { "pg-stream": [ { "inventory-response-item": [ { "model-name": "service-instance", "generic-vnf": { "vnf-id": "de7cc3ab-0212-47df-9e64-da1c79234deb", "vnf-name": "ZRDM2MMEX39", "vnf-type": "vMME Svc Jul 14/vMME VF Jul 14 1", "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", "orchestration-status": "active", "in-maint": false, "is-closed-loop-disabled": false, "resource-version": "1503082370097", "model-invariant-id": "82194af1-3c2c-485a-8f44-420e22a9eaa4", "model-version-id": "46b92144-923a-4d20-b85a-3cbd847668a9" } "id": "fw_udp1", "extrais-propertiesenabled": {},"true" }, "inventory-response-items": { { "inventory-response-item "id": ["fw_udp2", "is-enabled": "true" { }, { "model-name "id": "service-instancefw_udp3", "service-instance "is-enabled": {"true" }, { "service-instance- "id": "37b8cdb7-94eb-468f-a0c2-4e3c3546578efw_udp4", "is-enabled": "true" }, "service-instance-name": "Changed Service Instance NAME", { "id": "fw_udp5", "model-invariant-id "is-enabled": "82194af1-3c2c-485a-8f44-420e22a9eaa4",true" }] } } } |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
ACCEPT response { "Status": { "model-version-idValue": "46b92144-923a-4d20-b85a-3cbd847668a9ACCEPTED", "Code": "100" }, "Payload": { "resourcepg-versionstreams": "1503082993532", "orchestration-status": "Active" }, "extra-properties": {}, "inventory-response-items": { "inventory-response-item": [ {\\\"pg-streams\\\": {\\\"pg-stream\\\":[{\\\"id\\\":\\\"fw_udp1\\\", \\\"is-enabled\\\":\\\"true\\\"},{\\\"id\\\":\\\"fw_udp2\\\", \\\"is-enabled\\\":\\\"true\\\"},{\\\"id\\\":\\\"fw_udp3\\\", \\\"is-enabled\\\":\\\"true\\\"},{\\\"id\\\":\\\"fw_udp4\\\", \\\"is-enabled\\\":\\\"true\\\"},{\\\"id\\\":\\\"fw_udp5\\\", \\\"is-enabled\\\":\\\"true\\\"}]}}", "generic-vnf.vnf-id": "fw0001vm001fw001" }, "CommonHeader": { "TimeStamp": "1493841850199", "APIver": "1.01", "model-name"RequestID": "pnf664be3d2-6c12-4f4b-a3e7-c349acced200", "SubrequestID": null, "OriginatorID": null } } SUCCESS response { "generic-vnf"Status": { "vnf-id"Value": "jimmy-testSUCCESS", "Code": "400" }, "Payload": { "vnf-name"pg-streams": "jimmy-test-vnf", "vnf-type": "vMME Svc Jul 14/vMME VF Jul 14 1", "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", "orchestration-status": "active", "in-maint": false, "is-closed-loop-disabled": false, "resource-version": "1504013830207", "model-invariant-id": "862b25a1-262a-4961-bdaa-cdc55d69785a", "model-version-id": "e9f1fa7d-c839-418a-9601-03dc0d2ad687" }, "extra-properties": {} }, { "model-name": "service-instance", "generic-vnf": { "vnf-id": "jimmy-test-vnf2", "vnf-name": "jimmy-test-vnf2-named", "vnf-type": "vMME Svc Jul 14/vMME VF Jul 14 1", "service-id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb", "orchestration-status": "active", "in-maint": false, "is-closed-loop-disabled": false, "resource-version": "1504014833841", "model-invariant-id": "82194af1-3c2c-485a-8f44-420e22a9eaa4", "model-version-id": "46b92144-923a-4d20-b85a-3cbd847668a9" }, "extra-properties": {} } ] } } ] } } ] } | ||||||
Code Block | ||||||
| ||||||
{ "CommonHeader": { "TimeStamp": 1478721261714, "APIver": "1.01", "OriginatorID": "policy.pdp01", "RequestID": "f889f60c-a715-48c0-801e-26428f6176b9", {\\\"pg-streams\\\": {\\\"pg-stream\\\":[{\\\"id\\\":\\\"fw_udp1\\\", \\\"is-enabled\\\":\\\"true\\\"},{\\\"id\\\":\\\"fw_udp2\\\", \\\"is-enabled\\\":\\\"true\\\"},{\\\"id\\\":\\\"fw_udp3\\\", \\\"is-enabled\\\":\\\"true\\\"},{\\\"id\\\":\\\"fw_udp4\\\", \\\"is-enabled\\\":\\\"true\\\"},{\\\"id\\\":\\\"fw_udp5\\\", \\\"is-enabled\\\":\\\"true\\\"}]}}", "SubRequestIDgeneric-vnf.vnf-id": "1fw0001vm001fw001", }, "CommonHeader": { "RequestTrackTimeStamp": []"1493841850199", "APIver": "1.01", "Flags"RequestID": []"664be3d2-6c12-4f4b-a3e7-c349acced200", "SubrequestID": null, }, "OriginatorID": null } } |
vDNS Use Case
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
tca_policy: "{ "domain "Action": "ModifyConfigmeasurementsForVfScaling", "PayloadmetricsPerEventName": { [{ "generic-vnf.vnf-id"eventName": "fw001vm001tg001vLoadBalancer", "pg-streams"controlLoopSchemaType": {"VM", "policyScope": "DCAE", "pg-stream": [{ "policyName": "DCAE.Config_tca-hi-lo", "policyVersion": "v0.0.1", "thresholds": [{ "idclosedLoopControlName": "fw_udp1ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3", "version": "1.0.2", "is-enabled"fieldPath": "true"$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta", }, {"thresholdValue": 300, "direction": "GREATER_OR_EQUAL", "idseverity": "fw_udp2CRITICAL", "closedLoopEventStatus": "ONSET" }] "is-enabled": "true" }, { }] }" |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
controlLoop: version: 2.0.0 controlLoopName: ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3 trigger_policy: unique-policy-id-1-scale-up timeout: 1200 abatement: false policies: - id: unique-policy-id-1-scale-up name: Create a new VF Module description: actor: SO recipe: VF Module Create target: type: VNF retry: 0 timeout: 1200 success: final_success failure: final_failure "id"failure_timeout: "fw_udp3",final_failure_timeout failure_retries: final_failure_retries failure_exception: final_failure_exception failure_guard: final_failure_guard |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "closedLoopEventClient": "DCAE_INSTANCE_ID.dcae-tca", "is-enabledpolicyVersion": "true"1.0.0.5", "policyName": "vLoadBalancer", }, {"policyScope": "resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=SampleClosedLoop", "target_type": "VM", "idAAI": "fw_udp4",{ "vserver.vserver-name": "dfw1lb01lb01" "is-enabled": "true"}, "closedLoopAlarmStart": 1484677482204798, }, {"closedLoopEventStatus": "ONSET", "closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3", "version": "1.0.2", "idtarget": "fw_udp5vserver.vserver-name", "requestID": "97964e10-686e-4790-8c45-bdfa61df770f", "from": "DCAE" } |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "query-parameters": { "named-query": { "named-query-uuid": "is-enabled": "true"4ff56a54-9e3f-46b7-a337-07a1d3c6b469" } }, "instance-filters": { "instance-filter": [{ "vserver": { }] "vserver-name": "dfw1lb01lb01" } }] } } |
Code Block | ||
---|---|---|
| ||
*TODO show the APPC response messages |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
tca_policy: "{ "domain "inventory-response-item": "measurementsForVfScaling",[ "metricsPerEventName": [ { "eventName": "vLoadBalancer", "controlLoopSchemaTypevserver": "VM", { "policyScope": "DCAE", "policyNamevserver-id": "DCAE.Config_tca-hi-lo6ed3642c-f7a1-4a7c-9290-3d51fe1531eb", "policyVersion": "v0.0.1", "thresholdsvserver-name": ["zdfw1lb01lb02", { "closedLoopControlNamevserver-name2": "CL-LBAL-LOW-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241AB1Azdfw1lb01lb02", "version "prov-status": "1.0.2ACTIVE", "fieldPath "vserver-selflink": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulatedhttp://10.12.25.2:8774/v2.1/41d6d38489bd40b09ea8a6b6b852dcbd/servers/6ed3642c-f7a1-4a7c-9290-3d51fe1531eb", "thresholdValue "in-maint": 500false, "directionis-closed-loop-disabled": "LESS_OR_EQUAL"false, "severity "resource-version": "MAJOR1510606403522", "closedLoopEventStatus": "ONSET" }, }, "extra-properties": {}, "closedLoopControlName": "CLinventory-LBAL-HIGH-TRAFFIC-SIG-0C5920A6-B564-8035-C878-0E814352BC2B",response-items": { "version "inventory-response-item": "1.0.2",[ "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedBroadcastPacketsAccumulated", "thresholdValue": 5000, { "direction": "GREATER_OR_EQUAL", "severitymodel-name": "CRITICALvLoadBalancer", "closedLoopEventStatus": "ONSET" } ]"generic-vnf": { } ] }" | ||||||
Code Block | ||||||
| ||||||
{ "closedLoopEventClientvnf-id": "DCAE_INSTANCE_ID.dcae-tcadb373a8d-f7be-4d02-8ac8-6ca4c305d144", "policyVersion "vnf-name": "1.0.0.5Vfmodule_vLB1113", "policyNamevnf-type": "vLoadBalancer-1106/vLoadBalancer 0", "policyScope "service-id": "resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=SampleClosedLoop66f157fc-4148-4880-95f5-e120677e98d1", "target_type": "VM", "prov-status": "PREPROV", "AAI": { "vserver.vserverorchestration-namestatus": "dfw1lb01lb01Created", }, "closedLoopAlarmStart"in-maint": 1484677482204798false, "closedLoopEventStatus": "ONSET", "closedLoopControlName": "CL-DNS-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8", is-closed-loop-disabled": false, "resource-version": "1.0.21510604011851", "target": "vserver.vserver-name", "requestID"model-invariant-id": "97964e10cee050ed-686e92a5-4790494f-8c45ab04-bdfa61df770f234307a846dc", "from": "DCAE" } | ||||||
Code Block | ||||||
| ||||||
{ "query-parameters": { "named-query": { "namedmodel-queryversion-uuidid": "4ff56a54fd65becc-9e3f6b2c-46b74fe8-a337ace9-07a1d3c6b469cc29db9a3da2", } }, "model-customization-id": "instance-filters": { 1983c783-444f-4e79-af3a-85e5d49628f3", "instance-filter": [{ "vserver": { "vservernf-nametype": "dfw1lb01lb01", } }] } } | ||||||
Code Block | ||||||
| ||||||
{ "inventorynf-response-itemfunction": [ "", { "extranf-propertiesrole": {}"", "inventory-response-items": { "inventorynf-responsenaming-itemcode": ["" { }, "extra-properties": { "extra-property": [ { "property-name": "model-ver.model-nameversion-id", "property-value": "c15ce9e1fd65becc-6b2c-e9144fe8-4c8face9-b8bbcc29db9a3da2" }, { "property-name": "model-ver.model-typename", "property-value": "resourcevLoadBalancer" }, { "property-name": "model.model-versiontype", "property-value": "1resource" }, { "property-name": "model.model-invariant-id", "property-value": "033a32edcee050ed-aa6592a5-4764494f-a736ab04-36f2942f1aa0234307a846dc" }, { "property-name": "model-ver.model-name-version-id", "property-value": "d4d072dc-4e21-4a03-9524-628985819a8e1.0" } ] }, "genericinventory-response-vnfitems": { "ininventory-response-maintitem": false,[ "is-closed-loop-disabled": false, { "orchestration-status": "Created", "persona-model-idname": "033a32ed-aa65-4764-a736-36f2942f1aa0vLoadBalancer-1106", "persona-model-version": "1.0", "service-instance": { "resource-version": "1485542422", "service-instance-id": "b3f706413b12f31f-bdb98f2d-40304f5c-825eb875-6abb73a1f92961ff1194b941", "vnf-id": "594e2fe0-48b8-41ff-82e2-3d4bab69b192", "service-instance-name": "vLoadBalancer-1113", "vnf-name": "Vnf_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8", "vnfmodel-invariant-typeid": "8330e9321321d60d-2a23f7ff-49434300-8606/c15ce9e1-e914-4c8f-b8bb 1" 96c2-6bf0b3268b7a", }, "model-version-id": "732d4692-4b97-46f9-a996-0b3339e88c50", "inventory-response-items": { "inventoryresource-response-itemversion": ["1510603936425" { }, "extra-properties": { "extra-property": [ { "property-name": "model-ver.model-nameversion-id", "property-value": "8330e932732d4692-4b97-2a2346f9-4943a996-86060b3339e88c50" }, { "property-name": "model-ver.model-typename", "property-value": "servicevLoadBalancer-1106" }, { "property-name": "model.model-versiontype", "property-value": "1service" }, { "property-name": "model.model-invariant-id", "property-value": "4fcbc1c01321d60d-7793f7ff-46d84300-8aa196c2-fa1c2ed9ec7b6bf0b3268b7a" }, { "property-name": "model-ver.model-name-version-id", "property-value": "5c996219-b2e2-4c76-9b43-7e8672a33c1d" 1.0" } ] } } ] }, },{ "servicemodel-instancename": { "Vloadbalancer..base_vlb..module-0", "personavf-model-idmodule": "4fcbc1c0-7793-46d8-8aa1-fa1c2ed9ec7b",{ "personavf-modelmodule-versionid": "1.0e6b3e3eb-34e1-4c00-b8c1-2a4fbe479b12", "resourcevf-module-versionname": "1485542400Vfmodule_vLB1113-1", "serviceheat-instancestack-id": "cf8426a6-0b53-4e3d-bfa6-4b2f4d5913a5Vfmodule_vLB1113-1/3dd6d900-772f-4fcc-a0cb-e250ab2bb4db", "serviceorchestration-instance-namestatus": "Service_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8"active", } "is-base-vf-module": true, }, "resource-version": "1510604612557", { "model-invariant-id": "6d760188-9a24-451a-b05b-e08b86cb94f2", "extra-properties": { "model-version-id": "93facad9-55f2-4fe0-9574-814c2bc2d071", "extra-property": [ "model-customization-id": "93fd5bd4-8051-4074-8530-c0c504604df5", { "module-index": 0 "property-name": "model.model-name", }, "property-value": "C15ce9e1E9144c8fB8bb..base_vlb..module-0"extra-properties": { },"extra-property": [ { "property-name": "model-ver.model-typeversion-id", "property-value": "resource93facad9-55f2-4fe0-9574-814c2bc2d071" }, { "property-name": "model-ver.model-versionname", "property-value": "1Vloadbalancer..base_vlb..module-0" }, { "property-name": "model.model-idtype", "property-value": "79ee24cd-fc9a-4f14-afae-5e1dd2ab2941resource" }, { "property-name": "model.model-nameinvariant-version-id", "property-value": "5484cabb6d760188-1a0d9a24-4f29451a-a616b05b-094a3f643d73e08b86cb94f2" }, ] { }, "modelproperty-name": "C15ce9e1E9144c8fB8bb..base_vlb..module-0model-ver.model-version", "vf-module": { "property-value": "1" "heat-stack-id": "Vfmodule_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8/5845f37b-6cda-4e91-8ca3-f5572d226488", } "is-base-vf-module": true, ] "orchestration-status": "active", } "persona-model-id": "79ee24cd-fc9a-4f14-afae-5e1dd2ab2941", }, "persona-model-version": "1", { "resourcemodel-versionname": "1485542667Vloadbalancer..dnsscaling..module-1", "vf-module-id": "b0eff878-e2e1-4947-9597-39afdd0f51dd",-module": { "vf-module-nameid": "Vfmoduledummy_Ete_Named90e1ab3db373a8d-dcd5f7be-48774d02-9edb8ac8-eadfc84e32c86ca4c305d144", } "vf-module-name": "dummy_db373a8d-f7be-4d02-8ac8-6ca4c305d144", }, "is-base-vf-module": false, { "extraresource-propertiesversion": {"1510610079687", "extramodel-invariant-propertyid": ["356a1cff-71f2-4086-9980-a2927ce11c1c", { "model-version-id": "6b93d804-cfc8-4be3-92cc-9336d135859a" "property-name": "model.model-name", }, "propertyextra-valueproperties": "C15ce9e1E9144c8fB8bb..dnsscaling..module-1"{ },"extra-property": [ { "property-name": "model-ver.model-version-typeid", "property-value": "resource6b93d804-cfc8-4be3-92cc-9336d135859a" }, { "property-name": "model-ver.model-versionname", "property-value": "Vloadbalancer..dnsscaling..module-1" }, { "property-name": "model.model-idtype", "property-value": "f32568ec-2f1c-458a-864b-0593d53d141aresource" }, { "property-name": "model.model-nameinvariant-version-id", "property-value": "69615025356a1cff-879d71f2-4f0d4086-afe39980-b7d1a7eeed1f" a2927ce11c1c" }, } { ] "property-name": "model-ver.model-version", }, "vfproperty-modulevalue": {"1" "is-base-vf-module": false, } "persona-model-id": "f32568ec-2f1c-458a-864b-0593d53d141a", ] } "persona-model-version": "1.0", } "resource-version": "1485561752", ] } "vf-module-id": "dummy", }, { "vf-module-nametenant": "dummy"{ "tenant-id": "41d6d38489bd40b09ea8a6b6b852dcbd", } "tenant-name": "Integration-SB-00", }, "resource-version": "1509587770200" { }, "extra-properties": {}, "inventory-response-items": { "extra-property": [ "inventory-response-item": [ { "cloud-region": { "property-name": "model.model-name", "cloud-owner": "CloudOwner", "property-value": "C15ce9e1E9144c8fB8bb..dnsscaling..module-1" "cloud-region-id": "RegionOne", }, "cloud-type": "SharedNode", { "owner-defined-type": "OwnerType", "propertycloud-region-nameversion": "model.model-typev1", "property-value"cloud-zone": "resourceCloudZone", "sriov-automation": false, }, "resource-version": "1509587770092" { }, "property-name": "model.model-version", "extra-properties": {} "property-value": "1" } ] }, } } {] } } ] } |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
NOTE: Robot must add preload for dummy module for this to work. { "requestDetails": { "modelInfo": { "property-namemodelType": "model.model-idvfModule", "modelInvariantId": "356a1cff-71f2-4086-9980-a2927ce11c1c", "modelVersionId": "6b93d804-cfc8-4be3-92cc-9336d135859a", "modelName": "Vloadbalancer..dnsscaling..module-1", "modelVersion": "1" }, "cloudConfiguration": { "property-valuelcpCloudRegionId": "f32568ec-2f1c-458a-864b-0593d53d141a"RegionOne", "tenantId": "41d6d38489bd40b09ea8a6b6b852dcbd" }, "requestInfo": { "instanceName": "vDNS_vLB1113-1", "source": "POLICY", }"suppressRollback": false, "requestorId": "policy" }, "relatedInstanceList": [ { "relatedInstance": { "instanceId": "3b12f31f-8f2d-4f5c-b875-61ff1194b941", { "modelInfo": { "modelType": "service", "modelInvariantId": "1321d60d-f7ff-4300-96c2-6bf0b3268b7a", "property-namemodelVersionId": "model.model-name-version-id",732d4692-4b97-46f9-a996-0b3339e88c50", "modelName": "vLoadBalancer-1106", "modelVersion": "1.0" } } "property-value": "69615025-879d-4f0d-afe3-b7d1a7eeed1f" }, { "relatedInstance": { "instanceId": "db373a8d-f7be-4d02-8ac8-6ca4c305d144", "modelInfo": { } "modelType": "vnf", "modelInvariantId": "cee050ed-92a5-494f-ab04-234307a846dc", "modelVersionId": "fd65becc-6b2c-4fe8-ace9-cc29db9a3da2", ] "modelName": "vLoadBalancer", "modelVersion": "1.0", "modelCustomizationName": },"vLoadBalancer 0" } } } ], "requestParameters": "vf-module{} } } |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
SUCCESS: { "requestReferences": { "instanceId": "ff305d54-75b4-ff1b-bdb2-eb6b9e5460ff", "requestId": "e4f95e0c-a013-4530-8e59-c5c5f9e539b6" }, "httpResponseCode": 200 } |
VOLTE Use Case
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
controlLoop: version: 2.0.0 controlLoopName: ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b trigger_policy: unique-policy-id-1-restart timeout: 3600 abatement: false policies: "heat-stack-id": "vDNS_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8/f447ce51-14dd-4dcd-9957-68a047c79673",- id: unique-policy-id-1-restart name: Restart the VM description: actor: VFC recipe: Restart target: type: VM retry: "is-base-vf-module": false,3 timeout: 1200 success: final_success failure: final_failure failure_timeout: final_failure_timeout failure_retries: final_failure_retries failure_exception: final_failure_exception failure_guard: final_failure_guard |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "closedLoopEventClient": "DCAE.HolmesInstance", "policyVersion": "1.0.0.5", "policyName": "vVOLTE", "policyScope": "resource=volte,service=VolteSErvice,type=SampleType,closedLoopControlName=CL-VOLTE-SIG-d925ed73-8231-4d02-9545-db4e101f88f8", "orchestration-statustarget_type": "activeVM", "AAI": { "vserver.vserver-name": "dfw1lb01lb01", "service-instance.service-instance-id" : "TBD", "generic-vnf.vnf-id" : "TBD", "generic-vnf.vnf-name" : "TBD" }, "closedLoopAlarmStart": 1484677482204798, "closedLoopEventStatus": "ONSET", "persona-model-id"closedLoopControlName": "f32568ec-2f1c-458a-864b-0593d53d141aControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b", "version": "1.0.2", "target": "vserver.vserver-name", "requestID": "97964e10-686e-4790-8c45-bdfa61df770f", "persona-model-version"from": "DCAE" } |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
This call is a simple GET in order to retrieve "is-closed-loop-diable" flag. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Below is a sample GET response format. Field values are just examples. Will update to real values later. { "vnf-id": "5e49ca06-2972-4532-9ed4-6d071588d792", "vnf-name": "USUCP0PCOIL0110UJRT01", "vnf-type": "RT1.0", "resource-version": "1485562712", "vf-module-id": "8cd79e44-1fae-48c1-a160-609f90b46749"service-id": "d7bb0a21-66f2-4e6d-87d9-9ef3ced63ae4", "equipment-role": "UCPE", "orchestration-status": "created", "management-option": "ATT", "ipv4-oam-address": "32.40.68.35", "ipv4-loopback0-address": "32.40.64.57", "nm-lan-v6-address": "2001:1890:e00e:fffe::1345", "management-v6-address": "2001:1890:e00e:fffd::36", "in-maint": false, "is-closed-loop-disabled": false, "resource-version": "1493389458092", "relationship-list": {"relationship": [ { "related-to": "service-instance", "vfrelated-module-namelink": "vDNS_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8" }https://aai-int1.test.att.com:8443/aai/v9/business/customers/customer/1610_Func_Global_20160817084727/service-subscriptions/service-subscription/uCPE-VMS/service-instances/service-instance/USUCP0PCOIL0110UJZZ01", "relationship-data": [ { } "relationship-key": "customer.global-customer-id", ]"relationship-value": "1610_Func_Global_20160817084727" }, }{ }"relationship-key": "service-subscription.service-type", {"relationship-value": "uCPE-VMS" }, "extra-properties": {}, "inventoryrelationship-response-itemskey": { "service-instance.service-instance-id", "inventoryrelationship-response-itemvalue": ["USUCP0PCOIL0110UJZZ01" } ], "related-to-property": {[{"property-key": "service-instance.service-instance-name"}] }, { "related-to": "vserver", "cloud-region": { "related-link": "https://aai-int1.test.att.com:8443/aai/v9/cloud-infrastructure/cloud-regions/cloud-region/att-aic/AAIAIC25/tenants/tenant/USUCP0PCOIL0110UJZZ01%3A%3AuCPE-VMS/vservers/vserver/3b2558f4-39d8-40e7-bfc7-30660fb52c45", "cloud-owner": "Rackspace", "relationship-data": [ { "relationship-key": "cloud-region-id": "DFW.cloud-owner", "cloudrelationship-region-versionvalue": "v1att-aic", }, { "cloudrelationship-typekey": "SharedNodecloud-region.cloud-region-id", "relationship-value": "AAIAIC25" }, "cloud-zone": "CloudZone", { "relationship-key": "tenant.tenant-id", "ownerrelationship-defined-typevalue": "OwnerType",USUCP0PCOIL0110UJZZ01::uCPE-VMS" }, { "resourcerelationship-versionkey": "1485465545vserver.vserver-id", "relationship-value": "3b2558f4-39d8-40e7-bfc7-30660fb52c45" } } ], "related-to-property": [ { "property-key": "vserver.vserver-name", "extra-properties": {} "property-value": "USUCP0PCOIL0110UJZZ01-vsrx" }] } ]} } |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Request URI: } POST http(s)://[hostname][:port]/api/nslcm/v1/ns/{nsInstanceId }/heal Request JSON: { " healVnfData": { “vnfInstanceId”: ”1”, “cause”: ”vm is ]down”, “additionalParams”: { “action”: }”restartvm”, “actionvminfo”: { "tenant": { “vmid”: ”33”, “vmname”: ”xgw "resource-version": "1485465545", smp11” } } } } |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Response JSON with response "tenant-id": "1015548", code 202: { “jobId”:”1” } Get Operation Status to read the status GET http(s)://[hostname][:port]/api/nslcm/v1/jobs/{jobId}&responseId={responseId} Response JSON with response code 200: { "jobId": "1234566", "responseDescriptor": { "tenant-nameprogress": "101554840", "status": "proccessing", "statusDescription": "OMC VMs are decommissioned in }VIM", "errorCode": null, "responseId": "42", } "responseHistoryList": [{ ] "progress": "40", }, "vserverstatus": {"proccessing", "in-maintstatusDescription": false"OMC VMs are decommissioned in VIM", "is-closed-loop-disablederrorCode": falsenull, "prov-statusresponseId": "ACTIVE1", "resource-version": "1485546436",}, { "vserver-idprogress": "70f081eb-2a87-4c81-9296-4b93d7d145c641", "vserver-namestatus": "vlb-lb-32c8proccessing", "vserver-name2": "vlb-lb-32c8statusDescription": "OMC VMs are decommissioned in VIM", "vserver-selflinkerrorCode": "https://dfw.servers.api.rackspacecloud.com/v2/1015548/servers/70f081eb-2a87-4c81-9296-4b93d7d145c6"null, } "responseId": "2" } ] } | ||||||
Code Block | ||||||
*TODO show the API call to SO This format should not have changed from R0 |
Code Block |
---|
*TODO show the SO API response message |
...
}
]
}
} |
vCPE Use Case
Code Block | ||||||
---|---|---|---|---|---|---|
Code Block | ||||||
| ||||||
*TBD from Holmes Team
| ||||||
| ||||||
tca_policy: "{ "domain": "measurementsForVfScaling", "metricsPerEventName": [{ "closedLoopEventClient "eventName": "DCAE.HolmesInstanceMeasurement_vGMUX", "policyVersioncontrolLoopSchemaType": "1.0.0.5VNF", "policyNamepolicyScope": "vVOLTEDCAE", "policyScopepolicyName": "resource=volte,service=VolteSErvice,type=SampleType,closedLoopControlName=CL-VOLTE-SIG-d925ed73-8231-4d02-9545-db4e101f88f8DCAE.Config_tca-hi-lo", "target_typepolicyVersion": "VMv0.0.1", "AAIthresholds": [{ # the value "dfw1lb01lb01" comes from VES sourceName field "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", "vserver.vserver-nameversion": "dfw1lb01lb011.0.2", # # WE ARE TRYING TO DETERMINE IF HOLMES CAN POPULATE SOME OF THESE VALUES # "service-instance.service-instance-id" : "TBD - Can Holmes provide this?", "generic-vnf.vnf-id" : "TBD", "vserver.vserver-id" : "TBD" "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value", "thresholdValue": 0, }"direction": "EQUAL", "closedLoopAlarmStartseverity": 1484677482204798"MAJOR", "closedLoopEventStatus": "ONSET", ABATED" }, { "closedLoopControlName": "CLControlLoop-VOLTEvCPE-SIG48f0c2c3-d925ed73a172-82314192-4d029ae3-9545-db4e101f88f8052274181b6e", "version": "1.0.2", "1.0.2", "fieldPath": "$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value", "targetthresholdValue": "vserver.vserver-name"0, "requestIDdirection": "97964e10-686e-4790-8c45-bdfa61df770fGREATER", "from": "DCAE" } | ||||||
Code Block | ||||||
* TODO Sample A&AI call to retrieve these values: "service-instance.service-instance-id" : "TBD - Can Holmes provide this?", "generic-vnf.vnf-id" : "TBD", "vserver.vserver-id" : "TBD" May require 2 calls. We are also hoping Holmes could prepopulate this if that team is going to retrieve topology details from A&AI anyway. |
Code Block |
---|
* TODO - A&AI response(s) |
Code Block |
---|
*TODO Call to VFC details |
Code Block |
---|
*TODO response from VFC |
vCPE Use Case
"severity": "CRITICAL",
"closedLoopEventStatus": "ONSET"
}]
}]
}" |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Code Block | ||||||
| ||||||
tca_policy: "{controlLoop: version: 2.0.0 "domain": "measurementsForVfScaling", "metricsPerEventName": [ { "eventName": "vCPEvGMUXPacketLoss",controlLoopName: ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e trigger_policy: unique-policy-id-1-restart timeout: 3600 abatement: true policies: - id: unique-policy-id-1-restart name: Restart "controlLoopSchemaType":the "VM", "policyScope": "DCAE",description: "policyName": "DCAE.Config_tca-hi-lo",actor: APPC "policyVersion"recipe: "v0.0.1",Restart "thresholds": [target: type: {VM retry: 3 "closedLoopControlName": "CL-vCPEvGMUX-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241ABA1",timeout: 1200 success: final_success "version": "1.0.2",failure: final_failure failure_timeout: final_failure_timeout "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",failure_retries: final_failure_retries failure_exception: final_failure_exception failure_guard: final_failure_guard |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "thresholdValue": 0, "directionclosedLoopControlName": "EQUALControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", "severityversion": "MAJOR1.0.2", "closedLoopEventStatus": "ABATED "requestID": "0abc0000-b032-4e4b-bd30-88260f444888", }, "closedLoopAlarmStart": 1478189220547, { "closedLoopControlNameclosedLoopEventClient": "CL-vCPEvGMUX-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241ABA1DCAE_INSTANCE_ID.dcae-tca", "versiontarget_type": "1.0.2VNF", "fieldPathtarget": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDeltageneric-vnf.vnf-name", "thresholdValueAAI": 1000,{ "direction": "GREATER_OR_EQUAL", "severity"generic-vnf.vnf-name" : "CRITICAL",vCPE_Infrastructure_vGMUX_demo_app" "closedLoopEventStatus": "ONSET" }, } "from": "DCAE", ] } ] }" | ||||||
Code Block | ||||||
| ||||||
{"policyScope": "DCAE", "closedLoopControlNamepolicyName": "CL-vCPEvGMUX-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241ABA1DCAE.Config_tca-hi-lo", "versionpolicyVersion": "1v0.0.21", "requestIDclosedLoopEventStatus": "0abc0000-b032-4e4b-bd30-88260f444888", ONSET" } |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "body": { "input": { "closedLoopAlarmStartcommon-header": 1478189220547,{ "closedLoopEventClienttimestamp": "tca.instance00001", 2017-08-25T21:06:23.037Z", "target_type"api-ver": "VNF2.00", "target"originator-id": "generic-vnf.vnf-ida20e2073-30b1-4357-893b-f5ed57b66ef0", "AAIrequest-id": {"a20e2073-30b1-4357-893b-f5ed57b66ef0", "generic-vnf.vnf"sub-request-id" : "????1", },"flags": {} }, "fromaction": "DCAERestart", "policyScope"action-identifiers": "DCAE", { "policyNamevnf-id": "DCAE.Config_tca-hi-lo", vCPE_Infrastructure_vGMUX_demo_app" } } }, "policyVersionversion": "v02.0.1", "rpc-name": "restart", "correlation-id": "a20e2073-30b1-4357-893b-f5ed57b66ef0-1", "closedLoopEventStatustype": "ONSETrequest" } |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "body": { "inputoutput": { "common-header": { "timestamp": "2017-08-25T21:06:23.037Z", "api-ver": "52.00", "originator-id": "a20e2073-30b1-4357-893b-f5ed57b66ef0", "request-id": "a20e2073-30b1-4357-893b-f5ed57b66ef0"-f5ed57b66ef0", "sub-request-id": "1", "flags": {} }, "status": { "code": 400, "sub-request-idmessage": "1Restart Successful", "flags": {} } }, "version": "2.00", "actionrpc-name": "restart", "correlation-id": "a20e2073-30b1-4357-893b-f5ed57b66ef0-1", "action-identifierstype": "response" } |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "vnf-id "closedLoopControlName": "fw0001vm001fw001" ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e", } } }, "version": "21.0.2", "rpc-name": "restart", "correlation-idrequestID": "a20e20730abc0000-30b1b032-43574e4b-893bbd30-f5ed57b66ef0-188260f444888", "type": "request" } | ||||||
Code Block | ||||||
| ||||||
{ "body": { "outputclosedLoopAlarmStart": {1478189220547, "common-header": { "timestampclosedLoopAlarmEnd": "2017-08-25T21:06:23.037Z"1478589220547, "api-verclosedLoopEventClient": "5.00DCAE_INSTANCE_ID.dcae-tca", "originator-id "target_type": "a20e2073-30b1-4357-893b-f5ed57b66ef0VNF", "request-id "target": "a20e2073generic-30b1-4357-893b-f5ed57b66ef0", vnf.vnf-name", "sub-request-id": "1", "AAI": { "generic-vnf.vnf-name" : "vCPE_Infrastructure_vGMUX_demo_app" "flags": {}, }, "statusfrom": {"DCAE", "codepolicyScope": 400"DCAE", "messagepolicyName": "Restart Successful"DCAE.Config_tca-hi-lo", } } }, "versionpolicyVersion": "2v0.0.1", "rpc-name": "restart", "correlation-id": "a20e2073-30b1-4357-893b-f5ed57b66ef0-1", "typeclosedLoopEventStatus": "responseABATED" } |