16:02:51.968 [Apex-apex-engine-service-14:3] INFO o.o.p.a.e.TaskExecutionLogging - ApexExample_HandleVesEventTask processing VES event - {"commonEventHeader": {"domain": "fault", "eventId": "fault0000245", "eventName": "Fault_Vscf:PilotNumberPoolExhaustion", "lastEpochMicrosec": 1413378172000000, "priority": "High", "reportingEntityName": "ibcx0001vm002oam001", "sequence": 1, "sourceId": "de305d54-75b4-431b-adb2-eb6b9e546014", "sourceName": "vfw-cnf-cds-test-1-vnf", "startEpochMicrosec": 1413378172000000, "timeZoneOffset": "UTC-05:30", "version": "4.0.1", "vesEventListenerVersion": "7.0.1"}, "faultFields": {"alarmAdditionalInformation": {"PilotNumberPoolSize": "1000"}, "alarmCondition": "PilotNumberPoolExhaustion", "eventSeverity": "CRITICAL", "eventSourceType": "other", "faultFieldsVersion": 4, "specificProblem": "Calls cannot complete - pilot numbers are unavailable", "vfStatus": "Inactive"}} 16:02:51.969 [Apex-apex-engine-service-14:3] INFO o.o.p.a.e.TaskExecutionLogging - sending the status to log. 16:02:51.969 [Apex-apex-engine-service-14:3] INFO o.o.p.a.e.TaskExecutionLogging - LogEvent:{"id" : "fault0000245","target" : {"targetType" : "VNF","entityInfo" : {"id" : "de305d54-75b4-431b-adb2-eb6b9e546014"}},"component" : {"name" : "Policy","flavour" : "Apex-PDP","timestamp" : 1617724971969,"status" : "ACTIVE","message" : "VES event has been received. Going to fetch VNF details from AAI.","artifacts" : {"policyName" : "onap.policies.apex.Example","policyVersion" : "1.0.0"}},"otherFields" : {"useCaseName" : "apex-pdp-policy-example"}} 16:02:51.980 [Apex-apex-engine-service-14:3] INFO o.o.p.a.e.TaskExecutionLogging - DMaaP Response after sending LogEvent: (200,{ "serverTimeMs": 0, "count": 1 }) 16:02:51.980 [Apex-apex-engine-service-14:3] INFO o.o.p.a.e.TaskExecutionLogging - {aaifield=null} 16:02:52.031 [RestRequestRunner_0] INFO network - [IN|REST|http://aai:8443/aai/v14/network/generic-vnfs/generic-vnf?vnf-name=vfw-cnf-cds-test-1-vnf] {"vnf-id":"37b008b9-b367-4359-93fd-74d3ce0ee1a0","vnf-name":"vfw-cnf-cds-test-1-vnf","vnf-type":"vfw_cnf_cds/null","service-id":"37b008b9-b367-4359-93fd-74d3ce0ee1a0","prov-status":"ACTIVE","orchestration-status":"Assigned","in-maint":false,"is-closed-loop-disabled":false,"resource-version":"1607506390862","model-invariant-id":"vTEST_XYZ","model-version-id":"vTEST","model-customization-id":"37b008b9-b367-4359-93fd-74d3ce0ee1a0","relationship-list":{"relationship":[{"related-to":"service-instance","relationship-label":"org.onap.relationships.inventory.ComposedOf","related-link":"/aai/v14/business/customers/customer/DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf/service-subscriptions/service-subscription/vFWDT/service-instances/service-instance/55322ada-145a-492e-b196-0d171539a4b2","relationship-data":[{"relationship-key":"customer.global-customer-id","relationship-value":"DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf"},{"relationship-key":"service-subscription.service-type","relationship-value":"vFWDT"},{"relationship-key":"service-instance.service-instance-id","relationship-value":"55322ada-145a-492e-b196-0d171539a4b2"}],"related-to-property":[{"property-key":"service-instance.service-instance-name","property-value":"Service_Ete_Namea337dd5b-4620-4ea6-bc3f-6edf1124d659"}]}]}} 16:02:52.046 [Apex-apex-engine-service-14:0] INFO o.o.p.a.e.TaskExecutionLogging - ApexExample_HandleAAISuccessResponseTask processing event - {in-maint=false, is-closed-loop-disabled=false, model-customization-id=37b008b9-b367-4359-93fd-74d3ce0ee1a0, model-invariant-id=vTEST_XYZ, model-version-id=vTEST, orchestration-status=Assigned, prov-status=ACTIVE, relationship-list={"relationship": [{"related_DasH_to": "service-instance", "relationship_DasH_label": "org.onap.relationships.inventory.ComposedOf", "related_DasH_link": "/aai/v14/business/customers/customer/DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf/service-subscriptions/service-subscription/vFWDT/service-instances/service-instance/55322ada-145a-492e-b196-0d171539a4b2", "relationship_DasH_data": [{"relationship_DasH_key": "customer.global-customer-id", "relationship_DasH_value": "DemoCust_47417dae-a821-4068-9736-e71c7da0d8bf"}, {"relationship_DasH_key": "service-subscription.service-type", "relationship_DasH_value": "vFWDT"}, {"relationship_DasH_key": "service-instance.service-instance-id", "relationship_DasH_value": "55322ada-145a-492e-b196-0d171539a4b2"}], "related_DasH_to_DasH_property": [{"property_DasH_key": "service-instance.service-instance-name", "property_DasH_value": "Service_Ete_Namea337dd5b-4620-4ea6-bc3f-6edf1124d659"}]}]}, resource-version=1607506390862, service-id=37b008b9-b367-4359-93fd-74d3ce0ee1a0, vnf-id=37b008b9-b367-4359-93fd-74d3ce0ee1a0, vnf-name=vfw-cnf-cds-test-1-vnf, vnf-type=vfw_cnf_cds/null} 16:02:52.049 [Apex-apex-engine-service-14:0] INFO o.o.p.a.e.TaskExecutionLogging - CDS modify config request payload - {"modify-config-request":{"vfStatus":"Inactive","update-properties":{"service-instance.service-instance-id":"37b008b9-b367-4359-93fd-74d3ce0ee1a0","generic-vnf.vnf-id":"37b008b9-b367-4359-93fd-74d3ce0ee1a0","data":{"active-streams":"7"}}}} 16:02:52.050 [Apex-apex-engine-service-14:0] INFO o.o.p.a.e.TaskExecutionLogging - sending the status to log. 16:02:52.050 [Apex-apex-engine-service-14:0] INFO o.o.p.a.e.TaskExecutionLogging - LogEvent:{"id" : "fault0000245","target" : {"targetType" : "VNF","entityInfo" : {"id" : "de305d54-75b4-431b-adb2-eb6b9e546014"}},"component" : {"name" : "Policy","flavour" : "Apex-PDP","timestamp" : 1617724972050,"status" : "SUCCESS","message" : "VNF details are received from AAI successfully. Sending ConfigModify request to CDS.","artifacts" : {"policyName" : "onap.policies.apex.Example","policyVersion" : "1.0.0"}},"otherFields" : {"useCaseName" : "apex-pdp-policy-example"}} 16:02:52.058 [Apex-apex-engine-service-14:0] INFO o.o.p.a.e.TaskExecutionLogging - DMaaP Response after sending LogEvent: (200,{ "serverTimeMs": 0, "count": 1 }) 16:02:52.126 [Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:ApexExample_CDSConfigModifyRequestProducer-16:0] INFO o.o.p.cds.client.CdsProcessorHandler - Processing blueprint(1.0.0:apex-example-cba) for action(1.0.0) 16:02:52.128 [Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:ApexExample_CDSConfigModifyRequestProducer-16:0] INFO network - [OUT|REST|gRPC://cds-blueprints-processor-grpc:9111/] commonHeader { requestId: "02e3ca7f-5be4-4956-b73b-87e241845112" subRequestId: "fault0000245" originatorId: "POLICY" } actionIdentifiers { blueprintName: "apex-example-cba" blueprintVersion: "1.0.0" actionName: "modify-config" mode: "sync" } payload { fields { key: "modify-config-request" value { struct_value { fields { key: "update-properties" value { struct_value { fields { key: "data" value { struct_value { fields { key: "active-streams" value { string_value: "7" } } } } } fields { key: "generic-vnf.vnf-id" value { string_value: "37b008b9-b367-4359-93fd-74d3ce0ee1a0" } } fields { key: "service-instance.service-instance-id" value { string_value: "37b008b9-b367-4359-93fd-74d3ce0ee1a0" } } } } } fields { key: "vfStatus" value { string_value: "Inactive" } } } } } } 16:02:52.384 [grpc-default-executor-0] INFO network - [IN|REST|gRPC://cds-blueprints-processor-grpc:9111/] commonHeader { timestamp: "2021-04-06T16:02:52.232Z" requestId: "02e3ca7f-5be4-4956-b73b-87e241845112" subRequestId: "fault0000245" flag { } originatorId: "POLICY" } actionIdentifiers { blueprintName: "apex-example-cba" blueprintVersion: "1.0.0" actionName: "modify-config" mode: "sync" } status { code: 500 errorMessage: "FAILURE : execute-command : [\"INFO:root:Arguments : Inactive,,\\\\n\"]" message: "failure" timestamp: "Tue Apr 06 16:02:52 GMT 2021" } payload { fields { key: "modify-config-response" value { struct_value { fields { key: "execute-command-logs" value { list_value { values { string_value: "INFO:root:Arguments : Inactive,,\\n" } } } } fields { key: "prepare-environment-logs" value { list_value { values { string_value: "Installed pip packages:\n requirements.txt\n\n" } } } } } } } } 16:02:52.384 [grpc-default-executor-0] INFO o.o.p.cds.client.CdsProcessorHandler - Completed blueprint(1.0.0:apex-example-cba) for action(1.0.0) 16:02:52.385 [Apex-NSOApexEngine:org.onap.policy.apex.service.engine.main.ApexEventMarshaller:ApexExample_CDSConfigModifyRequestProducer-16:0] ERROR o.o.p.a.p.e.c.grpc.ApexGrpcProducer - Sending event "ApexExample_CDSConfigModifyRequestEvent" by ApexExample_CDSConfigModifyRequestProducer to CDS failed. 16:02:52.431 [Apex-apex-engine-service-14:1] INFO o.o.p.a.e.TaskExecutionLogging - sending the status to log. 16:02:52.431 [Apex-apex-engine-service-14:1] INFO o.o.p.a.e.TaskExecutionLogging - LogEvent:{"id" : "fault0000245","target" : {"targetType" : "VNF","entityInfo" : {"id" : "de305d54-75b4-431b-adb2-eb6b9e546014"}},"component" : {"name" : "Policy","flavour" : "Apex-PDP","timestamp" : 1617724972429,"status" : "FINAL_FAILURE","message" : "Failed to process VES event. Reason: CDS operation failed. Error message from CDS - FAILURE : execute-command : [\"INFO:root:Arguments : Inactive,,\\n\"]","artifacts" : {"policyName" : "onap.policies.apex.Example","policyVersion" : "1.0.0"}},"otherFields" : {"useCaseName" : "apex-pdp-policy-example"}} 16:02:52.444 [Apex-apex-engine-service-14:1] INFO o.o.p.a.e.TaskExecutionLogging - DMaaP Response after sending LogEvent: (200,{ "serverTimeMs": 0, "count": 1 })