Hi, I'm trying to manually add DCAE_INVENTORY_BLUEPRINT in SDC as per the following links https://wiki.onap.org/display/DW/Adding+Blueprint+Manually+in+SDC https://wiki.onap.org/display/DW/SDC+Deployment+Artifacts When monitoring the distribution, dcae-sch and policy seems fine (DEPLOY_OK, NOTIFIED, COMPONENT_DONE_OK) however clamp fail with DEPLOY_ERROR unable to find the ResourceInstanceName in Sdc notification When looking at the method CsarHandler.searchForResourceByInstanceName I can see that it iterate over the this.sdcNotification.getResources() to find the resource, however as you can see in the log it says 0 resources in the callback notification Receive a callback notification in SDC, nb of resources: 0 I don't get how come there is no resource, as I did add a VF in the service composition and add the blueprint artifact as per links above. What am I missing? Thanks SDC Monitor: ============== clamp service-Svc10-csar.csar /sdc/v1/catalog/services/Svc10/1.0/artifacts/service-Svc10-csar.csar 12/06/2018 11:40PM DEPLOY_ERROR 12/06/2018 11:40PM DEPLOY_ERROR Reason: Error when searching for vf100 as ResourceInstanceName in Sdc notification and did not find it 12/06/2018 11:40PM NOTIFIED CLAMP LOG: =========== 23:40:15.029 [pool-3-thread-9] INFO org.onap.clamp.clds.sdc.controller.SdcSingleController - Receive a callback notification in SDC, nb of resources: 0 23:40:16.131 [https-jsse-nio-8443-exec-14] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - 2018-12-06T23:40:16.131+0000 DEBUG [cadi] DenialOfServiceTaf is not processing this transaction: This Transaction is not denied 23:40:16.131 [https-jsse-nio-8443-exec-14] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - 2018-12-06T23:40:16.131+0000 DEBUG [cadi] No Certificate Info on Transaction 23:40:16.132 [https-jsse-nio-8443-exec-14] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - 2018-12-06T23:40:16.131+0000 DEBUG [cadi] Requesting HTTP Basic Authorization 23:40:16.132 [https-jsse-nio-8443-exec-14] INFO org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/] - 2018-12-06T23:40:16.132+0000 INFO [cadi] Authenticating via redirection: Requesting HTTP Basic Authorization 23:40:24.030 [pool-3-thread-9] INFO org.onap.clamp.clds.sdc.controller.SdcSingleController - Notification received for service UUID:2372d614-403f-441a-84a0-3bd5ddabb8ba 23:40:24.030 [pool-3-thread-9] INFO org.onap.clamp.clds.sdc.controller.SdcSingleController - Trying to download the artifact : /sdc/v1/catalog/services/Svc10/1.0/artifacts/service-Svc10-csar.csar UUID: 8f24e678-c8b6-452c-9480-734d0cd98fb4 23:40:24.031 [pool-3-thread-9] INFO org.onap.sdc.impl.DistributionClientImpl - DistributionClient - download 23:40:24.429 [pool-3-thread-9] INFO org.onap.clamp.clds.sdc.controller.SdcSingleController - Successfully downloaded the artifact /sdc/v1/catalog/services/Svc10/1.0/artifacts/service-Svc10-csar.csar UUID 8f24e678-c8b6-452c-9480-734d0cd98fb4Size of payload 37833 23:40:24.430 [pool-3-thread-9] INFO org.onap.clamp.clds.sdc.controller.installer.CsarHandler - Writing CSAR file to: /tmp/sdc-controllers/sdc-controller/service-Svc10-csar.csar UUID 8f24e678-c8b6-452c-9480-734d0cd98fb4) 23:40:24.436 [pool-3-thread-9] INFO org.reflections.Reflections - Reflections took 3 ms to scan 1 urls, producing 4 keys and 4 values 23:40:25.006 [pool-3-thread-9] WARN org.onap.sdc.tosca.parser.impl.SdcToscaParserFactory - #################################################################################################### 23:40:25.006 [pool-3-thread-9] WARN org.onap.sdc.tosca.parser.impl.SdcToscaParserFactory - CSAR Warnings found! CSAR name - /tmp/sdc-controllers/sdc-controller/service-Svc10-csar.csar 23:40:25.006 [pool-3-thread-9] WARN org.onap.sdc.tosca.parser.impl.SdcToscaParserFactory - ToscaTemplate - verifyTemplate - 2 Parsing Warnings occurred... 23:40:25.006 [pool-3-thread-9] WARN org.onap.sdc.tosca.parser.impl.SdcToscaParserFactory - JTosca Exception [JE003]: MissingRequiredFieldError: properties of template "vf10 0" are missing field(s): [nf_naming_code, nf_function, nf_role, max_instances, min_instances, nf_type]. CSAR name - /tmp/sdc-controllers/sdc-controller/service-Svc10-csar.csar 23:40:25.006 [pool-3-thread-9] WARN org.onap.sdc.tosca.parser.impl.SdcToscaParserFactory - JTosca Exception [JE003]: MissingRequiredFieldError: Data value of type "org.openecomp.datatypes.Naming" is missing required field(s) "[supplemental_data]". CSAR name - /tmp/sdc-controllers/sdc-controller/service-Svc10-csar.csar 23:40:25.006 [pool-3-thread-9] WARN org.onap.sdc.tosca.parser.impl.SdcToscaParserFactory - #################################################################################################### 23:40:25.007 [pool-3-thread-9] ERROR org.onap.clamp.clds.sdc.controller.SdcSingleController - SdcArtifactInstallerException exception caught during the notification processing org.onap.clamp.clds.exception.sdc.controller.SdcArtifactInstallerException: Error when searching for vf100 as ResourceInstanceName in Sdc notification and did not find it at org.onap.clamp.clds.sdc.controller.installer.CsarHandler.searchForResourceByInstanceName(CsarHandler.java:120) at org.onap.clamp.clds.sdc.controller.installer.CsarHandler.loadDcaeBlueprint(CsarHandler.java:138) at org.onap.clamp.clds.sdc.controller.installer.CsarHandler.save(CsarHandler.java:104) at org.onap.clamp.clds.sdc.controller.SdcSingleController.treatNotification(SdcSingleController.java:239) at org.onap.clamp.clds.sdc.controller.SdcSingleController$SdcNotificationCallBack.activateCallback(SdcSingleController.java:91) 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 Daniel
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14315): https://lists.onap.org/g/onap-discuss/message/14315 Mute This Topic: https://lists.onap.org/mt/28632067/21656 Mute #sdc: https://lists.onap.org/mk?hashtag=sdc&subid=2740164 Mute #clamp: https://lists.onap.org/mk?hashtag=clamp&subid=2740164 Mute #dcaegen2: https://lists.onap.org/mk?hashtag=dcaegen2&subid=2740164 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
