Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titlevFirewall - Operational Policy
linenumberstrue
collapsetrue
* TODO point to drools-application JUnit test operational policy

controlLoop:

  version: 2.0.0
  controlLoopName: ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a
  services:
    - serviceInvariantUUID: 5cfe6f4a-41bc-4247-8674-ebd4b98e35cc
      serviceUUID: 0f40bba5-986e-4b3c-803f-ddd1b7b25f24
      serviceName: 57e66ea7-0ed6-45c7-970f
  trigger_policy: unique-policy-id-1-modifyConfig
  timeout: 1200


policies:
  - id: unique-policy-id-1-modifyConfig
    name: modify packet gen config
    description:
    actor: APPC
    recipe: ModifyConfig
    target:
      resourceID: Eace933104d443b496b8.nodes.heat.vpg
	  type: VNF	
    retry: 0
    timeout: 300
    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
titleDCAE Control Loop Event (TCA) - vFirewall
linenumberstrue
collapsetrue
{
	"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-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
titlevDNS - Operational Policy
linenumberstrue
collapsetrue
TODO - show link to vDNS operational Policy
Code Block
titleDCAE Control Loop Event (TCA) - vDNS
linenumberstrue
collapsetrue
{controlLoop:
  version: 2.0.0
  controlLoopName: ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3
  services: 
    - serviceName: d4738992-6497-4dca-9db9
      serviceInvariantUUID: dc112d6e-7e73-4777-9c6f-1a7fb5fd1b6f
      serviceUUID: 2eea06c6-e1d3-4c3a-b9c4-478c506eeedf
  trigger_policy: unique-policy-id-1-scale-up
  timeout: 1200

policies:
  - "closedLoopEventClient": "DCAE_INSTANCE_ID.dcae-tca",id: unique-policy-id-1-scale-up
    name: Create a new VF Module
    description:
    "policyVersion": "1.0.0.5",actor: MSO
    recipe: VF Module Create
    target:
      type: VNF
     "policyName"retry: "vLoadBalancer",
0
    timeout: 1200
    success: final_success
    failure: final_failure
    "policyScope": "resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=SampleClosedLoop",failure_timeout: final_failure_timeout
    failure_retries: final_failure_retries
    failure_exception: final_failure_exception
    failure_guard: final_failure_guard
Code Block
titleDCAE Control Loop Event (TCA) - vDNS
linenumberstrue
collapsetrue
{  "target_type": "VM",
                "AAIclosedLoopEventClient": {
 "DCAE_INSTANCE_ID.dcae-tca",
                   "vserver.vserver-name"policyVersion": "dfw1lb01lb01"1.0.0.5",
                }"policyName": "vLoadBalancer",
                "closedLoopAlarmStartpolicyScope": 1484677482204798"resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=SampleClosedLoop",
                "closedLoopEventStatustarget_type": "ONSETVM",
                "closedLoopControlNameAAI": "CL-DNS-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8",{
                "version    "vserver.vserver-name": "1.0.2dfw1lb01lb01",
                "target": "vserver.vserver-name"},
                "requestIDclosedLoopAlarmStart": "97964e10-686e-4790-8c45-bdfa61df770f"1484677482204798,
                "from": "DCAE"
}
Code Block
titleAAI named-query request
linenumberstrue
collapsetrue
{
	"query-parametersclosedLoopEventStatus": {"ONSET",
     	"named-query": {
           	"named-query-uuidclosedLoopControlName": "4ff56a54-9e3f-46b7-a337-07a1d3c6b469"CL-DNS-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8",
        }
    },
    "instance-filtersversion": {
"1.0.2",
       	"instance-filter": [{
        	"vservertarget": {"vserver.vserver-name",
            	"vserver-name    "requestID": "dfw1lb01lb01"97964e10-686e-4790-8c45-bdfa61df770f",
            }
        }]
    }
}"from": "DCAE"
}
Code Block
titleAAI named-query responserequest
linenumberstrue
collapsetrue
{
    "inventory-response-item": [
       	"query-parameters": {
            "extra-properties	"named-query": {},
            "inventory-response-items": {	"named-query-uuid": "4ff56a54-9e3f-46b7-a337-07a1d3c6b469"
        }
    },
    "inventoryinstance-response-itemfilters": [{
    	"instance-filter": [{
               	"vserver": {
                        "extra-properties	"vserver-name": {"dfw1lb01lb01"
            }
        }]
    }
}
Code Block
titleAAI named-query response
linenumberstrue
collapsetrue
{
    "extrainventory-response-propertyitem": [
        {
                        {"extra-properties": {},
            "inventory-response-items": {
                "inventory-response-item": [
       "property-name": "model.model-name",
            {
                        "propertyextra-valueproperties": "c15ce9e1-e914-4c8f-b8bb"{
                                },"extra-property": [
                                {
                                    "property-name": "model.model-typename",
                                    "property-value": "resourcec15ce9e1-e914-4c8f-b8bb"
                                },
                                {
                                    "property-name": "model.model-versiontype",
                                    "property-value": "1resource"
                                },
                                {
                                    "property-name": "model.model-idversion",
                                    "property-value": "033a32ed-aa65-4764-a736-36f2942f1aa01"
                                },
                                {
                                    "property-name": "model.model-name-version-id",
                                    "property-value": "d4d072dc033a32ed-4e21aa65-4a034764-9524a736-628985819a8e36f2942f1aa0"
                                },
                            ]
                        },
                 {
       "generic-vnf": {
                            "inproperty-maintname": false"model.model-name-version-id",
                            "is-closed-loop-disabled": false,        "property-value": "d4d072dc-4e21-4a03-9524-628985819a8e"
                            "orchestration-status": "Created",
    }
                        "persona-model-id": "033a32ed-aa65-4764-a736-36f2942f1aa0",
     ]
                       "persona-model-version": "1.0" },
                            "resourcegeneric-versionvnf": "1485542422",{
                            "servicein-idmaint": "b3f70641-bdb9-4030-825e-6abb73a1f929"false,
                            "vnf-id": "594e2fe0-48b8-41ff-82e2-3d4bab69b192"is-closed-loop-disabled": false,
                            "vnforchestration-namestatus": "Vnf_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8Created",
                            "vnfpersona-model-typeid": "8330e932033a32ed-2a23aa65-49434764-8606/c15ce9e1-e914-4c8f-b8bb 1"a736-36f2942f1aa0",
                        }    "persona-model-version": "1.0",
                            "inventoryresource-response-itemsversion": {"1485542422",
                            "inventoryservice-response-itemid": ["b3f70641-bdb9-4030-825e-6abb73a1f929",
                                {"vnf-id": "594e2fe0-48b8-41ff-82e2-3d4bab69b192",
                                    "extra-properties": {"vnf-name": "Vnf_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8",
                            "vnf-type": "8330e932-2a23-4943-8606/c15ce9e1-e914-4c8f-b8bb 1"
          "extra-property": [
             },
                               "inventory-response-items": {
                            "inventory-response-item": [
                   "property-name": "model.model-name",
            {
                                    "propertyextra-valueproperties": "8330e932-2a23-4943-8606"{
                                            },"extra-property": [
                                            {
                                                "property-name": "model.model-typename",
                                                "property-value": "service8330e932-2a23-4943-8606"
                                            },
                                            {
                                                "property-name": "model.model-versiontype",
                                                "property-value": "1service"
                                            },
                                            {
                                                "property-name": "model.model-idversion",
                                                "property-value": "4fcbc1c0-7793-46d8-8aa1-fa1c2ed9ec7b1"
                                            },
                                            {
                                                "property-name": "model.model-name-version-id",
                                                "property-value": "5c9962194fcbc1c0-b2e27793-4c7646d8-9b438aa1-7e8672a33c1dfa1c2ed9ec7b"
                                            },
                                        ]
    {
                                },
                "property-name": "model.model-name-version-id",
                   "service-instance": {
                                        "persona-model-id"property-value": "4fcbc1c05c996219-7793b2e2-46d84c76-8aa19b43-fa1c2ed9ec7b7e8672a33c1d",
                                       "persona-model-version": "1.0",
      }
                                  "resource-version": "1485542400",
     ]
                                   "service-instance-id": "cf8426a6-0b53-4e3d-bfa6-4b2f4d5913a5",
    },
                                     "service-instance-name": "Service_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8"
{
                                        "persona-model-id": "4fcbc1c0-7793-46d8-8aa1-fa1c2ed9ec7b",
        }
                                },
"persona-model-version": "1.0",
                                    {    "resource-version": "1485542400",
                                    "extra-properties    "service-instance-id": {"cf8426a6-0b53-4e3d-bfa6-4b2f4d5913a5",
                                        "extraservice-instance-propertyname": ["Service_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8"
                                            {}
                                },
                "property-name": "model.model-name",
               {
                                 "property-value": "C15ce9e1E9144c8fB8bb..base_vlb..module-0"   "extra-properties": {
                                            },"extra-property": [
                                            {
                                                "property-name": "model.model-typename",
                                                "property-value": "resourceC15ce9e1E9144c8fB8bb..base_vlb..module-0"
                                            },
                                            {
                                                "property-name": "model.model-versiontype",
                                                "property-value": "1resource"
                                            },
                                            {
                                                "property-name": "model.model-idversion",
                                                "property-value": "79ee24cd-fc9a-4f14-afae-5e1dd2ab29411"
                                            },
                                            {
                                                "property-name": "model.model-name-version-id",
                                                "property-value": "5484cabb79ee24cd-1a0dfc9a-4f294f14-a616afae-094a3f643d735e1dd2ab2941"
                                            },
                                        ]
    {
                                            }    "property-name": "model.model-name-version-id",
                                    "model-name            "property-value": "C15ce9e1E9144c8fB8bb..base_vlb..module-0",
5484cabb-1a0d-4f29-a616-094a3f643d73"
                                     "vf-module": {
      }
                                  "heat-stack-id": "Vfmodule_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8/5845f37b-6cda-4e91-8ca3-f5572d226488",
     ]
                                   "is-base-vf-module": true },
                                        "orchestrationmodel-statusname": "activeC15ce9e1E9144c8fB8bb..base_vlb..module-0",
                                        "personavf-model-idmodule": "79ee24cd-fc9a-4f14-afae-5e1dd2ab2941",{
                                        "personaheat-modelstack-versionid": "1Vfmodule_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8/5845f37b-6cda-4e91-8ca3-f5572d226488",
                                        "resource-versionis-base-vf-module": "1485542667"true,
                                        "vf-module-id": "b0eff878-e2e1-4947-9597-39afdd0f51ddorchestration-status": "active",
                                        "vfpersona-modulemodel-nameid": "Vfmodule_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8"79ee24cd-fc9a-4f14-afae-5e1dd2ab2941",
                                    }
    "persona-model-version": "1",
                           },
                      "resource-version": "1485542667",
          {
                                    "extra-properties": {"vf-module-id": "b0eff878-e2e1-4947-9597-39afdd0f51dd",
                                        "extravf-module-propertyname": ["Vfmodule_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8"
                                    }
        {
                        },
                        "property-name": "model.model-name",
          {
                                      "property-value": "C15ce9e1E9144c8fB8bb..dnsscaling..module-1"extra-properties": {
                                            },"extra-property": [
                                            {
                                                "property-name": "model.model-typename",
                                                "property-value": "resourceC15ce9e1E9144c8fB8bb..dnsscaling..module-1"
                                            },
                                            {
                                                "property-name": "model.model-versiontype",
                                                "property-value": "1resource"
                                            },
                                            {
                                                "property-name": "model.model-idversion",
                                                "property-value": "f32568ec-2f1c-458a-864b-0593d53d141a1"
                                            },
                                            {
                                                "property-name": "model.model-name-version-id",
                                                "property-value": "69615025f32568ec-879d2f1c-4f0d458a-afe3864b-b7d1a7eeed1f0593d53d141a"
                                            },
                                        ]
    {
                                          }       "property-name": "model.model-name-version-id",
                                    "vf-module": {
            "property-value": "69615025-879d-4f0d-afe3-b7d1a7eeed1f"
                                 "is-base-vf-module": false,
          }
                              "persona-model-id": "f32568ec-2f1c-458a-864b-0593d53d141a",
         ]
                               "persona-model-version": "1.0",
    },
                                    "resourcevf-versionmodule": "1485561752",{
                                        "is-base-vf-module-id": "dummy"false,
                                        "vfpersona-modulemodel-nameid": "dummy"f32568ec-2f1c-458a-864b-0593d53d141a",
                                    }
    "persona-model-version": "1.0",
                           },
               "resource-version": "1485561752",
                 {
                                    "extra-properties"vf-module-id": {"dummy",
                                        "extravf-module-propertyname": [
      "dummy"
                                    }
   {
                             },
                   "property-name": "model.model-name",
            {
                                    "propertyextra-valueproperties": "C15ce9e1E9144c8fB8bb..dnsscaling..module-1"{
                                            },"extra-property": [
                                            {
                                                "property-name": "model.model-typename",
                                                "property-value": "resourceC15ce9e1E9144c8fB8bb..dnsscaling..module-1"
                                            },
                                            {
                                                "property-name": "model.model-versiontype",
                                                "property-value": "1resource"
                                            },
                                            {
                                                "property-name": "model.model-idversion",
                                                "property-value": "f32568ec-2f1c-458a-864b-0593d53d141a1"
                                            },
                                            {
                                                "property-name": "model.model-name-version-id",
                                                "property-value": "69615025f32568ec-879d2f1c-4f0d458a-afe3864b-b7d1a7eeed1f0593d53d141a"
                                            },
                                         ]   {
                                                "property-name": "model.model-name-version-id",
             },
                                    "vfproperty-modulevalue": {"69615025-879d-4f0d-afe3-b7d1a7eeed1f"
                                        "heat-stack-id": "vDNS_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8/f447ce51-14dd-4dcd-9957-68a047c79673",
   }
                                     "is-base-vf-module": false,
  ]
                                      "orchestration-status": "active"},
                                        "personavf-model-idmodule": "f32568ec-2f1c-458a-864b-0593d53d141a",{
                                        "personaheat-modelstack-versionid": "1.0vDNS_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8/f447ce51-14dd-4dcd-9957-68a047c79673",
                                        "resource-versionis-base-vf-module": "1485562712"false,
                                        "vforchestration-module-idstatus": "8cd79e44-1fae-48c1-a160-609f90b46749active",
                                        "vfpersona-modulemodel-nameid": "vDNS_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8"f32568ec-2f1c-458a-864b-0593d53d141a",
                                    }
    "persona-model-version": "1.0",
                           }
                            ]"resource-version": "1485562712",
                        }
                    }"vf-module-id": "8cd79e44-1fae-48c1-a160-609f90b46749",
                    {
                        "extravf-module-propertiesname": {},
              "vDNS_Ete_Named90e1ab3-dcd5-4877-9edb-eadfc84e32c8"
          "inventory-response-items": {
                            "inventory-response-item": [}
                                {}
                            ]
        "cloud-region": {
               }
                    },
     "cloud-owner": "Rackspace",
              {
                          "cloudextra-region-idproperties": "DFW"{},
                        "inventory-response-items": {
               "cloud-region-version": "v1",
            "inventory-response-item": [
                           "cloud-type": "SharedNode",
    {
                                    "cloud-zoneregion": "CloudZone",{
                                        "cloud-owner-defined-type": "OwnerTypeRackspace",
                                        "resourcecloud-region-versionid": "1485465545DFW",
                                    },
          "cloud-region-version": "v1",
                         "extra-properties": {}
              "cloud-type": "SharedNode",
                 }
                       "cloud-zone": "CloudZone",
    ]
                        },
            "owner-defined-type": "OwnerType",
           "tenant": {
                            "resource-version": "1485465545",
                            "tenant-id": "1015548",
        },
                        "tenant-name": "1015548"
           "extra-properties": {}
            }
                    }
                ]
            },]
            "vserver": {
           },
     "in-maint": false,
                   "is-closed-loop-disabled": false,
    tenant": {
            "prov-status": "ACTIVE",
                "resource-version": "14855464361485465545",
                            "vservertenant-id": "70f081eb-2a87-4c81-9296-4b93d7d145c61015548",
                   "vserver         "tenant-name": "vlb-lb-32c81015548",
                     "vserver-name2": "vlb-lb-32c8",   }
                "vserver-selflink": "https://dfw.servers.api.rackspacecloud.com/v2/1015548/servers/70f081eb-2a87-4c81-9296-4b93d7d145c6"    }
            }    ]
        }
    ]
}
Code Block
titleSO request
linenumberstrue
collapsetrue
{
  "requestDetails": {
},
            "modelInfovserver": {
          “modelType”: “vfModule”,
     "in-maint": false,
    “modelInvariantId”: “ff5256d2-5a33-55df-13ab-12abad84e7ff”,
          “modelNameVersionId”: “fe6478e5"is-ea33closed-3346-ac12-ab121484a3fe”loop-disabled": false,
          “modelName”: “vSAMP12..base..module-0”,
          "modelVersionprov-status": "1"
      }ACTIVE",
      “cloudConfiguration”: {
          “lcpCloudRegionId”"resource-version": “mdt1”"1485546436",
          “tenantId”: “88a6ca3ee0394ade9403f075db23167e”
      }"vserver-id": "70f081eb-2a87-4c81-9296-4b93d7d145c6",
      "requestInfo": {
          “instanceName”"vserver-name": “MSOTEST103a-vSAMP12_base_module-0”"vlb-lb-32c8",
          “source”: “VID”,
     "vserver-name2": "vlb-lb-32c8",
    “suppressRollback”: true
      },
      "relatedInstanceListvserver-selflink": [
"https://dfw.servers.api.rackspacecloud.com/v2/1015548/servers/70f081eb-2a87-4c81-9296-4b93d7d145c6"
          {  }
        }
    ]
}
Code Block
titleSO request
linenumberstrue
collapsetrue
{
  "requestDetails"  “relatedInstance”: {
      "modelInfo": {
        “instanceId”  “modelType”: “{serviceInstanceId}”“vfModule”,
          “modelInvariantId”: “ff5256d2-5a33-55df-13ab-12abad84e7ff”,
    “modelInfo”: {  
        “modelNameVersionId”: “fe6478e5-ea33-3346-ac12-ab121484a3fe”,
          “modelType”“modelName”: “service”“vSAMP12..base..module-0”,
          "modelVersion": "1"
       “modelInvariantId”: “ff3514e3-5a33-55df-13ab-12abad84e7ff”},
      “cloudConfiguration”: {
           “modelNameVersionId”“lcpCloudRegionId”: “fe6985cd-ea33-3346-ac12-ab121484a3fe”“mdt1”,
          “tenantId”:  “88a6ca3ee0394ade9403f075db23167e”
      “modelName”: “{parent service model name},
      "requestInfo": {
           "modelVersion": "1.0"“instanceName”: “MSOTEST103a-vSAMP12_base_module-0”,
          “source”: “VID”,
    }
      “suppressRollback”: true
      },
         },"relatedInstanceList": [
         {
            “relatedInstance”: {
               “instanceId”: “{vnfInstanceIdserviceInstanceId}”,
               "modelInfo"“modelInfo”: {  
                  “modelType”: “vnf”“service”,
                  “modelInvariantId”: “ff5256d1“ff3514e3-5a33-55df-13ab-12abad84e7ff”,
                  “modelNameVersionId”: “fe6478e4“fe6985cd-ea33-3346-ac12-ab121484a3fe”,
                  “modelName”: “vSAMP12”“{parent service model name}”,
                  "modelVersion": "1.0",
               }
   “modelCustomizationName”:  “vSAMP12 1”
      }
         },
         {
   }
         }“relatedInstance”: {
      ],
         “requestParameters”“instanceId”: {vnfInstanceId}”,
          “userParams”     "modelInfo": []{
      }
  }
}
Code Block
titleSO Response
linenumberstrue
collapsetrue
*TODO show the SO API response message

