Thanks very much, Keong. I have found a old topic about ONAP AAI deployment with same trouble. https://lists.onap.org/g/onap-discuss/topic/32748954#18451 The reason is that no DNS record for URL=http://aai-schema-service.onap:8452/aai/schema-service/v1/versions can be found
From my logs information, the POD_IP and Service_IP of aai-schema-service are all available, and I don't know how to/where to repair it. @AAI Team, can you give me some advice? BRs Albert Chen From: Keong Lim Date: 2022-09-23 08:59 To: AlbertChen CC: Keong Lim; ONAP Discuss Subject: Re: [onap-discuss] [AAI] Apologies Albert, I have been out of the loop with ONAP and AAI for some time now (since Dublin release). I do note this part of the error message seems to be closer to a root cause than the IP address resolution: 2022-09-20 06:34:33.433 INFO --- [ main] org.onap.logging.filter.base.MDCSetup : Checking for system property [partnerName] 2022-09-20 06:34:33.441 INFO --- [ main] org.onap.logging.filter.base.MDCSetup : System property was null or empty. Checking environment variable for: partnerName 2022-09-20 06:34:33.441 INFO --- [ main] org.onap.logging.filter.base.MDCSetup : Environment variable: partnerName was null or empty I am not aware of the "partnerName" property, so I don't think it's fully related to the problems I encountered previously (they may be superficially similar since both prevent the startup). The AAI team should be able to help you with your investigation and fix. Keong On Tue, Sep 20, 2022 at 9:08 PM AlbertChen <[email protected]> wrote: Hello Xin Miao, Keong Now I have the same problem on ONAP R9 Istanbul version, my K8S platform is microK8S. Can you give me some advice? Thanks a lot. the POD list of AAI: root@onapserver:~# kubectl -n onap get pod | grep onap-aai onap-aai-modelloader-548bcd8cdc-6ww85 2/2 Running 0 100m onap-aai-babel-598d878fdc-2jvcx 2/2 Running 0 100m onap-aai-schema-service-84b84bddf4-m9t5z 2/2 Running 0 100m onap-aai-graphadmin-create-db-schema-lbtkz 0/1 Error 0 100m onap-aai-graphadmin-create-db-schema-5lx9s 0/1 Error 0 99m and many onap-aai-graphadmin-create-db-schema error pods... the error logs: root@onapserver:~# root@onapserver:~# kubectl -n onap logs onap-aai-graphadmin-create-db-schema-bjctt Project Build Version: 1.0.0 Tue Sep 20 14:34:30 CST 2022 Starting /opt/app/aai-graphadmin/bin/createDBSchema.sh 2022-09-20 06:34:33.433 INFO --- [ main] org.onap.logging.filter.base.MDCSetup : Checking for system property [partnerName] 2022-09-20 06:34:33.441 INFO --- [ main] org.onap.logging.filter.base.MDCSetup : System property was null or empty. Checking environment variable for: partnerName 2022-09-20 06:34:33.441 INFO --- [ main] org.onap.logging.filter.base.MDCSetup : Environment variable: partnerName was null or empty 2022-09-20 06:34:33.442 DEBUG --- [ main] org.onap.aai.restclient.RestClient : Request Headers: {} 2022-09-20 06:34:33.453 DEBUG --- [ main] org.onap.aai.restclient.RestClient : METHOD=GET, URL=http://aai-schema-service.onap:8452/aai/schema-service/v1/versions, BODY= 2022-09-20 06:34:33.573 INFO --- [ main] org.onap.logging.filter.base.MDCSetup : Checking for system property [partnerName] 2022-09-20 06:34:33.574 INFO --- [ main] org.onap.logging.filter.base.MDCSetup : System property was null or empty. Checking environment variable for: partnerName 2022-09-20 06:34:33.574 INFO --- [ main] org.onap.logging.filter.base.MDCSetup : Environment variable: partnerName was null or empty 2022-09-20 06:34:33.574 INFO --- [ main] o.o.l.f.base.AbstractMetricLogFilter : Invoke 2022-09-20 06:34:33.706 WARN --- [ main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schemaServiceVersions' defined in org.onap.aai.config.SchemaServiceConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.onap.aai.setup.SchemaServiceVersions]: Factory method 'schemaServiceVersions' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schemaVersionsBean': Invocation of init method failed; nested exception is org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://aai-schema-service.onap:8452/aai/schema-service/v1/versions": null; nested exception is org.apache.http.client.ClientProtocolException 2022-09-20 06:34:33.724 INFO --- [ main] org.onap.aai.util.ExceptionTranslator : Exception is The server failed to respond with a valid HTTP responseRoot cause isorg.apache.http.ProtocolException: The server failed to respond with a valid HTTP response 2022-09-20 06:34:33.733 DEBUG --- [ main] org.onap.aai.util.AAIConfig : Reloading config from /opt/app/aai-graphadmin/resources/etc/appprops/aaiconfig.properties 2022-09-20 06:34:33.733 INFO --- [ main] org.onap.aai.util.AAIConfig : Found the aaiconfig.properties in the following location: /opt/app/aai-graphadmin/resources/etc/appprops/aaiconfig.properties 2022-09-20 06:34:33.739 ERROR --- [ main] org.onap.aai.logging.ErrorLogHelper : ERR.5.4.3025 ex=org.onap.aai.exceptions.AAIException: Error creating bean with name 'schemaServiceVersions' defined in org.onap.aai.config.SchemaServiceConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.onap.aai.setup.SchemaServiceVersions]: Factory method 'schemaServiceVersions' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schemaVersionsBean': Invocation of init method failed; nested exception is org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://aai-schema-service.onap:8452/aai/schema-service/v1/versions": null; nested exception is org.apache.http.client.ClientProtocolException, resolve and retry ClassName- org.onap.aai.logging.ErrorLogHelper :LineNumber- 616 :MethodName- logError ClassName- org.onap.aai.schema.GenTester :LineNumber- 72 :MethodName- main ClassName- sun.reflect.NativeMethodAccessorImpl :LineNumber- -2 :MethodName- invoke0 ClassName- sun.reflect.NativeMethodAccessorImpl :LineNumber- 62 :MethodName- invoke ClassName- sun.reflect.DelegatingMethodAccessorImpl :LineNumber- 43 :MethodName- invoke ClassName- java.lang.reflect.Method :LineNumber- 498 :MethodName- invoke ClassName- org.springframework.boot.loader.MainMethodRunner :LineNumber- 48 :MethodName- run ClassName- org.springframework.boot.loader.Launcher :LineNumber- 87 :MethodName- launch ClassName- org.springframework.boot.loader.Launcher :LineNumber- 50 :MethodName- launch ClassName- org.springframework.boot.loader.PropertiesLauncher :LineNumber- 595 :MethodName- main Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:595) Caused by: org.onap.aai.exceptions.AAIException: Error connecting to SchemaService - Please Investigate at org.onap.aai.util.ExceptionTranslator.schemaServiceExceptionTranslator(ExceptionTranslator.java:51) at org.onap.aai.schema.GenTester.main(GenTester.java:70) ... 8 more Failed to run the tool /opt/app/aai-graphadmin/bin/createDBSchema.sh successfully Failed to run the createDBSchema.sh root@onapserver:~# from your information, I know that this is cause by IP resolution for aai-schema-service.onap my pod and service IP information: root@onapserver:~# kubectl -n onap get pod -o wide | grep onap-aai onap-aai-modelloader-548bcd8cdc-6ww85 2/2 Running 0 98m 10.1.66.26 onapserver <none> <none> onap-aai-babel-598d878fdc-2jvcx 2/2 Running 0 98m 10.1.66.13 onapserver <none> <none> onap-aai-schema-service-84b84bddf4-m9t5z 2/2 Running 0 98m 10.1.66.58 onapserver <none> <none> root@onapserver:~# kubectl -n onap get svc| grep aai aai-babel NodePort 10.152.183.85 <none> 9516:30279/TCP 98m aai-sparky-be NodePort 10.152.183.102 <none> 8000:30220/TCP 98m aai-resources ClusterIP 10.152.183.157 <none> 8447/TCP,5005/TCP 98m aai-traversal ClusterIP 10.152.183.71 <none> 8446/TCP,5005/TCP 98m aai-graphadmin ClusterIP 10.152.183.81 <none> 8449/TCP,5005/TCP 98m aai-modelloader NodePort 10.152.183.228 <none> 8080:30210/TCP,8443:30229/TCP 98m aai NodePort 10.152.183.165 <none> 80:30233/TCP 98m aai-schema-service ClusterIP 10.152.183.61 <none> 8452/TCP,5005/TCP 98m Which IP should I use? And where should I add these records? Thanks for you help. BRs Albert Chen -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#24218): https://lists.onap.org/g/onap-discuss/message/24218 Mute This Topic: https://lists.onap.org/mt/32748954/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
