1
0
-1

Hi,

I am trying to setup ONAP Amsterdam release, healthcheck of all components were passed. But when I am trying to access VID portal, I am facing a couple of issues.

1)I am facing "The connection was reset" error in VID portal. Below is the log from /opt/app/vid/logs/vid/debug.log

"""
2017-12-07 13:27:48,852|||http-apr-8080-exec-2||||INFO|||||org.openecomp.portalsdk.core.service.DataAccessServiceImpl|| Filtering org.openecomp.portalsdk.core.domain.App by: where id = 1
2017-12-07 13:27:48,992|||http-apr-8080-exec-2||||INFO|||||org.openecomp.portalsdk.core.interceptor.ResourceInterceptor|| handled session updates for synchronization
2017-12-07 13:27:49,007|||http-apr-8080-exec-2||||INFO|||||org.openecomp.portalsdk.core.service.DataAccessServiceImpl|| Getting org.openecomp.portalsdk.core.domain.App record for id - 1
2017-12-07 13:27:49,021|||http-apr-8080-exec-2|||292b461a-2954-4b63-a3f9-f916c7ad3bc0|DEBUG|INFORMATIONAL|172.17.0.3|9b9febec70e3||org.openecomp.portalsdk.core.web.support.UserUtils|| getRequestId: result is 01447f72-2769-4d83-a290-4da0f39288a7
2017-12-07 13:27:49,030|01447f72-2769-4d83-a290-4da0f39288a7||http-apr-8080-exec-2||/single_signon.htm|292b461a-2954-4b63-a3f9-f916c7ad3bc0|DEBUG|INFORMATIONAL|172.17.0.3|9b9febec70e3||org.openecomp.portalapp.controller.core.SingleSignOnController|| singleSignOnLogin: computed redirectURL http://vid.api.simpledemo.onap.org:8080/vid/welcome.htm?cc=1512653266790
2017-12-07 13:27:49,030|01447f72-2769-4d83-a290-4da0f39288a7||http-apr-8080-exec-2||/single_signon.htm|292b461a-2954-4b63-a3f9-f916c7ad3bc0|DEBUG|INFORMATIONAL|172.17.0.3|9b9febec70e3||org.openecomp.portalapp.controller.core.SingleSignOnController|| singleSignOnLogin: portal-bound redirect URL is http://portal.api.simpledemo.openecomp.org:8989/ECOMPPORTAL/process_csp?uebAppKey=2Re7Pvdkgw5aeAUD&redirectUrl=http%3A%2F%2Fvid.api.simpledemo.onap.org%3A8080%2Fvid%2Fwelcome.htm%3Fcc%3D1512653266790
"""

In the logs it was trying to send request to "http://portal.api.simpledemo.openecomp.org:8989/ECOMPPORTAL/" but I think in the Amsterdam release we are using "http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/" to access portal, so I changed in /opt/vid_vm_init.sh from

"docker run -e VID_MYSQL_DBNAME=vid_openecomp_epsdk -e VID_MYSQL_PASS=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U --name vid-server -p 8080:8080 --link vid-mariadb:vid-mariadb-docker-instance -d $NEXUS_DOCKER_REPO/openecomp/vid:$DOCKER_IMAGE_VERSION"

to

"docker run -e VID_MYSQL_DBNAME=vid_openecomp_epsdk -e VID_MYSQL_PASS=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U -e VID_ECOMP_REST_URL=http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/auxapi -e VID_ECOMP_SHARED_CONTEXT_REST_URL=http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/context -e VID_ECOMP_REDIRECT_URL=http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/login.htm --name vid-server -p 8080:8080 --link vid-mariadb:vid-mariadb-docker-instance -d $NEXUS_DOCKER_REPO/openecomp/vid:$DOCKER_IMAGE_VERSION"


am I missing something here?

2)With the above changes, I couldn't see the "the connection was reset" error, but VID portal page is loading for a long time. The below logs are from /opt/app/vid/logs/vid/error.log

