Hi Vidya, Let’s see if Mike, or Praveen can help with this query .. Mike, Praveen ?
Thank you, Jorge From: Vidya Bijoor [mailto:[email protected]] Sent: Thursday, March 14, 2019 2:30 AM To: HERNANDEZ-HERRERO, JORGE <[email protected]> Cc: Gaurav agrawal <[email protected]>; Rama SubbaReddy <[email protected]>; Vidyashree Rama <[email protected]>; [email protected] Subject: [ONAP-Policy] Kindly help to create operational policy via UI. Hi Jorge, I am getting error Data Issue: Invalid Template. The template name, ClosedLoopControlName was not found in the dictionary. when I try to create operational policy. Kindly help to check this issue. How to create template via policy GUI? [image.png] policy@dev-policy-pap-74bcb97d6d-gh5gx:/tmp/policy-install$ curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/html' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{ > "policyConfigType": "BRMS_PARAM", > "policyName": "com.BRMSParamCCVPN", > "policyDescription": "BRMS Param CCVPN policy", > "policyScope": "com", > "attributes": { > "MATCHING": { > "controller" : "amsterdam" > }, > "RULE": { > "templateName": "ClosedLoopControlName", > "controlLoopYaml": > "controlLoop%3A%0D%0A++version%3A+2.0.0%0D%0A++controlLoopName%3A+ControlLoop-CCVPN-2179b738-fd36-4843-a71a-a8c24c70c66b%0D%0A++trigger_policy%3A+unique-policy-id-16-Reroute%0D%0A++timeout%3A+3600%0D%0A++abatement%3A+false%0D%0A+%0D%0Apolicies%3A%0D%0A++-+id%3A+unique-policy-id-16-Reroute%0D%0A++++name%3A+Connectivity > > Reroute%0D%0A++++description%3A%0D%0A++++actor%3A+SDNC%0D%0A++++recipe%3A+Reroute%0D%0A++++target%3A%0D%0A++++++type%3A+VM%0D%0A++++retry%3A+3%0D%0A++++timeout%3A+1200%0D%0A++++success%3A+final_success%0D%0A++++failure%3A+final_failure%0D%0A++++failure_timeout%3A+final_failure_timeout%0D%0A++++failure_retries%3A+final_failure_retries%0D%0A++++failure_exception%3A+final_failure_exception%0D%0A++++failure_guard%3A+final_failure_guard" > } > } > }' > 'https://pdp:8081/pdp/api/createPolicy<https://urldefense.proofpoint.com/v2/url?u=https-3A__pdp-3A8081_pdp_api_createPolicy&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=KBxNCnvBiULMFrLf7-mWDLRIqfGifj9OdPuEw3oydrY&m=UiJv0P9ooLJIb-DnfgPgtYF46PzahSS37l2RVaCdvUQ&s=bVU-7JMdRvi8XJtv_5NGQZRz_ja4iCyyt5YfljG8nis&e=>' * Hostname was NOT found in DNS cache * Trying 172.16.0.176... * Connected to pdp (172.16.0.176) port 8081 (#0) * successfully set certificate verify locations: * CAfile: none CApath: /etc/ssl/certs * SSLv3, TLS handshake, Client hello (1): * SSLv3, TLS handshake, Server hello (2): * SSLv3, TLS handshake, CERT (11): * SSLv3, TLS handshake, Server key exchange (12): * SSLv3, TLS handshake, Server finished (14): * SSLv3, TLS handshake, Client key exchange (16): * SSLv3, TLS change cipher, Client hello (1): * SSLv3, TLS handshake, Finished (20): * SSLv3, TLS change cipher, Client hello (1): * SSLv3, TLS handshake, Finished (20): * SSL connection using ECDHE-RSA-AES256-GCM-SHA384 * Server certificate: * subject: CN=policy; emailAddress=; [email protected]<mailto:[email protected]>; OU=OSAAF; O=ONAP; C=US * start date: 2018-12-13 19:57:27 GMT * expire date: 2019-06-13 19:57:27 GMT * issuer: C=US; O=ONAP; OU=OSAAF; CN=intermediateCA_9 * SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway. > PUT /pdp/api/createPolicy HTTP/1.1 > User-Agent: curl/7.35.0 > Host: pdp:8081 > Content-Type: application/json > Accept: text/html > ClientAuth: cHl0aG9uOnRlc3Q= > Authorization: Basic dGVzdHBkcDphbHBoYTEyMw== > Environment: TEST > Content-Length: 1126 > Expect: 100-continue > < HTTP/1.1 100 < HTTP/1.1 400 < Content-Type: text/html;charset=ISO-8859-1 < Content-Length: 112 < Date: Thu, 14 Mar 2019 07:13:36 GMT < Connection: close < * Closing connection 0 * SSLv3, TLS alert, Client hello (1): PE300 - Data Issue: Invalid Template. The template name, ClosedLoopControlName was not found in the dictionary.policy@dev-policy-pap-74bcb97d6d-gh5gx:/tmp/policy-install$<mailto:dictionary.policy@dev-policy-pap-74bcb97d6d-gh5gx:/tmp/policy-install$> policy@dev-policy-pap-74bcb97d6d-gh5gx:/tmp/policy-install$ Thanks, Vidya -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16045): https://lists.onap.org/g/onap-discuss/message/16045 Mute This Topic: https://lists.onap.org/mt/30425823/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
