Versions Compared

Key

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

...

21. Push closed loop policy on Pap.
22. Run `vcpe.py loop` and verify vgmux is restarted

Code Block
titleClosed loop event messages
collapsetrue
VES_MEASUREMENT_OUTPUT event from VES collector to DCAE:
"{\"event\":{\"commonEventHeader\":{\"startEpochMicrosec\":1548802103113302,\"sourceId\":\"3dcbc028-45f0-4899-82a5-bb9cc7f14b32\",\"eventId\":\"Generic_traffic\",\"reportingEntityId\":\"No UUID available\",\"internalHeaderFields\":{\"collectorTimeStamp\":\"Tue, 01 29 2019 10:48:33 UTC\"},\"eventType\":\"HTTP request rate\",\"priority\":\"Normal\",\"version\":1.2,\"reportingEntityName\":\"zdcpe1cpe01mux01-201901291531\",\"sequence\":17,\"domain\":\"measurementsForVfScaling\",\"lastEpochMicrosec\":1548802113113302,\"eventName\":\"Measurement_vGMUX\",\"sourceName\":\"vcpe_vnf_9ab915ef-f44f-4fe5-a6ce_201901291531\"},\"measurementsForVfScalingFields\":{\"cpuUsageArray\":[{\"percentUsage\":0,\"cpuIdentifier\":\"cpu1\",\"cpuIdle\":47.1,\"cpuUsageSystem\":0,\"cpuUsageUser\":5.9}],\"measurementInterval\":10,\"requestRate\":540,\"vNicUsageArray\":[{\"transmittedOctetsDelta\":0,\"receivedTotalPacketsDelta\":0,\"vNicIdentifier\":\"eth0\",\"valuesAreSuspect\":\"true\",\"transmittedTotalPacketsDelta\":0,\"receivedOctetsDelta\":0}],\"measurementsForVfScalingVersion\":2.1,\"additionalMeasurements\":[{\"name\":\"ONAP-DCAE\",\"arrayOfFields\":[{\"name\":\"Packet-Loss-Rate\",\"value\":\"0.0\"}]}]}}}"


DCAE_CL_OUTPUT event from DCAE to Policy:
"{\"closedLoopEventClient\":\"DCAE_INSTANCE_ID.dcae-tca\",\"policyVersion\":\"v0.0.1\",\"policyName\":\"DCAE.Config_tca-hi-lo\",\"policyScope\":\"DCAE\",\"target_type\":\"VNF\",\"AAI\":{\"generic-vnf.resource-version\":\"1548788326279\",\"generic-vnf.nf-role\":\"\",\"generic-vnf.prov-status\":\"ACTIVE\",\"generic-vnf.orchestration-status\":\"Active\",\"generic-vnf.is-closed-loop-disabled\":false,\"generic-vnf.service-id\":\"f9457e8c-4afd-45da-9389-46acd9bf5116\",\"generic-vnf.in-maint\":false,\"generic-vnf.nf-type\":\"\",\"generic-vnf.nf-naming-code\":\"\",\"generic-vnf.vnf-name\":\"vcpe_vnf_9ab915ef-f44f-4fe5-a6ce_201901291531\",\"generic-vnf.model-version-id\":\"7dc4c0d8-e536-4b4e-92e6-492ae6b8d79a\",\"generic-vnf.model-customization-id\":\"a1ca6c01-8c6c-4743-9039-e34038d74a4d\",\"generic-vnf.nf-function\":\"\",\"generic-vnf.vnf-type\":\"demoVCPEvGMUX/9ab915ef-f44f-4fe5-a6ce 0\",\"generic-vnf.model-invariant-id\":\"637a6f52-6955-414d-a50f-0bfdbd76dac8\",\"generic-vnf.vnf-id\":\"3dcbc028-45f0-4899-82a5-bb9cc7f14b32\"},\"closedLoopAlarmStart\":1548802447325194,\"closedLoopEventStatus\":\"ONSET\",\"closedLoopControlName\":\"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\",\"version\":\"1.0.2\",\"target\":\"generic-vnf.vnf-name\",\"requestID\":\"7dfaea45-7b82-4999-aa92-10310e8d7c91\",\"from\":\"DCAE\"}"


APPC-LCM-READ event from Policy to APPC:
{
  "body": {
    "input": {
      "common-header": {
        "timestamp": "2019-01-29T23:05:42.121Z",
        "api-ver": "2.00",
        "originator-id": "923ac972-6ec1-4e34-b6e1-76dc7481d5af",
        "request-id": "923ac972-6ec1-4e34-b6e1-76dc7481d5af",
        "sub-request-id": "1",
        "flags": {}
      },
      "action": "Restart",
      "action-identifiers": {
        "vnf-id": "3dcbc028-45f0-4899-82a5-bb9cc7f14b32"
      }
    }
  },
  "version": "2.0",
  "rpc-name": "restart",
  "correlation-id": "923ac972-6ec1-4e34-b6e1-76dc7481d5af-1",
  "type": "request"
}

23. To repeat create infra step, you can delete infra vf-module stacks first and the network stacks from Openstack Horizon Orchestration->Stack page, then clean up the record in sdnc DHCP_MAC table before rerun `vcpe.py infra`
24. To repeat create customer step, you can delete customer stack, then clear up tunnles by running `cleanGMUX.py gmux_public_ip` and `cleanGMUX.py brg_public_ip`. After that you can rerun create customer command

...