2017-12-07 13:42:15,410|||localhost-startStop-1||||ERROR|INFORMATIONAL|172.17.0.3|a8c149c864fb||org.openecomp.portalsdk.core.util.SystemProperties|| getProperty: environment is null, should never happen!
2017-12-07 13:42:15,411|||localhost-startStop-1||||ERROR|INFORMATIONAL|172.17.0.3|a8c149c864fb||org.openecomp.portalsdk.core.conf.AppConfig|| ############################ Logging is started. ############################
2017-12-07 13:42:15,684|||localhost-startStop-1||||INFO|INFORMATIONAL|172.17.0.3|a8c149c864fb||org.openecomp.portalsdk.core.conf.AppConfig|| getConnectionOnCheckout: property key db.test_connection_on_checkout not found, using default value true
2017-12-07 13:42:15,686|||localhost-startStop-1||||INFO|INFORMATIONAL|172.17.0.3|a8c149c864fb||org.openecomp.portalsdk.core.conf.AppConfig|| getPreferredTestQuery: property key db.preferred_test_query not found, using default value SELECT 1
2017-12-07 13:42:18,693|||localhost-startStop-1||||ERROR|INFORMATIONAL|172.17.0.3|a8c149c864fb||org.openecomp.vid.controller.VidController|| 13:42:18:0693getAsdcModelNamespace unable to find the value, using the default org.openecomp.


I could get SDC models from vid-server container


curl -v --user vid:Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U   -H "X-ECOMP-InstanceID: 1" -H "USER_ID: AFR" -H "X-FromAppId: robot-ete" -H  "X-TransactionId: AFR" http://10.0.3.1:8080/sdc/v1/catalog/services?distributionStatus=DISTRIBUTED


[{"uuid":"08cd5df4-17f8-49ee-b5b7-2ded65f45555","invariantUUID":"12ec022c-0bf2-4e38-89db-977ffaeddf64","name":"demo-ns","version":"1.0","toscaModelURL":"/sdc/v1/catalog/services/08cd5df4-17f8-49ee-b5b7-2ded65f45555/toscaModel","category":"Network L4+","lifecycleState":"CERTIFIED","lastUpdaterUserId":"jm0007","distributionStatus":"DISTRIBUTED"}]


