Hi,
Adam - yes, you are right.

Vamshi - Please check if the ServiceChangeHandler pod is active/running in your 
environment; you should notice similar to below

dep-service-change-handler-5f7bfbcc9b-mjp4s                   1/1       Running 
           0          9h

The dcae-healtcheck should indicate if this pod is not active also.

Btw - I've seen slow nexus image pull issue interfering with deployment of 
inventory blueprint (which includes service-change handler component). If this 
pod is not running, then you could redeploy this with following steps.


  1.  Connect into dcaegen2-dcae-bootstrap
  2.  Uninstall and recreate deployment for Inventory (& SCH)
cfy uninstall inventory
cfy deployments delete -f inventory
cfy blueprints delete inventory
cfy blueprints upload -b inventory /blueprints/k8s-inventory.yaml
cfy deployments create -b inventory -i /inputs/k8s-inventory-inputs.yaml 
inventory
cfy executions start -d inventory  install

Regards,
Vijay

From: Krysiak, Adam (Nokia - PL/Wroclaw) <adam.krys...@nokia.com>
Sent: Monday, October 15, 2018 9:51 AM
To: onap-discuss@lists.onap.org; vn00480...@techmahindra.com; VENKATESH KUMAR, 
VIJAY <vv7...@att.com>
Subject: Re: [onap-discuss] [CLAMP] [POLICY] [ SDC] - CLAMP distribution failed


Hi,



By the screen you've attached your artifact was not correctly distributed to 
DCAE. DCAE service change handler (dcae-sch) should receive artifact and save 
it to dcae inventory. Only then CLAMP can get response from dcae inventory.

Please check if dcae-sch is working. Possibly it was not deployed by dcae 
cloudify.

@VENKATESH KUMAR, VIJAY<mailto:vv7...@att.com> please correct me if I'm wrong.



Br,
Adam Krysiak
Software Engineer
MN MANO RD&Pz ONAP-UI-ML DEVOPS WRO 2 SG
Nokia
Contact number: +48691441316
________________________________
From: onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org> 
<onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org>> on behalf of 
vamshi <vn00480...@techmahindra.com<mailto:vn00480...@techmahindra.com>>
Sent: Monday, October 15, 2018 3:30:58 PM
To: onap-discuss@lists.onap.org<mailto:onap-discuss@lists.onap.org>
Subject: [onap-discuss] [CLAMP] [POLICY] [ SDC] - CLAMP distribution failed


Hi,



I've tried blueprints(attached to this mail) for the CLAMP distribution from 
the SDC to create controlloop in CLAMP. But the distribution to the  CLAMP 
failed with deployment errors. Due to this I can't see any controlloop entries 
in CLAMP gui.

When I checked the CLAMP logs - found that there is an error because of an 
empty response received from DCAE inventory. But there was distribution to DCAE 
observed in SDC - distribution monitor tab.

I'm attaching logs as well as screenshots - can somebody assist on this issue. 
Thanks for your time.



[cid:image001.jpg@01D4646E.7882B880]



CLAMP - error.log

===============

2018-10-15T13:03:33,665Z|b2f59848-cd74-4f10-be28-09b7478aa443|ttp-nio-8080-exec-12|CldsService:
 GET healthcheck|Clamp-Health-Check|CLDS|isAuthorized|INFO|100|Authorization 
Error|GET healthcheck completed

2018-10-15T13:03:35,853Z||pool-4-thread-10|||||INFO|||Notification received for 
service UUID:82518bdd-6ac5-484a-b726-25f2ca001b64

2018-10-15T13:03:35,853Z||pool-4-thread-10|||||INFO|||Trying to download the 
artifact : 
/sdc/v1/catalog/services/Clamptest4/1.0/artifacts/service-Clamptest4-csar.csar 
UUID: 668fee60-29b6-488e-aada-dffff9271b16

2018-10-15T13:03:36,743Z||pool-4-thread-10|||||INFO|||Successfully downloaded 
the artifact 
/sdc/v1/catalog/services/Clamptest4/1.0/artifacts/service-Clamptest4-csar.csar 
UUID 668fee60-29b6-488e-aada-dffff9271b16Size of payload 80148

