Hi Seb,

Thanks for pointing to the reference links.

Thanks,
Sai Lakshmi.

On Thu, Feb 4, 2021 at 2:44 PM Determe, Sebastien <
sebastien.dete...@intl.att.com> wrote:

> Hi,
>
>
>
> You are trying to deploy a policy Tosca config from sdc to clamp, while
> you should deploy a DCAE blueprint attached to a service and a resource
>
>
>
> This is the kind of file you need to distribute to CLAMP: 
> *https://git.onap.org/dcaegen2/platform/blueprints/tree/blueprints/k8s-tcagen2-clampnode.yaml?h=guilin
> <https://git.onap.org/dcaegen2/platform/blueprints/tree/blueprints/k8s-tcagen2-clampnode.yaml?h=guilin>*
>
> After that for the config of the different policies, I would recommend to
> look at those videos:
> https://wiki.onap.org/display/DW/CLAMP+videos#CLAMPvideos-FRANKFURTVideos
>
> But this is done in the Clamp UI:  https://k8s_server:30258
>
>
>
> Regards,
>
> Seb
>
>
>
> *From:* onap-discuss@lists.onap.org <onap-discuss@lists.onap.org> *On
> Behalf Of *Sai Lakshmi Cheedella
> *Sent:* 02 February 2021 15:46
> *To:* onap-discuss@lists.onap.org
> *Subject:* [onap-discuss] #frankfurt #sdc #clamp Service distribution
> fails for Clamp component as DEPLOY_ERROR
>
>
>
> Hi Team,
>
> Am trying to do PNF CL. As part of this when distributing the service
> using below artifact got the below error at clamp backend.
> reference link:
> https://wiki.onap.org/display/DW/CDS+actor+support+in+Policy
> <https://urldefense.com/v3/__https:/wiki.onap.org/display/DW/CDS*actor*support*in*Policy__;KysrKw!!BhdT!1J_7jbWU0x1XXMdeX7l7cPZItV7ursDO16qNDF0czuy7k0dTh7J8qSNtg5owVL8Tnk3gjIE$>
>
> can anyone take a look on below artifact and please point me to move
> further.
>
> tosca_definitions_version: tosca_simple_yaml_1_0_0
> topology_template:
>   policies:
>     -
>       operational.modifyconfig:
>         type: onap.policies.controlloop.Operational
>         version: 1.0.0
>         metadata:
>           policy-id: operational.modifyconfig
>         properties:
>           controlLoop:
>             version: 2.0.0
>             controlLoopName: ControlLoop-vFirewall-__ResourceID__
>             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: CDS # Choice of CDS as the actor
>               recipe: modify-config # Blueprint action-name
>               target:
>                 resourceID: __ResourceID__
>                 type: VNF
>               payload:
>                 artifact_name: vfw-cds # Blueprint name
>                 artifact_version: 1.0.0 # Blueprint version
>                 mode: async # Blueprint mode type
>                 data:
> '{"mapInfo":{"key":"val"},"arrayInfo":["one","two"],"paramInfo":"val"}' #
> Free-form json string supplied by CLAMP
>               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
>
>
>
> $  *kubectl logs dev-clamp-backend-6b945d4b55-pszcx -n onap --follow *
>
>
>
> 2021-02-02 09:09:05.234 [pool-4-thread-7] INFO
>  org.onap.clamp.clds.sdc.controller.installer.CsarHandler - Found a
> blueprint entry in the CSAR tca_k8s_clampnode.yaml for resource instance
> Name vFWCL_vPKG b798e4cc-2380 0
> 2021-02-02 09:09:05.234 [pool-4-thread-7] INFO
>  org.onap.clamp.clds.sdc.controller.installer.CsarHandler - 1 blueprint(s)
> will be converted to closed loop
> 2021-02-02 09:09:05.240 [pool-4-thread-7] INFO
>  org.onap.clamp.clds.sdc.controller.SdcSingleController - Sending
> DOWNLOAD(DOWNLOAD_OK) notification to SDC for
> artifact:/sdc/v1/catalog/services/PnfServiceFeb201/1.0/artifacts/service-PnfServiceFeb201-csar.csar
> 2021-02-02 09:09:05.240 [pool-4-thread-7] INFO
>  org.onap.sdc.impl.DistributionClientImpl - DistributionClient -
> sendDownloadStatus
> 2021-02-02 09:09:05.240 [pool-4-thread-7] INFO
>  org.onap.sdc.impl.DistributionClientImpl - DistributionClient - sendStatus
> 2021-02-02 09:09:05.342 [pool-220-thread-1] INFO
>  com.att.nsa.cambria.client.impl.CambriaSimplerBatchPublisher - sending 1
> msgs to /events/SDC-DISTR-STATUS-TOPIC-AUTO. Oldest: 99 ms
> 2021-02-02 09:09:05.343 [pool-220-thread-1] WARN
>  com.att.nsa.apiClient.http.HttpClient - POST
> http://message-router.onap:3904/events/SDC-DISTR-STATUS-TOPIC-AUTO
> <https://urldefense.com/v3/__http:/message-router.onap:3904/events/SDC-DISTR-STATUS-TOPIC-AUTO__;!!BhdT!1J_7jbWU0x1XXMdeX7l7cPZItV7ursDO16qNDF0czuy7k0dTh7J8qSNtg5owVL8Tnbpcot0$>
>  will
> send credentials over a clear channel.
> 2021-02-02 09:09:05.343 [pool-220-thread-1] INFO
>  com.att.nsa.apiClient.http.HttpClient - POST
> http://message-router.onap:3904/events/SDC-DISTR-STATUS-TOPIC-AUTO
> <https://urldefense.com/v3/__http:/message-router.onap:3904/events/SDC-DISTR-STATUS-TOPIC-AUTO__;!!BhdT!1J_7jbWU0x1XXMdeX7l7cPZItV7ursDO16qNDF0czuy7k0dTh7J8qSNtg5owVL8Tnbpcot0$>
>  (as
> i2OSJMvRC7DqgIXJ) ...
> 2021-02-02 09:09:05.375 [pool-220-thread-1] INFO
>  com.att.nsa.apiClient.http.HttpClient -       --> HTTP/1.1 200 OK
> 2021-02-02 09:09:05.375 [pool-220-thread-1] INFO
>  com.att.nsa.cambria.client.impl.CambriaSimplerBatchPublisher - cambria
> reply ok (33 ms):{"serverTimeMs":0,"count":1}
> 2021-02-02 09:09:06.243 [pool-4-thread-7] INFO
>  org.onap.clamp.clds.sdc.controller.SdcSingleController - SDC Notification
> sent successfully(sendDownloadStatus)
> 2021-02-02 09:09:06.245 [pool-4-thread-7] INFO
>  org.onap.clamp.clds.sdc.controller.SdcSingleController - Sending
> DOWNLOAD(DOWNLOAD_OK) notification to SDC for
> artifact:/sdc/v1/catalog/services/PnfServiceFeb201/1.0/resourceInstances/vfwcl_vpkgb798e4cc23800/artifacts/vfwcl_vpkgb798e4cc23800_modules.json
> 2021-02-02 09:09:06.245 [pool-4-thread-7] INFO
>  org.onap.sdc.impl.DistributionClientImpl - DistributionClient -
> sendDownloadStatus
> 2021-02-02 09:09:06.245 [pool-4-thread-7] INFO
>  org.onap.sdc.impl.DistributionClientImpl - DistributionClient - sendStatus
> 2021-02-02 09:09:06.347 [pool-221-thread-1] INFO
>  com.att.nsa.cambria.client.impl.CambriaSimplerBatchPublisher - sending 1
> msgs to /events/SDC-DISTR-STATUS-TOPIC-AUTO. Oldest: 101 ms
> 2021-02-02 09:09:06.348 [pool-221-thread-1] WARN
>  com.att.nsa.apiClient.http.HttpClient - POST
> http://message-router.onap:3904/events/SDC-DISTR-STATUS-TOPIC-AUTO
> <https://urldefense.com/v3/__http:/message-router.onap:3904/events/SDC-DISTR-STATUS-TOPIC-AUTO__;!!BhdT!1J_7jbWU0x1XXMdeX7l7cPZItV7ursDO16qNDF0czuy7k0dTh7J8qSNtg5owVL8Tnbpcot0$>
>  will
> send credentials over a clear channel.
> 2021-02-02 09:09:06.348 [pool-221-thread-1] INFO
>  com.att.nsa.apiClient.http.HttpClient - POST
> http://message-router.onap:3904/events/SDC-DISTR-STATUS-TOPIC-AUTO
> <https://urldefense.com/v3/__http:/message-router.onap:3904/events/SDC-DISTR-STATUS-TOPIC-AUTO__;!!BhdT!1J_7jbWU0x1XXMdeX7l7cPZItV7ursDO16qNDF0czuy7k0dTh7J8qSNtg5owVL8Tnbpcot0$>
>  (as
> i2OSJMvRC7DqgIXJ) ...
> 2021-02-02 09:09:06.357 [pool-221-thread-1] INFO
>  com.att.nsa.apiClient.http.HttpClient -       --> HTTP/1.1 200 OK
> 2021-02-02 09:09:06.357 [pool-221-thread-1] INFO
>  com.att.nsa.cambria.client.impl.CambriaSimplerBatchPublisher - cambria
> reply ok (10 ms):{"serverTimeMs":0,"count":1}
> 2021-02-02 09:09:07.247 [pool-4-thread-7] INFO
>  org.onap.clamp.clds.sdc.controller.SdcSingleController - SDC Notification
> sent successfully(sendDownloadStatus)
> 2021-02-02 09:09:07.247 [pool-4-thread-7] INFO
>  org.onap.clamp.loop.CsarInstaller - Installing the CSAR
> /tmp/sdc-controllers/sdc-controller/service-PnfServiceFeb201-csar.csar
> 2021-02-02 09:09:07.252 [pool-4-thread-7] INFO
>  org.onap.clamp.loop.service.CsarServiceInstaller - Start to install the
> Service from csar
> 2021-02-02 09:09:07.257 [pool-4-thread-7] INFO
>  org.onap.clamp.loop.service.CsarServiceInstaller - Successfully installed
> the Service
> 2021-02-02 09:09:07.265 [pool-4-thread-7] WARN
>  org.onap.clamp.loop.cds.CdsDataInstaller - Skipping CDS data installation
> in Service, as sdnc_model_name and sdnc_model_version are not provided in
> the CSAR
> 2021-02-02 09:09:07.268 [pool-4-thread-7] INFO
>  org.onap.clamp.loop.CsarInstaller - Installing the Loops
> 2021-02-02 09:09:07.270 [pool-4-thread-7] INFO
>  org.onap.clamp.loop.CsarInstaller - Processing blueprint
> tca_k8s_clampnode.yaml
> *2021-02-02 09:09:07.272 [pool-4-thread-7] ERROR
> org.onap.clamp.clds.sdc.controller.SdcSingleController - Unexpected
> exception caught during the notification processing*
>
>
>
>
>
>
>
>
>
>
>
>
>
> * java.lang.NullPointerException: null         at
> org.onap.clamp.clds.sdc.controller.installer.BlueprintParser.getMicroServices(BlueprintParser.java:80)
>         at
> org.onap.clamp.loop.CsarInstaller.createLoopTemplateFromBlueprint(CsarInstaller.java:163)
>         at
> org.onap.clamp.loop.CsarInstaller.installTheLoopTemplates(CsarInstaller.java:143)
>         at
> org.onap.clamp.loop.CsarInstaller.installTheCsar(CsarInstaller.java:123)
>       at
> org.onap.clamp.clds.sdc.controller.SdcSingleController.treatNotification(SdcSingleController.java:277)
>         at
> org.onap.clamp.clds.sdc.controller.SdcSingleController$SdcNotificationCallBack.activateCallback(SdcSingleController.java:100)
>         at
> org.onap.sdc.impl.NotificationConsumer.run(NotificationConsumer.java:71)
>       at
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
>         at
> java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
>         at
> java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
>         at
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>         at
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>         at java.base/java.lang.Thread.run(Thread.java:834)*
> *2021-02-02 09:09:07.272 [pool-4-thread-7] INFO
>  org.onap.clamp.clds.sdc.controller.SdcSingleController - Sending
> DEPLOY(DEPLOY_ERROR) notification to SDC for
> artifact:/sdc/v1/catalog/services/PnfServiceFeb201/1.0/artifacts/service-PnfServiceFeb201-csar.csar*
> 2021-02-02 09:09:07.272 [pool-4-thread-7] INFO
>  org.onap.sdc.impl.DistributionClientImpl - DistributionClient -
> sendDeploymentStatus
> 2021-02-02 09:09:07.272 [pool-4-thread-7] INFO
>  org.onap.sdc.impl.DistributionClientImpl - DistributionClient - sendStatus
> 2021-02-02 09:09:07.375 [pool-222-thread-1] INFO
>  com.att.nsa.cambria.client.impl.CambriaSimplerBatchPublisher - sending 1
> msgs to /events/SDC-DISTR-STATUS-TOPIC-AUTO. Oldest: 100 ms
> 2021-02-02 09:09:07.376 [pool-222-thread-1] WARN
>  com.att.nsa.apiClient.http.HttpClient - POST
> http://message-router.onap:3904/events/SDC-DISTR-STATUS-TOPIC-AUTO
> <https://urldefense.com/v3/__http:/message-router.onap:3904/events/SDC-DISTR-STATUS-TOPIC-AUTO__;!!BhdT!1J_7jbWU0x1XXMdeX7l7cPZItV7ursDO16qNDF0czuy7k0dTh7J8qSNtg5owVL8Tnbpcot0$>
>  will
> send credentials over a clear channel.
> 2021-02-02 09:09:07.376 [pool-222-thread-1] INFO
>  com.att.nsa.apiClient.http.HttpClient - POST
> http://message-router.onap:3904/events/SDC-DISTR-STATUS-TOPIC-AUTO
> <https://urldefense.com/v3/__http:/message-router.onap:3904/events/SDC-DISTR-STATUS-TOPIC-AUTO__;!!BhdT!1J_7jbWU0x1XXMdeX7l7cPZItV7ursDO16qNDF0czuy7k0dTh7J8qSNtg5owVL8Tnbpcot0$>
>  (as
> i2OSJMvRC7DqgIXJ) ...
> 2021-02-02 09:09:07.382 [pool-222-thread
>
> 
>


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22812): https://lists.onap.org/g/onap-discuss/message/22812
Mute This Topic: https://lists.onap.org/mt/80350222/21656
Mute #clamp:https://lists.onap.org/g/onap-discuss/mutehashtag/clamp
Mute #sdc:https://lists.onap.org/g/onap-discuss/mutehashtag/sdc
Mute #frankfurt:https://lists.onap.org/g/onap-discuss/mutehashtag/frankfurt
Group Owner: onap-discuss+ow...@lists.onap.org
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to