Hello
Xin Miao, K eong
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-s
chema-servic e.onap:8452/ aai/schema-s ervice/v1/ve rsions (
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-s chema-servic e.onap:8452/ aai/schema-s
ervice/v1/ve rsions (
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 : E RR.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-s chema-servic e.onap:8452/ aai/schema-s
ervice/v1/ve rsions (
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 (#24211): https://lists.onap.org/g/onap-discuss/message/24211
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]]
-=-=-=-=-=-=-=-=-=-=-=-