VOLTE Use Case

Code Block
titleVOLTE - Holmes Configuration Policy Payload
linenumberstrue
collapsetrue
*TBD from Holmes Team



Code Block
titleVOLTE - Operational Policy
linenumberstrue
collapsetrue
*TODO show Operational Policy
Code Block
titleDCAE Control Loop Event (HOLMES) - VOLTE
linenumberstrue
collapsetrue
{
“modelType”: “vnf”,
                  "closedLoopEventClient": "DCAE.HolmesInstance",
“modelInvariantId”: “ff5256d1-5a33-55df-13ab-12abad84e7ff”,
                  "policyVersion": "1.0.0.5"“modelNameVersionId”: “fe6478e4-ea33-3346-ac12-ab121484a3fe”,
                "policyName"  “modelName”: "vVOLTE"“vSAMP12”,
                  "policyScopemodelVersion": "resource=volte,service=VolteSErvice,type=SampleType,closedLoopControlName=CL-VOLTE-SIG-d925ed73-8231-4d02-9545-db4e101f88f81.0",
                  "target_type": "VM",“modelCustomizationName”: “vSAMP12 1”
               }
            }
    "AAI": {
								# the value "dfw1lb01lb01" comes from VES sourceName field     }
      ],
      “requestParameters”: {
          “userParams”: []
      }
  }
}
Code Block
titleSO Response
linenumberstrue
collapsetrue
SUCCESS:
{
	"requestReferences": {
    	"instanceId": "ff305d54-75b4-ff1b-bdb2-eb6b9e5460ff",
    	"requestId": "e4f95e0c-a013-4530-8e59-c5c5f9e539b6"
  	},
  	"httpResponseCode": 200
}


