-
Bug
-
Resolution: Done
-
Medium
-
Kohn Release
ModelLoader does not support HTTP connection to Babel.
Even when configuring aai-modelloader to disable AAF,
ml.babel.KEYSTORE_FILE= ml.babel.KEYSTORE_PASSWORD= ml.babel.TRUSTSTORE_FILE= ml.babel.TRUSTSTORE_PASSWORD=
the aai-model-loader tries to create an SSH client to commect to Babel.
https://github.com/onap/aai-model-loader/blob/master/src/main/java/org/onap/aai/modelloader/restclient/HttpsBabelServiceClient.java
This leads to the problem when sending the artifacts to aai-babel
2022-09-26T11:15:04.153Z|732ca7ee-99c0-4cc1-9b5d-98f21864abcc|pool-2-thread-9|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-Vfw20220926111334-csar.csar 1.0 to Babel: java.io.IOException: Is a directory| org.onap.aai.modelloader.restclient. on: java.io.IOException: Is a directory at org.onap.aai.modelloader.service.HttpsBabelServiceClientFactory.create(HttpsBabelServiceClientFactory.java:52) 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) Caused by: java.io.IOException: Is a directory at java.base/sun.nio.ch.FileDispatcherImpl.read0(Native Method) at java.base/sun.nio.ch.FileDispatcherImpl.read(Unknown Source) at java.base/sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source) at java.base/sun.nio.ch.IOUtil.read(Unknown Source) at java.base/sun.nio.ch.FileChannelImpl.read(Unknown Source) at java.base/sun.nio.ch.ChannelInputStream.read(Unknown Source) at java.base/sun.nio.ch.ChannelInputStream.read(Unknown Source) at java.base/sun.nio.ch.ChannelInputStream.read(Unknown Source) at java.base/java.io.BufferedInputStream.fill(Unknown Source) at java.base/java.io.BufferedInputStream.read(Unknown Source) at java.base/sun.security.util.DerValue.init(Unknown Source) at java.base/sun.security.util.DerValue.<init>(Unknown Source) at java.base/sun.security.util.DerValue.<init>(Unknown Source) at java.base/sun.security.pkcs12.PKCS12KeyStore.engineLoad(Unknown Source) at java.base/sun.security.util.KeyStoreDelegator.engineLoad(Unknown Source) at java.base/java.security.KeyStore.load(Unknown Source) at org.onap.aai.modelloader.restclient.HttpsBabelServiceClient.getTrustManagers(HttpsBabelServiceClient.java:148) at org.onap.aai.modelloader.restclient.HttpsBabelServiceClient.<init>(HttpsBabelServiceClient.java:113) at org.onap.aai.modelloader.service.HttpsBabelServiceClientFactory.create(HttpsBabelServiceClientFactory.java:49) ... 13 common frames omitted
Additionally also other areas need changes to support HTTP and AAF independent distribution: