How to connect to ONAP AAI Janusgraph gremlin server from gremlin console

124 views
Skip to first unread message

Ankit Goel

unread,
Oct 11, 2021, 3:23:16 PM10/11/21
to Gremlin-users
Hi,

I have deployed ONAP AAI component in k8s cluster. ONAP AAI uses Janusgraph for graph DB, which at the backend uses gremlin server. I am not able to find the the gremlin server URL (IP and port number) so that i can connect to gremlin server from gremlin console. ONAP AAI is using some groovy code to connect to gremlin server.

Can someone please help me, how can i do that.

Thanks,
Ankit Goel

HadoopMarc

unread,
Oct 12, 2021, 2:31:55 AM10/12/21
to Gremlin-users
Hi Ankit,

Use your k8s dashboard or kubectl to find the service for Gremlin Server. It will usually be exposed at port 8182, but if that does not work you can check ("edit") the yaml file associated with the Gremlin Server pod.

Marc

Op maandag 11 oktober 2021 om 21:23:16 UTC+2 schreef goel9...@gmail.com:

Ankit Goel

unread,
Oct 12, 2021, 8:00:11 AM10/12/21
to Gremlin-users
Hi HadoopMar,

Thanks for your response. Actually there is no standalone pod for gremlin in my configuration. I have an ONAP component called AAI (Active and available inventory). This component internally using Janusgraph/Gremlin server. I looked into the Pod file for AAI and there i can see the ClusterIP  and port number for that component and when i try to update that IP an port in conf/remote.yaml and try to connect to gremlin server then it does not connect. So my assumption is gremlin is running on some other port. I tried to look if something is running on port 8181 using netstat -nlp | grep -i 8181 inside that pod bash console but nothing is running on that port.  In the design document i could see the gremlin query is being sent to A&AIGroovyShell but i am unable to find the gremlin server connection details.

Note:
I can run gremlin query using the curl command (using that AAI pod cluster IP and port number ) and that works but using gremlin console i am unable to connect to gremlin server.

Can you please suggest how can i get the gremlin server details.

Regards,
Ankit Goel

HadoopMarc

unread,
Oct 12, 2021, 10:09:06 AM10/12/21
to Gremlin-users
Hi Ankit,

Wow, this is a dense TinkerPop application. Browsed a bit out of curiosity and could find the gremlin driver at:

I could find a spot (Dockerfile??) where a Gremlin Server is spun up.
aai-traversal exposes a port 8446 for there REST API, but that is probably not helpful.

Did you find other hints?

Marc


Op dinsdag 12 oktober 2021 om 14:00:11 UTC+2 schreef goel9...@gmail.com:

Ankit Goel

unread,
Oct 14, 2021, 3:27:51 PM10/14/21
to Gremlin-users
Hi Marc,

Thanks for your time spending on this. Yeah I could also see that aai-traversal pod is running the gremlin server inside but i can not connect to gremlin server using this port number and I came to know I can not connect to gremlin server from my local gremlin console because gremlin server is running inside a JVM and it is using the existing connection information to execute the gremlin query.

Thanks,
Ankit Goel

Reply all
Reply to author
Forward
0 new messages