2018-10-15T13:03:36,743Z||pool-4-thread-10|||||INFO|||Writing CSAR file to: 
/tmp/sdc-controllers/sdc-controller/service-Clamptest4-csar.csar UUID 
668fee60-29b6-488e-aada-dffff9271b16)

2018-10-15T13:03:38,257Z||pool-4-thread-10|||||INFO|||Found a blueprint entry 
in the CSAR tca_docker_heat_m_v2.yaml for resource instance Name 
00e0654a-ed83-466b-a08c 0

2018-10-15T13:03:38,257Z||pool-4-thread-10|||||INFO|||1 blueprint(s) will be 
converted to closed loop

2018-10-15T13:03:38,259Z||pool-4-thread-10|||||INFO|||policyName found in 
blueprint tca_docker_heat_m_v2.yaml is get_input

2018-10-15T13:03:38,334Z||pool-4-thread-10|||||INFO|||Sending 
DOWNLOAD(DOWNLOAD_OK) notification to SDC for 
artifact:/sdc/v1/catalog/services/Clamptest4/1.0/artifacts/service-Clamptest4-csar.csar

2018-10-15T13:03:39,340Z||pool-4-thread-10|||||INFO|||SDC Notification sent 
successfully(sendDownloadStatus)

2018-10-15T13:03:39,340Z||pool-4-thread-10|||||INFO|||Sending 
DOWNLOAD(DOWNLOAD_OK) notification to SDC for 
artifact:/sdc/v1/catalog/services/Clamptest4/1.0/resourceInstances/00e0654aed83466ba08c0/artifacts/00e0654aed83466ba08c0_modules.json

2018-10-15T13:03:40,346Z||pool-4-thread-10|||||INFO|||SDC Notification sent 
successfully(sendDownloadStatus)

2018-10-15T13:03:40,348Z||pool-4-thread-10|||||INFO|||Installing the CSAR 
/tmp/sdc-controllers/sdc-controller/service-Clamptest4-csar.csar

2018-10-15T13:03:40,348Z||pool-4-thread-10|||||INFO|||Processing blueprint 
tca_docker_heat_m_v2.yaml

2018-10-15T13:03:40,350Z||pool-4-thread-10|||||INFO|||Mapping found for 
blueprint tca_docker_heat_m_v2.yaml is 
classpath:/clds/templates/bpmn/tca-template.xml

2018-10-15T13:03:40,352Z||pool-4-thread-10|||||INFO|||policyName found in 
blueprint tca_docker_heat_m_v2.yaml is get_input

2018-10-15T13:03:40,360Z||pool-4-thread-10|||||INFO|||Fake Clds Template 
created for blueprint tca_docker_heat_m_v2.yaml with name 
DCAE-Designer-Template-CLAMPClampTest4_v1_0_00e0654a-ed83-466b-a08c0

2018-10-15T13:03:40,360Z||pool-4-thread-10|||DCAE|getDcaeInformation|INFO|||Dcae
 Inventory Service full url - 
http://inventory.onap:8080/dcae-service-types?asdcResourceId=ceff68b1-d4e0-439b-9fe4-c902ab91cc2c&asdcServiceId=a0fe0adb-51fa-4028-bfa7-ea17c10587f6&typeName=tca_docker_heat_m_v2.yaml<https://urldefense.proofpoint.com/v2/url?u=http-3A__inventory.onap-3A8080_dcae-2Dservice-2Dtypes-3FasdcResourceId-3Dceff68b1-2Dd4e0-2D439b-2D9fe4-2Dc902ab91cc2c-26asdcServiceId-3Da0fe0adb-2D51fa-2D4028-2Dbfa7-2Dea17c10587f6-26typeName-3Dtca-5Fdocker-5Fheat-5Fm-5Fv2.yaml&d=DwQF-g&c=LFYZ-o9_HUMeMTSQicvjIg&r=6WYcUG7NY-ZxfqWx5MmzVQ&m=Yz7LP2_nh-VeRaBmP92Gp3Nf7wS0IIqynsgfF-keGkw&s=o0jv5i3ta44d7tM9m9RqtytYk1ygRLaF8IAscRO2mFU&e=>

2018-10-15T13:03:40,360Z||pool-4-thread-10|||DCAE|getDcaeInformation|INFO|||Using
 HTTP URL to contact 