VOLTE Use Case

Code Block
titleVOLTE - Holmes Configuration Policy Payload
linenumberstrue
collapsetrue
*TBD from Holmes Team



Code Block
titleVOLTE - Operational Policy
linenumberstrue
collapsetrue
controlLoop:
  version: 2.0.0
  controlLoopName: ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b
  trigger_policy: unique-policy-id-1-restart
  timeout: 3600

policies:
  - id: unique-policy-id-1-restart
    name: Restart the VM
    description:
    actor: VFC
    recipe: Restart
    target:"vserver.vserver-name": "dfw1lb01lb01",
#
# 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"
                },
      type: VM
    retry: 3
    "closedLoopAlarmStart"timeout: 1484677482204798,1200
    success: final_success
    failure: final_failure
      "closedLoopEventStatus": "ONSET",failure_timeout: final_failure_timeout
    failure_retries: final_failure_retries
    failure_exception: final_failure_exception
    failure_guard: final_failure_guard
Code Block
titleDCAE Control Loop Event (HOLMES) - VOLTE
linenumberstrue
collapsetrue
{
	"closedLoopEventClient": "DCAE.HolmesInstance",
    "policyVersion  "closedLoopControlName": "CL-VOLTE-SIG-d925ed73-8231-4d02-9545-db4e101f88f8",
                "version": "1.0.0.25",
                "target"policyName": "vserver.vserver-namevVOLTE",
                "requestID"policyScope": "97964e10-686e-4790-8c45-bdfa61df770f",
         resource=volte,service=VolteSErvice,type=SampleType,closedLoopControlName=CL-VOLTE-SIG-d925ed73-8231-4d02-9545-db4e101f88f8",
       "from"target_type": "DCAEVM"
}
Code Block
titleA&AI Call
linenumberstrue
collapsetrue
* TODO Sample A&AI call to retrieve these values:


 								,
    "AAI": {
		"vserver.vserver-name": "dfw1lb01lb01",
 		"service-instance.service-instance-id" : "TBD - Can Holmes provide this?",
								"generic-vnf.vnf-id" : "TBD",
								"vserver.vserver-idname" : "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.

   },
    "closedLoopAlarmStart": 1484677482204798,
    "closedLoopEventStatus": "ONSET",
    "closedLoopControlName": "CL-VOLTE-SIG-d925ed73-8231-4d02-9545-db4e101f88f8",
    "version": "1.0.2",
    "target": "vserver.vserver-name",
    "requestID": "97964e10-686e-4790-8c45-bdfa61df770f",
    "from": "DCAE"
}
Code Block
titleA&AI Call
linenumberstrue
collapsetrue
Code Block
titleA&AI Response
linenumberstrue
collapsetrue
* TODO - A&AI response(s)
Code Block
titleVFC request
linenumberstrue
collapsetrue
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”: {
                “vmid”: ”33”,
                “vmname”: ”xgw - smp11”
            }
        }
    }
}
Code Block
titleVFC response
linenumberstrue
collapsetrue
Response JSON with response code     “actionvminfo”: {
                “vmid”: ”33”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": {
           “vmname”: ”xgw - smp11”"progress": "40",
            }
        }
    }
}
Code Block
titleVFC response
linenumberstrue
collapsetrue
Response JSON with response 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"status": "proccessing",
        "statusDescription": "OMC VMs are decommissioned in VIM",
        "errorCode": null,
        "responseId": "42",
        "responseDescriptorresponseHistoryList": [{
                "progress": "40",
                "status": "proccessing",
                "statusDescription": "OMC VMs are decommissioned in VIM",
                "errorCode": null,
: null,
                "responseId": "421",
        "responseHistoryList": [    }, {
                "progress": "4041",
                "status": "proccessing",
                "statusDescription": "OMC VMs are decommissioned in VIM",
                "errorCode": null,
                "responseId": "12"
            }, {
        ]
    }
}


