Skip to end of metadata
Go to start of metadata

This guide describes the HEAT installation of A&AI

Prerequisites

The following software is needed in order to do HEAT installation of A&AI

  • docker
  • docker-compose
  • bash

Step-by-step guide

  1. You would need to have root access to the vm
  2. sudo su - root
  3.  Add/Update the /etc/hosts file to add the following entry:

    127.0.0.1 aai.hbase.simpledemo.onap.org
  4. cd /opt
  5. git clone http://gerrit.onap.org/r/aai/test-config
  6. cd test-config
  7. In deploy_vm1.sh comment out the lines 89-94 which should be an if statement checking for the /opt/message-router folder
  8. Create a directory called /opt/config
    1. mkdir /opt/config/
  9. Create a file called /opt/config/nexus_username.txt containing the text: docker
    1. echo "docker" > /opt/config/nexus_username.txt
  10. Create a file called /opt/config/nexus_password.txt containing the text: docker
    1. echo "docker" > /opt/config/nexus_password.txt
  11. Create a file called /opt/config/dmaap_topic.txt containing the text: AAI-EVENT
    1. echo "AAI-EVENT" > /opt/config/dmaap_topic.txt
  12. Create a file called /opt/config/nexus_docker_repo.txt containing text: nexus3.onap.org:10001
    1. echo "nexus3.onap.org:10001" > /opt/config/nexus_docker_repo.txt
  13. Create a file called /opt/config/docker_version.txt containing text: 1.2-STAGING-latest
    1. echo "1.2-STAGING-latest" > /opt/config/docker_version.txt
  14. Please note that in the previous step, docker version is currently 1.2-STAGING-latest and this will be changed later
  15. ./deploy_vm2.sh && ./deploy_vm1.sh



Troubleshooting FAQ

1. Cassandra throwing seedy exceptions

If you encounter the following errors:

ERROR 13:31:16 Directory /var/lib/cassandra/data doesn't exist

ERROR 13:31:16 Directory /var/lib/cassandra/commitlog doesn't exist

ERROR 13:31:16 Directory /var/lib/cassandra/saved_caches doesn't exist

ERROR 13:31:48 Exception encountered during startup

java.lang.RuntimeException: Unable to gossip with any seeds

You can try to resolve the problem by commenting out the line "- CASSANDRA_SEEDS=aai.hbase.simpledemo.onap.org" in the file "docker-compose-db.yml"

2. Containers are unable to connect to Cassandra DB

If any docker container is unable to connect to cassandra container, edit "docker-compose-db.yml", and remove the "network_mode: host" config option from the cassandra docker config block, and repeat step 15

3. Disabling AAF authentication

If for any reason you want to disable AAF you can edit the following files aai-traversal/appconfig/application.properties and aai-resources/appconfig/application.properties and replace the following:

spring.profiles.active=production,aaf-auth,dmaap

with

spring.profiles.active=production,one-way-ssl,dmaap

4. Unable to resolve aaf-onap-test.osaaf.org

Either add a line

10.12.6.214     aaf-onap-test.osaaf.org

to /etc/hosts

OR

you can edit the files aai-resources/appconfig/aaf/org.osaaf.location.props aai-traversal/appconfig/aaf/org.osaaf.location.props and replace

aaf_locate_url=https://aaf-onap-test.osaaf.org:8095
with 
aaf_locate_url=https://10.12.6.214:8095

Note: The current certificate allows only for a defined set of hostnames (like aaf-onap-test.osaaf.org) and does not allow IPs. The the AAF server (aaf-onap-test.osaaf.org) is currently located in the Windriver lab and the IP address is subject to change and might not be the current one in use at present. Alternatively use the property aaf_locate_url to point to your local AAF instance.

