That policy doesn’t exist in Dublin, it was added in El Alto
Also must start with onap.policies. not onap.policy.

Ofir

From: [email protected] [mailto:[email protected]] On 
Behalf Of Vidyashree Rama
Sent: Wednesday, August 21, 2019 6:08 PM
To: Sonsino, Ofir <[email protected]>
Cc: [email protected]; VENKATESH KUMAR, VIJAY <[email protected]>; 
Ngueko, Gervais-Martial <[email protected]>; Determe, 
Sebastien <[email protected]>; DRAGOSH, PAM 
<[email protected]>; Gaurav agrawal <[email protected]>; Rama 
SubbaReddy <[email protected]>
Subject: Re: [onap-discuss] [SDC][CLAMP][POLICY][Control loop] CSAR Parsing 
failed - importing new policy types

Yes I am using Dublin version.

Thanks,
Vidya

On Wed, Aug 21, 2019 at 7:47 PM Sonsino, Ofir 
<[email protected]<mailto:[email protected]>> wrote:
Hi,
Was the CSAR generated in SDC Dublin by chance?

Ofir

From: Vidya Bijoor 
[mailto:[email protected]<mailto:[email protected]>]
Sent: Wednesday, August 21, 2019 2:03 PM
To: [email protected]<mailto:[email protected]>; Sonsino, 
Ofir <[email protected]<mailto:[email protected]>>; VENKATESH 
KUMAR, VIJAY <[email protected]<mailto:[email protected]>>; Ngueko, Gervais-Martial 
<[email protected]<mailto:[email protected]>>;
 Determe, Sebastien 
<[email protected]<mailto:[email protected]>>; 
DRAGOSH, PAM <[email protected]<mailto:[email protected]>>
Cc: Gaurav agrawal 
<[email protected]<mailto:[email protected]>>; Rama SubbaReddy 
<[email protected]<mailto:[email protected]>>
Subject: [SDC][CLAMP][POLICY][Control loop] CSAR Parsing failed - importing new 
policy types

Hi All,

I am working on 
DCAEGEN2-1584<https://urldefense.proofpoint.com/v2/url?u=https-3A__jira.onap.org_browse_DCAEGEN2-2D1584&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=r9I4HaeTZWnzwEqiRY1_Hv-5a-5rlv9P2qxiDTBCt58&m=Eie6hMFSG98lAHI20vKBXee_JM3A4jgOMoIOUi3z3hE&s=hpdGWUxO7lvszv2-0zYLjHF2_gA-g2Gdvx2eiZl1gBE&e=>
 . Onboarding restconf collector through CLAMP.

New policy type is added to SDC by modifying policy-types.yml and imported 
using importPolicyTypes.py script.
Path:
[image.png]

New policy type is available in SDC UI. but CSAR parsing failed and it does not 
have new policy type.
[image.png]


Please let me know if there is any other way to import policy type.


Exception:
08:50:57.962 [pool-4-thread-1] DEBUG org.onap.sdc.toscaparser.api.ToscaTemplate 
- ToscaTemplate Loading YAMEL file 
/tmp/JTP2731620137037425461/Definitions/service-Clamptest100-template.yml
08:50:58.318 [pool-4-thread-1] ERROR 
org.onap.clamp.clds.sdc.controller.SdcSingleController - Unexpected exception 
caught during the notification processing
java.lang.NullPointerException: null
at 
org.onap.sdc.toscaparser.api.elements.PolicyType._validateKeys(PolicyType.java:130)
at org.onap.sdc.toscaparser.api.elements.PolicyType.<init>(PolicyType.java:40)
at org.onap.sdc.toscaparser.api.EntityTemplate.<init>(EntityTemplate.java:112)
at org.onap.sdc.toscaparser.api.Policy.<init>(Policy.java:46)
at 
org.onap.sdc.toscaparser.api.TopologyTemplate._policies(TopologyTemplate.java:217)
at 
org.onap.sdc.toscaparser.api.TopologyTemplate.<init>(TopologyTemplate.java:81)
at 
org.onap.sdc.toscaparser.api.ToscaTemplate._topologyTemplate(ToscaTemplate.java:250)
at org.onap.sdc.toscaparser.api.ToscaTemplate.init(ToscaTemplate.java:217)
at org.onap.sdc.toscaparser.api.ToscaTemplate.<init>(ToscaTemplate.java:120)
at 
org.onap.sdc.tosca.parser.impl.SdcToscaParserFactory.init(SdcToscaParserFactory.java:80)
at 
org.onap.sdc.tosca.parser.impl.SdcToscaParserFactory.getSdcCsarHelper(SdcToscaParserFactory.java:61)
at 
org.onap.clamp.clds.sdc.controller.installer.CsarHandler.save(CsarHandler.java:109)
at 
org.onap.clamp.clds.sdc.controller.SdcSingleController.treatNotification(SdcSingleController.java:273)
at 
org.onap.clamp.clds.sdc.controller.SdcSingleController$SdcNotificationCallBack.activateCallback(SdcSingleController.java:101)
at org.onap.sdc.impl.NotificationConsumer.run(NotificationConsumer.java:71)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Thanks,
Vidya


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

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

Reply via email to