vCPE Use Case


Code Block
titlevCPE - TCA Configuration Policy Payload
linenumberstrue
collapsetrue
tca_policy: "{
   "progressdomain": "41measurementsForVfScaling",
  "metricsPerEventName": [
     {
        "statuseventName": "proccessingvCPEvGMUXPacketLoss",
          "controlLoopSchemaType": "VM",
      "statusDescriptionpolicyScope": "OMC VMs are decommissioned in VIMDCAE",
                "errorCode"policyName": null"DCAE.Config_tca-hi-lo",
                "responseId"policyVersion": "2v0.0.1",
      "thresholds": [
     }
   {
     ]
    }
}

vCPE Use Case

Code Block
titlevCPE - TCA Configuration Policy Payload
linenumberstrue
collapsetrue
tca_policy: "{
  "domain": "measurementsForVfScaling",
  "metricsPerEventName": [ "closedLoopControlName": "CL-vCPEvGMUX-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241ABA1",
          "version": "1.0.2",
    {
      "eventNamefieldPath": "vCPEvGMUXPacketLoss$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
          "controlLoopSchemaTypethresholdValue": "VM"0,
          "policyScopedirection": "DCAEEQUAL",
          "policyNameseverity": "DCAE.Config_tca-hi-loMAJOR",
          "policyVersionclosedLoopEventStatus": "v0.0.1","ABATED
      "thresholds": [  },
        {
          "closedLoopControlName": "CL-vCPEvGMUX-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241ABA1",
          "version": "1.0.2",
          "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",
          "thresholdValue": 01000,
          "direction": "GREATER_OR_EQUAL",
          "severity": "MAJORCRITICAL",
          "closedLoopEventStatus": "ONSET"ABATED
        },
      ]
   { }
    
  ]
 
}"
Code Block
titlevCPE Operational Policy
linenumberstrue
collapsetrue
controlLoop:
   "closedLoopControlName": "CL-vCPEvGMUX-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241ABA1",
          "version": "1.0.2",
          "fieldPath": "$.event.measurementsForVfScalingFields.vNicPerformanceArray[*].receivedDiscardedPacketsDelta",version: 2.0.0
  controlLoopName: ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e
  trigger_policy: unique-policy-id-1-restart
  timeout: 3600