Let me know if you need any extra logs?


    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi Bharath

      May you describe how you installed ONAP? I want to make sure nothing was missed.

      Also, can you upload system.properties file?

      Thanks


      1. Bharath Thiruveedula

        Hi Ofir Sonsino


        I have installed ONAP Amsterdam using Openstack Heat way using the following templates:

        https://git.onap.org/demo/plain/heat/ONAP/onap_openstack.yaml?h=amsterdam

        https://git.onap.org/demo/plain/heat/ONAP/onap_openstack.env?h=amsterdam

        I also tried with OOM but even there I couldn't access the VID server, I raised a bug in JIRA for OOM https://jira.onap.org/projects/OOM/issues/OOM-505

        The contents of system.properties:


        #mysql
        db.driver = org.mariadb.jdbc.Driver
        db.connectionURL = jdbc:mariadb://vid-mariadb-docker-instance:3306/vid_openecomp_epsdk
        db.userName = vidadmin
        db.password = Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
        db.hib.dialect = org.hibernate.dialect.MySQLDialect
        db.min_pool_size = 5
        db.max_pool_size = 10
        hb.dialect = org.hibernate.dialect.MySQLDialect
        hb.show_sql = true
        hb.idle_connection_test_period = 3600
        app_display_name = VID
        files_path = /tmp

        # menu settings
        #menu_query_name = menuData
        #menu_properties_file_location = /WEB-INF/fusion/menu/
        #application_menu_set_name = APP
        #application_menu_attribute_name = applicationMenuData
        #application_menu_properties_name = menu.properties
        #business_direct_menu_set_name = BD
        #business_direct_menu_properties_name = bd.menu.properties
        #business_direct_menu_attribute_name = businessDirectMenuData

        application_name = Virtual Infrastructure Design
        application_user_id = 30000
        post_default_role_id = 16
        clustered = true

        #Enable Fusion Mobile capabilities for the application
        mobile_enable = false

        # Cache config file is needed on the classpath
        cache_config_file_path = /WEB-INF/classes/cache.ccf
        cache_switch = 199
        cache_load_on_startup = false

        user_name = fullName

        decryption_key = ${VID_DECRYPTION_KEY}

        #element map files
        element_map_file_path = /tmp
        element_map_icon_path = app/vid/icons/

        #aai related properties
        aai.server.url.base=https://aai.api.simpledemo.openecomp.org:8443/aai/
        aai.server.url=https://aai.api.simpledemo.openecomp.org:8443/aai/v11/
        aai.oldserver.url.base=https://aai.api.simpledemo.openecomp.org:8443/aai/servers/
        aai.oldserver.url=https://aai.api.simpledemo.openecomp.org:8443/aai/servers/v3/
        aai.truststore.filename=tomcat_keystore
        aai.truststore.passwd.x=OBF:1ks51l8d1o3i1pcc1r2r1e211r391kls1pyj1z7u1njf1lx51go21hnj1y0k1mli1sop1k8o1j651vu91mxw1vun1mze1vv11j8x1k5i1sp11mjc1y161hlr1gm41m111nkj1z781pw31kku1r4p1e391r571pbm1o741l4x1ksp
        aai.keystore.filename=tomcat_keystore
        aai.keystore.passwd.x=OBF:1ks51l8d1o3i1pcc1r2r1e211r391kls1pyj1z7u1njf1lx51go21hnj1y0k1mli1sop1k8o1j651vu91mxw1vun1mze1vv11j8x1k5i1sp11mjc1y161hlr1gm41m111nkj1z781pw31kku1r4p1e391r571pbm1o741l4x1ksp
        aai.vid.username=VID
        aai.vid.passwd.x=OBF:1jm91i0v1jl9
        aai.use.client.cert=false
        aai.vnf.provstatus=${AAI_VNF_PROVSTATUS}

        # ECOMP Portal Shared Context REST API URL
        ecomp_shared_context_rest_url=http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/context
        # Link shown in Help menu
        contact_us_link=${VID_CONTACT_US_LINK}
        #Cron Schedules
        log_cron = 0 0/1 * * * ?;
        mylogins_feed_cron = 0 0/60 * * * ?;
        #sessiontimeout_feed_cron = 0 * * * * ? *
        my_login_feed_output_dir = /tmp/MyLogins

        # An Unique 128-bit value defined to identify a specific version
        # of an application deployed on a specific virtual machine.
        # This value must be generated and updated by the application
        # which is using the ECOMP SDK at the time of its deployment.
        # Online Unique UUID generator - https://www.uuidgenerator.net/
        instance_uuid=292b461a-2954-4b63-a3f9-f916c7ad3bc0


        #MSO related properties
        #simulator
        mso.server.url=http://vm1.mso.simpledemo.openecomp.org:8080
        mso.polling.interval.msecs=10000
        mso.max.polls=10
        mso.user.name=InfraPortalClient
        mso.password.x=OBF:1ih71i271vny1yf41ymf1ylz1yf21vn41hzj1icz
        mso.restapi.svc.instance=/ecomp/mso/infra/serviceInstances/v4
        mso.restapi.vnf.instance=/ecomp/mso/infra/serviceInstances/v4/<service_instance_id>/vnfs
        mso.restapi.network.instance=/ecomp/mso/infra/serviceInstances/v4/<service_instance_id>/networks
        mso.restapi.vf.module.instance=/ecomp/mso/infra/serviceInstances/v4/<service_instance_id>/vnfs/<vnf_instance_id>/vfModules
        mso.restapi.volume.group.instance=/ecomp/mso/infra/serviceInstances/v4/<service_instance_id>/vnfs/<vnf_instance_id>/volumeGroups
        mso.restapi.get.orc.req=/ecomp/mso/infra/orchestrationRequests/v4
        mso.restapi.get.orc.reqs=/ecomp/mso/infra/orchestrationRequests/v4?
        vid.truststore.filename=/opt/app/vid/etc/vid_keystore.jks
        vid.truststore.passwd.x=5c84906b14912dbe96154e09b1e1db90e31f8dedb08e3e6c9f17da3f926cb67b33e4229cc1fe0f59c996d2e38b8ded42
        mso.dme2.client.timeout=10000
        mso.dme2.client.read.timeout=10000
        mso.dme2.server.url=http://localhost:8081
        mso.dme2.enabled=false

      2. Ofir Sonsino

        Thanks. If you can add a screenshot of the connectino reset error it would be userful as well.

        Did you try to access VID through the portal or through VID host url?

      3. Bharath Thiruveedula

        Ofir Sonsino, couldn't attach screenshot(behind the proxy), but after launching the vid-server using 

        docker run -e VID_MYSQL_DBNAME=vid_openecomp_epsdk -e VID_MYSQL_PASS=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U -e VID_ECOMP_REST_URL=http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/auxapi -e VID_ECOMP_SHARED_CONTEXT_REST_URL=http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/context -e VID_ECOMP_REDIRECT_URL=http://portal.api.simpledemo.onap.org:8989/ONAPPORTAL/login.htm --name vid-server -p 8080:8080 --link vid-mariadb:vid-mariadb-docker-instance -d $NEXUS_DOCKER_REPO/openecomp/vid:$DOCKER_IMAGE_VERSION


        I didn't get the connection reset error, but VID portal is continuosly in loading state even using http://vid.api.simpledemo.onap.org:8080/vid/welcome.htm

      4. Bharath Thiruveedula

        For OOM, I attached screenshot because I ran it in my personal laptop

      CommentAdd your comment...