DCAE:http://inventory.onap:8080/dcae-service-types?asdcResourceId=ceff68b1-d4e0-439b-9fe4-c902ab91cc2c&asdcServiceId=a0fe0adb-51fa-4028-bfa7-ea17c10587f6&typeName=tca_docker_heat_m_v2.yaml<https://urldefense.proofpoint.com/v2/url?u=http-3A__inventory.onap-3A8080_dcae-2Dservice-2Dtypes-3FasdcResourceId-3Dceff68b1-2Dd4e0-2D439b-2D9fe4-2Dc902ab91cc2c-26asdcServiceId-3Da0fe0adb-2D51fa-2D4028-2Dbfa7-2Dea17c10587f6-26typeName-3Dtca-5Fdocker-5Fheat-5Fm-5Fv2.yaml&d=DwQF-g&c=LFYZ-o9_HUMeMTSQicvjIg&r=6WYcUG7NY-ZxfqWx5MmzVQ&m=Yz7LP2_nh-VeRaBmP92Gp3Nf7wS0IIqynsgfF-keGkw&s=o0jv5i3ta44d7tM9m9RqtytYk1ygRLaF8IAscRO2mFU&e=>

2018-10-15T13:03:40,408Z|3a87825f-33e6-4bd7-b4e2-4d0f3e27a0e0|pool-4-thread-10|||DCAE|getDcaeInformation|INFO|||Response
 Code: 200

2018-10-15T13:03:40,408Z|3a87825f-33e6-4bd7-b4e2-4d0f3e27a0e0|pool-4-thread-10|||DCAE|getDcaeInformation|INFO|||Response
 Content: 
{"links":{"previousLink":null,"nextLink":null},"totalCount":0,"items":[]}

2018-10-15T13:03:40,431Z|3a87825f-33e6-4bd7-b4e2-4d0f3e27a0e0|pool-4-thread-10|||DCAE|getDcaeInformation|INFO|||Dcae
 inventory totalCount returned is 0, so waiting 10000ms before retrying ...

2018-10-15T13:03:43,747Z|e83d3cfb-1edd-48a3-81da-736fb3282570|http-nio-8080-exec-5|CldsService:
 GET healthcheck|Clamp-Health-Check|CLDS|isAuthorized|INFO|100|Authorization 
Error|GET healthcheck completed

2018-10-15T13:03:50,431Z|3a87825f-33e6-4bd7-b4e2-4d0f3e27a0e0|pool-4-thread-10|||DCAE|getDcaeInformation|INFO|||Using
 HTTP URL to contact 
DCAE:http://inventory.onap:8080/dcae-service-types?asdcResourceId=ceff68b1-d4e0-439b-9fe4-c902ab91cc2c&asdcServiceId=a0fe0adb-51fa-4028-bfa7-ea17c10587f6&typeName=tca_docker_heat_m_v2.yaml<https://urldefense.proofpoint.com/v2/url?u=http-3A__inventory.onap-3A8080_dcae-2Dservice-2Dtypes-3FasdcResourceId-3Dceff68b1-2Dd4e0-2D439b-2D9fe4-2Dc902ab91cc2c-26asdcServiceId-3Da0fe0adb-2D51fa-2D4028-2Dbfa7-2Dea17c10587f6-26typeName-3Dtca-5Fdocker-5Fheat-5Fm-5Fv2.yaml&d=DwQF-g&c=LFYZ-o9_HUMeMTSQicvjIg&r=6WYcUG7NY-ZxfqWx5MmzVQ&m=Yz7LP2_nh-VeRaBmP92Gp3Nf7wS0IIqynsgfF-keGkw&s=o0jv5i3ta44d7tM9m9RqtytYk1ygRLaF8IAscRO2mFU&e=>

2018-10-15T13:03:50,446Z|90fcf985-19db-45b8-ad8d-f7fc6a5a10c7|pool-4-thread-10|||DCAE|getDcaeInformation|INFO|||Response
 Code: 200

2018-10-15T13:03:50,446Z|90fcf985-19db-45b8-ad8d-f7fc6a5a10c7|pool-4-thread-10|||DCAE|getDcaeInformation|INFO|||Response
 Content: 
{"links":{"previousLink":null,"nextLink":null},"totalCount":0,"items":[]}