policies:
  - id: unique-policy-id-1-restart
    name: Restart the VM
    "thresholdValue": 1000,description:
    actor: APPC
     "direction"recipe: "GREATER_OR_EQUAL",Restart
    target:
      "severity"type: "CRITICAL",VM
    retry: 3
     "closedLoopEventStatus"timeout: "ONSET"1200
    success: final_success
    failure: }final_failure
    failure_timeout:  ]
final_failure_timeout
     }failure_retries: final_failure_retries
    
  ]
 
}"
Code Block
titlevCPE Operational Policy
linenumberstrue
collapsetrue
*TODO operational policy for vCPEfailure_exception: final_failure_exception
    failure_guard: final_failure_guard
Code Block
titleDCAE Control Loop Event (TCA) - vCPE
linenumberstrue
collapsetrue
{
            "closedLoopControlName": "CL-vCPEvGMUX-TRAFFIC-SIG-FB480F95-A453-6F24-B767-FD703241ABA1",
            "version": "1.0.2",
            "requestID": "0abc0000-b032-4e4b-bd30-88260f444888",
            "closedLoopAlarmStart": 1478189220547,
            "closedLoopEventClient": "tca.instance00001",
            "target_type": "VNF",
            "target": "generic-vnf.vnf-id",
            "AAI": {
                        "generic-vnf.vnf-id" : "????"
            },
            "from": "DCAE",
            "policyScope": "DCAE",
            "policyName": "DCAE.Config_tca-hi-lo",
            "policyVersion": "v0.0.1",
            "closedLoopEventStatus": "ONSET"
}

...