27 Comments

  1. Are there any prerequisites for this? After I followed the steps on a clean machine I get 

    "Waiting for 'test-config_aai.hbase.simpledemo.onap.org_1' deployment to finish ..."

    .......repeated many times and then:

    "ERROR: test-config_aai.hbase.simpledemo.onap.org_1 deployment failed."

    root@aai-test1:/opt/test-config# sudo docker images
    REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
    cassandra           2.1                 5b3190f5376c        2 weeks ago         294MB

    root@aai-test1:/opt/test-config# sudo docker ps
    CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

    Lines 89-94 in deploy_vm1.sh do not deal with message-router

    1. Hi, Pavel Paroulek - i've had success with these steps - what do the docker logs say for that cassandra container?  Venkata Harish Kajur, was that message router stuff removed from the deploy script?

      1. When I look at the log I see 2 problems:

        1.  ERROR 15:40:39 Directory /var/lib/cassandra/data doesn't exist

           ERROR 15:40:39 Directory /var/lib/cassandra/commitlog doesn't exist

           ERROR 15:40:39 Directory /var/lib/cassandra/saved_caches doesn't exist

        2. ERROR 15:41:12 Exception encountered during startup

           java.lang.RuntimeException: Unable to gossip with any seeds

                  at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1347) ~[apache-cassandra-2.1.20.jar:2.1.20]



  2. Hi - i got the same errors as faced by Pavel. Would very much appreciate any guidance to resolve. Thank you!

    ERROR 13:31:16 Directory /var/lib/cassandra/data doesn't exist
    ERROR 13:31:16 Directory /var/lib/cassandra/commitlog doesn't exist
    ERROR 13:31:16 Directory /var/lib/cassandra/saved_caches doesn't exist

    ERROR 13:31:48 Exception encountered during startup
    java.lang.RuntimeException: Unable to gossip with any seeds
    at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1347) ~[apache-cassandra-2.1.20.jar:2.1.20]
    at org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:541) ~[apache-cassandra-2.1.20.jar:2.1.20]
    at org.apache.cassandra.service.StorageService.prepareToJoin(StorageService.java:794) ~[apache-cassandra-2.1.20.jar:2.1.20]
    at org.apache.cassandra.service.StorageService.initServer(StorageService.java:726) ~[apache-cassandra-2.1.20.jar:2.1.20]
    at org.apache.cassandra.service.StorageService.initServer(StorageService.java:617) ~[apache-cassandra-2.1.20.jar:2.1.20]
    at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:391) [apache-cassandra-2.1.20.jar:2.1.20]
    at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:566) [apache-cassandra-2.1.20.jar:2.1.20]
    at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:655) [apache-cassandra-2.1.20.jar:2.1.20]
    Exception encountered during startup: Unable to gossip with any seeds

    1. Hi Sandeep Shah, I have updated the installation guide

  3. Hi,


    I followed the steps above and almost everything's OK. But a warning arose:

    WARNING: Found orphan containers (testconfig_aai-graphadmin.api.simpledemo.onap.org_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.

    followed by an exception:

    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:594)
    Caused by: java.lang.ExceptionInInitializerError
    at org.onap.aai.dbmap.AAIGraph.getInstance(AAIGraph.java:103)
    at org.onap.aai.schema.GenTester.main(GenTester.java:126)
    ... 8 more
    Caused by: java.lang.RuntimeException: Failed to instantiate graphs
    at org.onap.aai.dbmap.AAIGraph.<init>(AAIGraph.java:85)
    at org.onap.aai.dbmap.AAIGraph.<init>(AAIGraph.java:57)
    at org.onap.aai.dbmap.AAIGraph$Helper.<clinit>(AAIGraph.java:90)
    ... 10 more
    Caused by: java.lang.IllegalArgumentException: Could not instantiate implementation: org.janusgraph.diskstorage.cassandra.astyanax.AstyanaxStoreManager
    at org.janusgraph.util.system.ConfigurationUtil.instantiate(ConfigurationUtil.java:69)
    at org.janusgraph.diskstorage.Backend.getImplementationClass(Backend.java:477)
    at org.janusgraph.diskstorage.Backend.getStorageManager(Backend.java:409)
    at org.janusgraph.graphdb.configuration.GraphDatabaseConfiguration.<init>(GraphDatabaseConfiguration.java:1376)
    at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:164)
    at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:133)
    at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:113)
    at org.onap.aai.dbmap.AAIGraph.loadGraph(AAIGraph.java:115)
    at org.onap.aai.dbmap.AAIGraph.<init>(AAIGraph.java:82)
    ... 12 more
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.janusgraph.util.system.ConfigurationUtil.instantiate(ConfigurationUtil.java:58)
    ... 20 more
    Caused by: org.janusgraph.diskstorage.TemporaryBackendException: Temporary failure in storage backend
    at org.janusgraph.diskstorage.cassandra.astyanax.AstyanaxStoreManager.ensureKeyspaceExists(AstyanaxStoreManager.java:619)
    at org.janusgraph.diskstorage.cassandra.astyanax.AstyanaxStoreManager.<init>(AstyanaxStoreManager.java:314)
    ... 25 more
    Caused by: com.netflix.astyanax.connectionpool.exceptions.PoolTimeoutException: PoolTimeoutException: [host=aai.hbase.simpledemo.onap.org(aai.hbase.simpledemo.onap.org):9160, latency=10001(10001), attempts=1]Timed out waiting for connection
    at com.netflix.astyanax.connectionpool.impl.SimpleHostConnectionPool.waitForConnection(SimpleHostConnectionPool.java:231)
    at com.netflix.astyanax.connectionpool.impl.SimpleHostConnectionPool.borrowConnection(SimpleHostConnectionPool.java:198)
    at com.netflix.astyanax.connectionpool.impl.RoundRobinExecuteWithFailover.borrowConnection(RoundRobinExecuteWithFailover.java:84)
    at com.netflix.astyanax.connectionpool.impl.AbstractExecuteWithFailoverImpl.tryOperation(AbstractExecuteWithFailoverImpl.java:117)
    at com.netflix.astyanax.connectionpool.impl.AbstractHostPartitionConnectionPool.executeWithFailover(AbstractHostPartitionConnectionPool.java:352)
    at com.netflix.astyanax.thrift.ThriftClusterImpl.executeSchemaChangeOperation(ThriftClusterImpl.java:146)
    at com.netflix.astyanax.thrift.ThriftClusterImpl.internalCreateKeyspace(ThriftClusterImpl.java:321)
    at com.netflix.astyanax.thrift.ThriftClusterImpl.addKeyspace(ThriftClusterImpl.java:294)
    at org.janusgraph.diskstorage.cassandra.astyanax.AstyanaxStoreManager.ensureKeyspaceExists(AstyanaxStoreManager.java:614)
    ... 26 more


    Then the following message came again and again:

    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...


    Finally, it ended up with an error:

    ERROR: testconfig_aai-graphadmin.api.simpledemo.onap.org_1 deployment failed.


    Do you have any clue for this?


    Thanks in advance.

    1. Hi Guangrong Fu, could you try points 1. and/or 2. from the FAQ?

    2. I am glad it helped. You could have kept your original comment for others if they have a similar problem in the future so they know how to resolve it (by following steps 1. and 2. from the FAQ)

      As for graphadmin - I don't know the project, it would be best to either ask on the onap mailing list or open a JIRA ticket.

  4. Dear Good Folks, 

    I followed all the steps as listed however ended up with below. Any help is much appreciated 


    Fri Nov 9 07:23:53 UTC 2018 Starting /opt/app/aai-graphadmin/bin/createDBSchema.sh
    ---- NOTE --- about to open graph (takes a little while)--------;
    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:594)
    Caused by: java.lang.ExceptionInInitializerError
    at org.onap.aai.dbmap.AAIGraph.getInstance(AAIGraph.java:103)
    at org.onap.aai.schema.GenTester.main(GenTester.java:126)
    ... 8 more
    Caused by: java.lang.RuntimeException: Failed to instantiate graphs
    at org.onap.aai.dbmap.AAIGraph.<init>(AAIGraph.java:85)
    at org.onap.aai.dbmap.AAIGraph.<init>(AAIGraph.java:57)
    at org.onap.aai.dbmap.AAIGraph$Helper.<clinit>(AAIGraph.java:90)
    ... 10 more
    Caused by: java.lang.IllegalArgumentException: Could not instantiate implementation: org.janusgraph.diskstorage.cassandra.astyanax.AstyanaxStoreManager
    at org.janusgraph.util.system.ConfigurationUtil.instantiate(ConfigurationUtil.java:69)
    at org.janusgraph.diskstorage.Backend.getImplementationClass(Backend.java:477)
    at org.janusgraph.diskstorage.Backend.getStorageManager(Backend.java:409)
    at org.janusgraph.graphdb.configuration.GraphDatabaseConfiguration.<init>(GraphDatabaseConfiguration.java:1376)
    at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:164)
    at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:133)
    at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:113)
    at org.onap.aai.dbmap.AAIGraph.loadGraph(AAIGraph.java:115)
    at org.onap.aai.dbmap.AAIGraph.<init>(AAIGraph.java:82)
    ... 12 more
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.janusgraph.util.system.ConfigurationUtil.instantiate(ConfigurationUtil.java:58)
    ... 20 more
    Caused by: org.janusgraph.diskstorage.TemporaryBackendException: Temporary failure in storage backend
    at org.janusgraph.diskstorage.cassandra.astyanax.AstyanaxStoreManager.ensureKeyspaceExists(AstyanaxStoreManager.java:619)
    at org.janusgraph.diskstorage.cassandra.astyanax.AstyanaxStoreManager.<init>(AstyanaxStoreManager.java:314)
    ... 25 more
    Caused by: com.netflix.astyanax.connectionpool.exceptions.PoolTimeoutException: PoolTimeoutException: [host=aai.hbase.simpledemo.onap.org(aai.hbase.simpledemo.onap.org):9160, latency=10001(10001), attempts=1]Timed out waiting for connection
    at com.netflix.astyanax.connectionpool.impl.SimpleHostConnectionPool.waitForConnection(SimpleHostConnectionPool.java:231)
    at com.netflix.astyanax.connectionpool.impl.SimpleHostConnectionPool.borrowConnection(SimpleHostConnectionPool.java:198)
    at com.netflix.astyanax.connectionpool.impl.RoundRobinExecuteWithFailover.borrowConnection(RoundRobinExecuteWithFailover.java:84)
    at com.netflix.astyanax.connectionpool.impl.AbstractExecuteWithFailoverImpl.tryOperation(AbstractExecuteWithFailoverImpl.java:117)
    at com.netflix.astyanax.connectionpool.impl.AbstractHostPartitionConnectionPool.executeWithFailover(AbstractHostPartitionConnectionPool.java:352)
    at com.netflix.astyanax.thrift.ThriftClusterImpl.executeSchemaChangeOperation(ThriftClusterImpl.java:146)
    at com.netflix.astyanax.thrift.ThriftClusterImpl.internalCreateKeyspace(ThriftClusterImpl.java:321)
    at com.netflix.astyanax.thrift.ThriftClusterImpl.addKeyspace(ThriftClusterImpl.java:294)
    at org.janusgraph.diskstorage.cassandra.astyanax.AstyanaxStoreManager.ensureKeyspaceExists(AstyanaxStoreManager.java:614)
    ... 26 more

    Fri Nov 9 07:24:31 UTC 2018 Done /opt/app/aai-graphadmin/bin/createDBSchema.sh
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...

  5. and when i followed FAQ 1 and 2 - finally stuck at below



    Fri Nov 9 07:55:33 UTC 2018 Starting /opt/app/aai-graphadmin/bin/createDBSchema.sh
    ---- NOTE --- about to open graph (takes a little while)--------;
    -- Loading new schema elements into JanusGraph --
    -- graph commit
    -- graph shutdown

    Fri Nov 9 07:56:09 UTC 2018 Done /opt/app/aai-graphadmin/bin/createDBSchema.sh
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...
    Waiting for 'testconfig_aai-graphadmin.api.simpledemo.onap.org_1' deployment to finish ...

    1. Hi samir kumar, you are reporting the same error as Guangrong Fu above.

      Unfortunately I don’t know the project Graphadmin - it would be best to either ask on the onap mailing list or open a JIRA bug ticket.


    2. Hi samir kumar,

      Did you first execute deploy_vm2.sh and once db is up, execute deploy_vm1.sh. Also, Please check your /etc/hosts file and add the required host entries with your VM ip.

    3. samir kumar, Can you share the logs of the graphadmin container to see where you are stuck at?

      1. ok sure i will reproduce the error and will share on the forum

    4. samir kumar is this problem resolved? Could you please share some experience with me on how to fix the problem? I am stuck in it.

      1. Hello Guangrong Fu I was able to overcome this problem but don't remember off hand . Let me do it again an let you know the results .There are some changes i made in script which  i will need to recall  

        1. Thanks, samir kumar. Please don't bother doing that. The comment you made at the bottom of this page solved this problem perfectly.(big grin)

  6. Hi Pavel Paroulek ; Thanks i get it (smile) however allow me one  more stupid question.

    How do i access the AAI UI which we can when do a full installation. I have installed this on a AWS EC2 machine .

    Your help is very much appreciated 


    1. samir kumar ask how much you like (smile)

      I don’t know the port number by heart in the HEAT, but the way to figure it out is searching for the running docker container sparky-fe and connecting the port it exposes.

      1. Hi Pavel ParoulekSangeeth G

        since the only container running is as below and ports – 

        root@ip-172-31-15-131:/opt/test-config# docker ps
        CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
        45995d7835fd cassandra:2.1 "docker-entrypoint.s…" 7 minutes ago Up 7 minutes 0.0.0.0:7000-7001->7000-7001/tcp, 0.0.0.0:7199->7199/tcp, 0.0.0.0:9042->9042/tcp, 0.0.0.0:9160->9160/tcp testconfig_aai.hbase.simpledemo.onap.org_1
        root@ip-172-31-15-131:/opt/test-config# docker port 45995d7835fd
        7199/tcp -> 0.0.0.0:7199
        9042/tcp -> 0.0.0.0:9042
        9160/tcp -> 0.0.0.0:9160
        7000/tcp -> 0.0.0.0:7000
        7001/tcp -> 0.0.0.0:7001


        I assume all the images are also running under the same container as listed including spraky - be .


        ** what am i missing .. i have amended the etc host file as well with the public IP of my VM **

        Ideally i should be able to hit the URL using the ports of the container 

        root@ip-172-31-15-131:/opt/test-config# docker images
        REPOSITORY TAG IMAGE ID CREATED SIZE
        nexus3.onap.org:10001/onap/aai-traversal 1.3-STAGING-latest 2df84dfef4e1 8 hours ago 526MB
        nexus3.onap.org:10001/onap/aai-traversal latest 2df84dfef4e1 8 hours ago 526MB
        nexus3.onap.org:10001/onap/aai-resources 1.3-STAGING-latest 1e7b631021d7 8 hours ago 515MB
        nexus3.onap.org:10001/onap/aai-resources latest 1e7b631021d7 8 hours ago 515MB
        nexus3.onap.org:10001/onap/babel 1.3-STAGING-latest 93a961716494 9 hours ago 625MB
        nexus3.onap.org:10001/onap/babel latest 93a961716494 9 hours ago 625MB
        nexus3.onap.org:10001/onap/search-data-service 1.3-STAGING-latest 3c8ffac2630d 11 hours ago 606MB
        nexus3.onap.org:10001/onap/search-data-service latest 3c8ffac2630d 11 hours ago 606MB
        nexus3.onap.org:10001/onap/sparky-be 1.3-STAGING-latest 08079297bc37 11 hours ago 708MB
        nexus3.onap.org:10001/onap/sparky-be latest 08079297bc37 11 hours ago 708MB
        nexus3.onap.org:10001/onap/model-loader 1.3-STAGING-latest 53ec4c5e8485 15 hours ago 610MB
        nexus3.onap.org:10001/onap/model-loader latest 53ec4c5e8485 15 hours ago 610MB
        nexus3.onap.org:10001/onap/data-router 1.3-STAGING-latest 05948009c37b 18 hours ago 681MB
        nexus3.onap.org:10001/onap/data-router latest 05948009c37b 18 hours ago 681MB
        nexus3.onap.org:10001/onap/gizmo 1.3-STAGING-latest f0fc8474dc70 19 hours ago 673MB
        nexus3.onap.org:10001/onap/gizmo latest f0fc8474dc70 19 hours ago 673MB
        nexus3.onap.org:10001/onap/aai-graphadmin 1.0-STAGING-latest 700139ed4c69 23 hours ago 526MB
        nexus3.onap.org:10001/onap/aai-graphadmin latest 700139ed4c69 23 hours ago 526MB
        nexus3.onap.org:10001/onap/champ 1.3-STAGING-latest 9f2d9a2d3bf1 3 days ago 822MB
        nexus3.onap.org:10001/onap/champ latest 9f2d9a2d3bf1 3 days ago 822MB
        cassandra 2.1 218e761a0f37 7 days ago 485MB
        nexus3.onap.org:10001/onap/spike 1.0-STAGING-latest d129e3f1e744 8 days ago 661MB
        nexus3.onap.org:10001/onap/spike latest d129e3f1e744 8 days ago 661MB
        hello-world latest 4ab4c602aa5e 2 months ago 1.84kB
        docker.elastic.co/elasticsearch/elasticsearch 6.1.2 7c797432e61c 10 months ago 511MB

        1. samir kumar, I expected sparky-fe to be present (?.?)7 Maybe the UI is running in the sparky-be (be - backend). I think you have to investigate 

  7. Hi Sangeeth G ,

    Please advise if your comment are to help me with query resolved by Pavel Paroulek or to my follow up as below

    How do i access the AAI UI which we can when do a full installation. I have installed this on a AWS EC2 machine .

    Many Thanks

    samir k

  8. Dear All,

    can any one elaborate on the below ?

    2. Containers are unable to connect to Cassandra DB

    If any docker container is unable to connect to cassandra container, edit "docker-compose-db.yml", and remove the "network: host" config option from the cassandra docker config block, and repeat step 15

    in the file "docker-compose-db.yml" i don't see this any where . the nearest is 

    - 9160:9160
    network_mode: "host"
    environment:
    # - CASSANDRA_SEEDS=aai.hbase.simpledemo.onap.org


    1. Samir, yes that is the one network_mode: "host"

      Please remove that line and try again. 

      1. Thanks @venkata Harish Kajur

  9. i am trying to setup using the above steps...

    while i execute the step 15. 

    ./deploy_vm2.sh && ./deploy_vm1.sh


    The script is failing and throwing the bellow error.



    Could any one help out for the same. Thanks in advance (smile)

    1. Hi Ajish,

      Your issue is being tracked on JIRA AAI-2352 - Getting issue details... STATUS and you have the attention of the AAI PTL and developers.

      There is no need to add it to the wiki comments as well.

      Keong