2018-10-15T13:03:50,446Z|90fcf985-19db-45b8-ad8d-f7fc6a5a10c7|pool-4-thread-10|||DCAE|getDcaeInformation|INFO|||Dcae
 inventory totalCount returned is 0, so waiting 10000ms before retrying ...

2018-10-15T13:03:53,753Z|21bf2b9d-a651-4df7-9ad0-a5d3754ca9e5|ttp-nio-8080-exec-11|CldsService:
 GET healthcheck|Clamp-Health-Check|CLDS|isAuthorized|INFO|100|Authorization 
Error|GET healthcheck completed

2018-10-15T13:04:00,449Z|90fcf985-19db-45b8-ad8d-f7fc6a5a10c7|pool-4-thread-10|||DCAE|getDcaeInformation|INFO|||Using
 HTTP URL to contact 
DCAE:http://inventory.onap:8080/dcae-service-types?asdcResourceId=ceff68b1-d4e0-439b-9fe4-c902ab91cc2c&asdcServiceId=a0fe0adb-51fa-4028-bfa7-ea17c10587f6&typeName=tca_docker_heat_m_v2.yaml<https://urldefense.proofpoint.com/v2/url?u=http-3A__inventory.onap-3A8080_dcae-2Dservice-2Dtypes-3FasdcResourceId-3Dceff68b1-2Dd4e0-2D439b-2D9fe4-2Dc902ab91cc2c-26asdcServiceId-3Da0fe0adb-2D51fa-2D4028-2Dbfa7-2Dea17c10587f6-26typeName-3Dtca-5Fdocker-5Fheat-5Fm-5Fv2.yaml&d=DwQF-g&c=LFYZ-o9_HUMeMTSQicvjIg&r=6WYcUG7NY-ZxfqWx5MmzVQ&m=Yz7LP2_nh-VeRaBmP92Gp3Nf7wS0IIqynsgfF-keGkw&s=o0jv5i3ta44d7tM9m9RqtytYk1ygRLaF8IAscRO2mFU&e=>

2018-10-15T13:04:00,498Z|b6010b19-496a-4425-8f5e-e0bd65e9f244|pool-4-thread-10|||DCAE|getDcaeInformation|INFO|||Response
 Code: 200

2018-10-15T13:04:00,499Z|b6010b19-496a-4425-8f5e-e0bd65e9f244|pool-4-thread-10|||DCAE|getDcaeInformation|INFO|||Response
 Content: 
{"links":{"previousLink":null,"nextLink":null},"totalCount":0,"items":[]}

2018-10-15T13:04:00,499Z|b6010b19-496a-4425-8f5e-e0bd65e9f244|pool-4-thread-10|||DCAE|getDcaeInformation|INFO|||Dcae
 inventory totalCount returned is 0, so waiting 10000ms before retrying ...

2018-10-15T13:04:03,764Z|089c9cec-57c2-45cf-a4ff-321f81ce14e3|http-nio-8080-exec-7|CldsService:
 GET healthcheck|Clamp-Health-Check|CLDS|isAuthorized|INFO|100|Authorization 
Error|GET healthcheck completed

2018-10-15T13:04:10,500Z|b6010b19-496a-4425-8f5e-e0bd65e9f244|pool-4-thread-10|||DCAE|getDcaeInformation|WARN|||Dcae
 inventory totalCount returned is still 0, after 3 attempts, returning NULL

2018-10-15T13:04:10,533Z|b6010b19-496a-4425-8f5e-e0bd65e9f244|pool-4-thread-10|||DCAE|getDcaeInformation|INFO|||policyName
 found in blueprint tca_docker_heat_m_v2.yaml is get_input

2018-10-15T13:04:10,560Z|b6010b19-496a-4425-8f5e-e0bd65e9f244|pool-4-thread-10|||DCAE|getDcaeInformation|ERROR|||Unexpected
 exception caught during the notification processing

java.lang.NullPointerException: null

        at 
org.onap.clamp.clds.sdc.controller.installer.CsarInstallerImpl.createFakeCldsModel(CsarInstallerImpl.java:266)

        at 
