-
Bug
-
Resolution: Done
-
Medium
-
Kohn Release
-
None
-
During SDC Model Distribution, the AAI-Modelloader fetches the TOSCA file from SDC and tries to forward it to AAI-Babel.
This fails in the ServiceMesh setup with the error:2022-09-23T22:20:36.532Z|3a2e85e4-7a97-4f63-9cec-5c60d3a0d58b|pool-2-thread-7|ModelLoader|Event-Bus|org.onap.aai.modelloader.notification.ArtifactDownloadManager||ERROR|MDLSVC2005E|MDLSVC2005E Failed to se nd POST request to http://aai-babel.onap:9516: Error posting artifact service-Vfw20220923221854-csar.csar 1.0 to Babel: No Babel trust store defined| org.onap.aai.modelloader.restclient.BabelServiceClientException: No Babel trust store defined at org.onap.aai.modelloader.restclient.HttpsBabelServiceClient.getTrustManagers(HttpsBabelServiceClient.java:144) at org.onap.aai.modelloader.restclient.HttpsBabelServiceClient.<init>(HttpsBabelServiceClient.java:113) at org.onap.aai.modelloader.service.HttpsBabelServiceClientFactory.create(HttpsBabelServiceClientFactory.java:49) at org.onap.aai.modelloader.notification.ArtifactDownloadManager.createBabelServiceClient(ArtifactDownloadManager.java:227) at org.onap.aai.modelloader.notification.ArtifactDownloadManager.invokeBabelService(ArtifactDownloadManager.java:175) at org.onap.aai.modelloader.notification.ArtifactDownloadManager.processToscaArtifacts(ArtifactDownloadManager.java:156) at org.onap.aai.modelloader.notification.ArtifactDownloadManager.processDownloadedArtifacts(ArtifactDownloadManager.java:141) at org.onap.aai.modelloader.notification.ArtifactDownloadManager.downloadArtifacts(ArtifactDownloadManager.java:97) at org.onap.aai.modelloader.notification.EventCallback.activateCallback(EventCallback.java:68) at org.onap.sdc.impl.NotificationConsumer.run(NotificationConsumer.java:71) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown Source) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source)
Possibly a fix can be done in the file:
aai/components/aai-modelloader/resources/config/model-loader.propertiesDuring SDC Model Distribution, the AAI-Modelloader fetches the TOSCA file from SDC and tries to forward it to AAI-Babel. This fails in the ServiceMesh setup with the error: 2022-09-23T22:20:36.532Z|3a2e85e4-7a97-4f63-9cec-5c60d3a0d58b|pool-2-thread-7|ModelLoader|Event-Bus|org.onap.aai.modelloader.notification.ArtifactDownloadManager||ERROR|MDLSVC2005E|MDLSVC2005E Failed to se nd POST request to http: //aai-babel.onap:9516: Error posting artifact service-Vfw20220923221854-csar.csar 1.0 to Babel: No Babel trust store defined| org.onap.aai.modelloader.restclient.BabelServiceClientException: No Babel trust store defined at org.onap.aai.modelloader.restclient.HttpsBabelServiceClient.getTrustManagers(HttpsBabelServiceClient.java:144) at org.onap.aai.modelloader.restclient.HttpsBabelServiceClient.<init>(HttpsBabelServiceClient.java:113) at org.onap.aai.modelloader.service.HttpsBabelServiceClientFactory.create(HttpsBabelServiceClientFactory.java:49) at org.onap.aai.modelloader.notification.ArtifactDownloadManager.createBabelServiceClient(ArtifactDownloadManager.java:227) at org.onap.aai.modelloader.notification.ArtifactDownloadManager.invokeBabelService(ArtifactDownloadManager.java:175) at org.onap.aai.modelloader.notification.ArtifactDownloadManager.processToscaArtifacts(ArtifactDownloadManager.java:156) at org.onap.aai.modelloader.notification.ArtifactDownloadManager.processDownloadedArtifacts(ArtifactDownloadManager.java:141) at org.onap.aai.modelloader.notification.ArtifactDownloadManager.downloadArtifacts(ArtifactDownloadManager.java:97) at org.onap.aai.modelloader.notification.EventCallback.activateCallback(EventCallback.java:68) at org.onap.sdc.impl.NotificationConsumer.run(NotificationConsumer.java:71) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown Source) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang. Thread .run(Unknown Source) Possibly a fix can be done in the file: aai/components/aai-modelloader/resources/config/model-loader.properties