Hello Sivakumar,

The trigger_policy should point to an entry in the policies array: vIMSPolicy1

controlLoop:

abatement: false

controlLoopName: LOOP_Closed_Loop_vIMS_v3_0_VIMS_SPROUT0_analytics_ms

timeout: 30000

trigger_policy: ''

policies:

- actor: SO

failure: final_failure

failure_exception: final_failure_exception

failure_guard: final_failure_guard

failure_retries: final_failure_retries

failure_timeout: final_failure_timeout

id: vIMSPolicy1

recipe: VF Module Create

retry: 1

success: final_success

target:

modelCustomizationId: 6d748b39-eb11-43ca-b4bf-a23544a4ce7a

modelInvariantId: 3f295cb3-3005-469a-bb82-c6897698df44

modelName: VimsSprout..scaling_sprout..module-1

modelVersion: 1

modelVersionId: a0379f31-6036-4640-9f1e-99d4309e2936

resourceID: VimsSprout..scaling_sprout..module-1

type: VFMODULE

timeout: 0

Below is an example of a valid one, if you can doublecheck other fields through 
CLAMP UI:

controlLoop:

version: 2.0.0

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:

resourceID: 9c4b067c-1393-4646-9b82-2cd85e1b2862

type: VNF

payload:

streams: '{"active-streams":5}'

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

*From:* Sivakumar _ < [email protected] >
*Sent:* Sunday, April 5, 2020 6:05 AM
*To:* HERNANDEZ-HERRERO, JORGE < [email protected] >
*Cc:* Sangeeta Bellara < [email protected] >; Thamlur Raju < 
[email protected] >
*Subject:* Re: [onap-discuss] Control loop policy error

Hi Jorge,

Please find the policy contents below, To give a overview we are trying to 
onboard the custom microservice we built and triggering the operational policy 
to create a stack.

{

"identifier": {

"name": "OPERATIONAL_Closed_Loop_vIMS_v3_0_VIMS_SPROUT0_analytics_ms",

"version": "1.0.0"

},

"key": {

"name": "OPERATIONAL_Closed_Loop_vIMS_v3_0_VIMS_SPROUT0_analytics_ms",

"version": "1.0.0"

},

"metadata": {},

"name": "OPERATIONAL_Closed_Loop_vIMS_v3_0_VIMS_SPROUT0_analytics_ms",

"properties": {

"content": 
"controlLoop%3A%0A++abatement%3A+false%0A++controlLoopName%3A+LOOP_Closed_Loop_vIMS_v3_0_VIMS_SPROUT0_analytics_ms%0A++timeout%3A+30000%0A++trigger_policy%3A+%27%27%0Apolicies%3A%0A-+actor%3A+SO%0A++failure%3A+final_failure%0A++failure_exception%3A+final_failure_exception%0A++failure_guard%3A+final_failure_guard%0A++failure_retries%3A+final_failure_retries%0A++failure_timeout%3A+final_failure_timeout%0A++id%3A+vIMSPolicy1%0A++recipe%3A+VF+Module+Create%0A++retry%3A+1%0A++success%3A+final_success%0A++target%3A%0A++++modelCustomizationId%3A+6d748b39-eb11-43ca-b4bf-a23544a4ce7a%0A++++modelInvariantId%3A+3f295cb3-3005-469a-bb82-c6897698df44%0A++++modelName%3A+VimsSprout..scaling_sprout..module-1%0A++++modelVersion%3A+1%0A++++modelVersionId%3A+a0379f31-6036-4640-9f1e-99d4309e2936%0A++++resourceID%3A+VimsSprout..scaling_sprout..module-1%0A++++type%3A+VFMODULE%0A++timeout%3A+0%0A"

},

"type": "onap.policies.controlloop.Operational",

"typeIdentifier": {

"name": "onap.policies.controlloop.Operational",

"version": "1.0.0"

},

"typeVersion": "1.0.0",

"version": "1.0.0"

}

*Decoded value :-*

*controlLoop:*

*++abatement:+false*

*++controlLoopName:+LOOP_Closed_Loop_vIMS_v3_0_VIMS_SPROUT0_analytics_ms*

*++timeout:+30000*

*++trigger_policy:+''*

*policies:*

*-+actor:+SO*

*++failure:+final_failure*

*++failure_exception:+final_failure_exception*

*++failure_guard:+final_failure_guard*

*++failure_retries:+final_failure_retries*

*++failure_timeout:+final_failure_timeout*

*++id:+vIMSPolicy1*

*++recipe:+VF+Module+Create*

*++retry:+1*

*++success:+final_success*

*++target:*

*++++modelCustomizationId:+6d748b39-eb11-43ca-b4bf-a23544a4ce7a*

*++++modelInvariantId:+3f295cb3-3005-469a-bb82-c6897698df44*

*++++modelName:+VimsSprout..scaling_sprout..module-1*

*++++modelVersion:+1*

*++++modelVersionId:+a0379f31-6036-4640-9f1e-99d4309e2936*

*++++resourceID:+VimsSprout..scaling_sprout..module-1*

*++++type:+VFMODULE*

*++timeout:+0*

**

**

**

*Message posted to DMAAP topic is*

**

{
"AAI": {
"vserver.in-maint": false,
"vserver.is-closed-loop-disabled": false,
"vserver.prov-status": "ACTIVE",
"vserver.resource-version": "1583395952824",
"vserver.vserver-id": "117cab3c-a813-4093-a68b-170d6085f869",
"vserver.vserver-name": "zdfw1lb01dns01",
"vserver.vserver-name2": "zdfw1lb01dns01",
"vserver.vserver-selflink": " 
http://domainanme/v2.1/servers/117cab3c-a813-4093-a68b-170d6085f869"; ( 
https://urldefense.proofpoint.com/v2/url?u=http-3A__domainanme_v2.1_servers_117cab3c-2Da813-2D4093-2Da68b-2D170d6085f869-2522&d=DwQGaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KBxNCnvBiULMFrLf7-mWDLRIqfGifj9OdPuEw3oydrY&m=XZIV8ArwQPXWB3L3rV5krpR-XgrOSZvwcsu6ObzT13U&s=dNVLpa_iNomuu3dD96gBcAVqhnAd6IFrydrdZuXDuSo&e=
 )
},
"closedLoopAlarmStart": 1503118155,
"closedLoopControlName": "LOOP_Closed_Loop_vIMS_v3_0_VIMS_SPROUT0_analytics_ms",
"closedLoopEventClient": "DCAE_INSTANCE_ID.dcae-tca",
"closedLoopEventStatus": "ONSET",
"from": "DCAE",
"policyName": "vIMSPolicy1",
"policyScope": "vIMSPolicypool1",
"policyVersion": "1.0.2",
"requestID": "9e41ac43-e578-47ac-88fe-1a14c29cdbf7",
"target": "vserver.vserver-name",
"target_type": "VM",
"version": "1"
}

**

Thanks,

Sivakumar S

+49-1712324127

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#20502): https://lists.onap.org/g/onap-discuss/message/20502
Mute This Topic: https://lists.onap.org/mt/72664824/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to