org.onap.clamp.clds.sdc.controller.installer.CsarInstallerImpl.installTheCsar(CsarInstallerImpl.java:134)

        at 
org.onap.clamp.clds.sdc.controller.installer.CsarInstallerImpl$$FastClassBySpringCGLIB$$c70b96f8.invoke(<generated>)

        at 
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)

        at 
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738)

        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)

        at 
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)

        at 
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)

        at 
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)

        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)

        at 
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673)

        at 
org.onap.clamp.clds.sdc.controller.installer.CsarInstallerImpl$$EnhancerBySpringCGLIB$$e182f961.installTheCsar(<generated>)

        at 
org.onap.clamp.clds.sdc.controller.SdcSingleController.treatNotification(SdcSingleController.java:247)

        at 
org.onap.clamp.clds.sdc.controller.SdcSingleController$SdcNotificationCallBack.activateCallback(SdcSingleController.java:90)

        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)

2018-10-15T13:04:10,561Z|b6010b19-496a-4425-8f5e-e0bd65e9f244|pool-4-thread-10|||DCAE|getDcaeInformation|INFO|||Sending
 DEPLOY(DEPLOY_ERROR) notification to SDC for 
artifact:/sdc/v1/catalog/services/Clamptest4/1.0/artifacts/service-Clamptest4-csar.csar

2018-10-15T13:04:11,564Z|b6010b19-496a-4425-8f5e-e0bd65e9f244|pool-4-thread-10|||DCAE|getDcaeInformation|INFO|||SDC
 Notification sent successfully(sendDeploymentdStatus)

2018-10-15T13:04:11,565Z|b6010b19-496a-4425-8f5e-e0bd65e9f244|pool-4-thread-10|||DCAE|getDcaeInformation|INFO|||Sending
 DEPLOY(DEPLOY_ERROR) notification to SDC for 
artifact:/sdc/v1/catalog/services/Clamptest4/1.0/resourceInstances/00e0654aed83466ba08c0/artifacts/00e0654aed83466ba08c0_modules.json

2018-10-15T13:04:12,572Z|b6010b19-496a-4425-8f5e-e0bd65e9f244|pool-4-thread-10|||DCAE|getDcaeInformation|INFO|||SDC
 Notification sent successfully(sendDeploymentdStatus)





Thanks & Regards,



Vamshi Krishna | Tech Mahindra






[cid:image001.jpg@01D25617.55BC0E30]<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.techmahindra.com_&d=DwMF-g&c=LFYZ-o9_HUMeMTSQicvjIg&r=6WYcUG7NY-ZxfqWx5MmzVQ&m=Yz7LP2_nh-VeRaBmP92Gp3Nf7wS0IIqynsgfF-keGkw&s=l0jC4pzU41YpKRVPvvIW98N3_fZyQ4cnIzu9h7IQ68Q&e=>










============================================================================================================================

Disclaimer:  This message and the information contained herein is proprietary 
and confidential and subject to the Tech Mahindra policy statement, you may 
review the policy at 
http://www.techmahindra.com/Disclaimer.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.techmahindra.com_Disclaimer.html&d=DwMF-g&c=LFYZ-o9_HUMeMTSQicvjIg&r=6WYcUG7NY-ZxfqWx5MmzVQ&m=Yz7LP2_nh-VeRaBmP92Gp3Nf7wS0IIqynsgfF-keGkw&s=EWLyJfrjaQzd6_8V4gH3LdFFg_lw5FZQDybFaGZ_-RU&e=>
 externally 
http://tim.techmahindra.com/tim/disclaimer.html<https://urldefense.proofpoint.com/v2/url?u=http-3A__tim.techmahindra.com_tim_disclaimer.html&d=DwMF-g&c=LFYZ-o9_HUMeMTSQicvjIg&r=6WYcUG7NY-ZxfqWx5MmzVQ&m=Yz7LP2_nh-VeRaBmP92Gp3Nf7wS0IIqynsgfF-keGkw&s=8K-Yj11lTPVghXkwvU7WtXab1L37zrq6nB2gyolLHa8&e=>
 internally within TechMahindra.

============================================================================================================================


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

View/Reply Online (#13031): https://lists.onap.org/g/onap-discuss/message/13031
Mute This Topic: https://lists.onap.org/mt/27329171/21656
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