1
0
-1

Hi,

When I tried to open VID application and clicked on "browse SDC models" I got a page where it says "could not extract resultset". I have seen logs of vid-server and db containers but couldn't found any errors.

I have distributed a network service(as per the demo). But I  didn't  ran demo.sh in robot VM yet.

What I debug:

1)I tried to stop manually vid-mariadb, then I can see "Could not open Hibernate session for transaction. nested exception is org.hibernate.exception.Generic.JDBCException. Could not open connection" . After starting the mariadb container I can see the same error "could not extract Resultset".

2)Tried to ping SDC, MSO from vid-server, ping works.

3)After restarting the containers, i can see the VID  page but when we click on "browse SDC models" it again gives same error and from then if we click on any link in VID app it throws same error.


Any directions to solve this issue?


  1. Michael Lando

    what version of the duckers did you use?

    are the sdc dockers up?

    https://wiki.onap.org/x/LoAP

    this link contines the info on sdc log and health check please review it to check the SDC is up

  2. Bharath Thiruveedula

    Michael Lando, but I can  add new licese models, import VSP and distribute network services too. But in VID app, I can't see the distributed network services. So I am not sure is that the problem with SDC.

  3. user-67d6f

    Hi Bharath, may you want to run the vid_vm_init.sh after changing the db name to vid_openecomp from vid_openecomp_epsdk and re-run this script. But its landing in another issue though.

  4. Bharath Thiruveedula

    @kanagaraj you mean from vid_openecomp_epsdk to vid_openecomp?

  5. Bharath Thiruveedula

    @Kanagaraj I used docker 1.0-STAGING-latest vid-server image but now I updated image to 1.1-STAGING-latest , now it shows 404 page

  6. James Forsyth

    In the VID application logs are you seeing 404 when trying to fetch the service models from SDC?

  7. Bharath Thiruveedula

    Yes if I use 1.1-STAGING-latest image. The GET request to /vid/vidhome.htm?cc giving 404 page. 



    But which image do I need to use?

  8. Viswanath KSP

    Dear All,

    Bharath Thiruveedula works in my team. Please find below health check logs as requested.


    2017-06-05T15:18:06.965Z|||Scheduler-1123225098||ASDC-BE||INFO|||193.0.20.15||o.o.p.c.o.c.PortalTimeoutHandler||ActivityType=<?>, Desc=< Session getting destroyed - id: 1aclbsd9ingxk1f0maepxyuifb>
    2017-06-05T15:18:06.965Z|||Scheduler-1123225098||ASDC-BE||INFO|||193.0.20.15||o.o.p.c.o.c.PortalTimeoutHandler||ActivityType=<?>, Desc=< Session getting destroyed - id: 126looilrdlebnozo4yiud357>
    2017-06-05T15:18:06.965Z|||Scheduler-1123225098||ASDC-BE||INFO|||193.0.20.15||o.o.p.c.o.c.PortalTimeoutHandler||ActivityType=<?>, Desc=< Session getting destroyed - id: 1fk0eh59jp33wp1pld3xo2n6x>
    2017-06-05T15:18:06.965Z|||Scheduler-1123225098||ASDC-BE||INFO|||193.0.20.15||o.o.p.c.o.c.PortalTimeoutHandler||ActivityType=<?>, Desc=< Session getting destroyed - id: 1fqdn0162fwfc10tbomges0hqi>
    2017-06-05T15:18:06.965Z|||Scheduler-1123225098||ASDC-BE||INFO|||193.0.20.15||o.o.p.c.o.c.PortalTimeoutHandler||ActivityType=<?>, Desc=< Session getting destroyed - id: yh0n35whxvb9wkr0v3t7ajex>
    2017-06-05T15:18:06.965Z|||Scheduler-1123225098||ASDC-BE||INFO|||193.0.20.15||o.o.p.c.o.c.PortalTimeoutHandler||ActivityType=<?>, Desc=< Session getting destroyed - id: ibyynx9xjnz2ywbdngrg9rnn>
    2017-06-05T15:18:06.965Z|||Scheduler-1123225098||ASDC-BE||INFO|||193.0.20.15||o.o.p.c.o.c.PortalTimeoutHandler||ActivityType=<?>, Desc=< Session getting destroyed - id: 1l9tqknndprm13weti1fo4ni5>
    2017-06-05T15:18:06.965Z|||Scheduler-1123225098||ASDC-BE||INFO|||193.0.20.15||o.o.p.c.o.c.PortalTimeoutHandler||ActivityType=<?>, Desc=< Session getting destroyed - id: wfafvewk28fbmrvp8p3xn64s>
    2017-06-05T15:18:07.752Z|||UEBConsumerThread||ASDC-BE||INFO|||193.0.20.15||c.att.nsa.apiClient.http.HttpClient||ActivityType=<?>, Desc=<        --> HTTP/1.1 200 OK>
    2017-06-05T15:18:07.762Z|||UEBConsumerThread||ASDC-BE||INFO|||193.0.20.15||c.a.n.c.c.impl.CambriaConsumerImpl||ActivityType=<?>, Desc=<UEB GET /events/ECOMP-PORTAL-OUTBOX-SDC1/a2fc1771-ae31-49b1-954f-9b510ce4ec63/4d2cd9bb-08c3-47a2-8822-1799c3173911?timeout=15000&limit=1000>
    2017-06-05T15:18:07.762Z|||UEBConsumerThread||ASDC-BE||WARN|||193.0.20.15||c.att.nsa.apiClient.http.HttpClient||ActivityType=<?>, Desc=<GET http://193.0.20.11:3904/events/ECOMP-PORTAL-OUTBOX-SDC1/a2fc1771-ae31-49b1-954f-9b510ce4ec63/4d2cd9bb-08c3-47a2-8822-1799c3173911?timeout=15000&limit=1000 will send credentials over a clear channel.>
    2017-06-05T15:18:07.762Z|||UEBConsumerThread||ASDC-BE||INFO|||193.0.20.15||c.att.nsa.apiClient.http.HttpClient||ActivityType=<?>, Desc=<GET http://193.0.20.11:3904/events/ECOMP-PORTAL-OUTBOX-SDC1/a2fc1771-ae31-49b1-954f-9b510ce4ec63/4d2cd9bb-08c3-47a2-8822-1799c3173911?timeout=15000&limit=1000 (as x9UfO7JsDn8BESVX) ...>
    2017-06-05T15:18:08.222Z|6ec0bb46-ddd8-4342-bd4c-82128df39b53||qtp977993101-7917||ASDC-BE||INFO||172.17.0.5|193.0.20.15|172.17.0.1|o.o.sdc.be.filters.BeServletFilter||ActivityType=<?>, Desc=<No requestID  provided -> Generated UUID 6ec0bb46-ddd8-4342-bd4c-82128df39b53>
    2017-06-05T15:18:12.936Z|||UEB-Health-Check-Thread||ASDC-BE||INFO|||193.0.20.15||c.att.nsa.apiClient.http.HttpClient||ActivityType=<?>, Desc=<GET http://193.0.20.11:3904/apiKeys/iPIxkpAMI8qTcQj8 (anonymous) ...>
    2017-06-05T15:18:12.939Z|||UEB-Health-Check-Thread||ASDC-BE||INFO|||193.0.20.15||c.att.nsa.apiClient.http.HttpClient||ActivityType=<?>, Desc=<  --> HTTP/1.1 200 OK>
    2017-06-05T15:18:13.222Z|bfdf1ebc-ff27-4bae-960f-162293ad4c2c||qtp977993101-7907||ASDC-BE||INFO||172.17.0.5|193.0.20.15|172.17.0.1|o.o.sdc.be.filters.BeServletFilter||ActivityType=<?>, Desc=<No requestID  provided -> Generated UUID bfdf1ebc-ff27-4bae-960f-162293ad4c2c>
    2017-06-05T15:18:18.222Z|6b9ac54e-e065-499b-a130-54e25a15dfe8||qtp977993101-7910||ASDC-BE||INFO||172.17.0.5|193.0.20.15|172.17.0.1|o.o.sdc.be.filters.BeServletFilter||ActivityType=<?>, Desc=<No requestID  provided -> Generated UUID 6b9ac54e-e065-499b-a130-54e25a15dfe8>
    2017-06-05T15:18:22.883Z|||UEBConsumerThread||ASDC-BE||INFO|||193.0.20.15||c.att.nsa.apiClient.http.HttpClient||ActivityType=<?>, Desc=<        --> HTTP/1.1 200 OK>
    2017-06-05T15:18:22.893Z|||UEBConsumerThread||ASDC-BE||INFO|||193.0.20.15||c.a.n.c.c.impl.CambriaConsumerImpl||ActivityType=<?>, Desc=<UEB GET /events/ECOMP-PORTAL-OUTBOX-SDC1/a2fc1771-ae31-49b1-954f-9b510ce4ec63/4d2cd9bb-08c3-47a2-8822-1799c3173911?timeout=15000&limit=1000>
    2017-06-05T15:18:22.893Z|||UEBConsumerThread||ASDC-BE||WARN|||193.0.20.15||c.att.nsa.apiClient.http.HttpClient||ActivityType=<?>, Desc=<GET http://193.0.20.11:3904/events/ECOMP-PORTAL-OUTBOX-SDC1/a2fc1771-ae31-49b1-954f-9b510ce4ec63/4d2cd9bb-08c3-47a2-8822-1799c3173911?timeout=15000&limit=1000 will send credentials over a clear channel.>
    2017-06-05T15:18:22.893Z|||UEBConsumerThread||ASDC-BE||INFO|||193.0.20.15||c.att.nsa.apiClient.http.HttpClient||ActivityType=<?>, Desc=<GET http://193.0.20.11:3904/events/ECOMP-PORTAL-OUTBOX-SDC1/a2fc1771-ae31-49b1-954f-9b510ce4ec63/4d2cd9bb-08c3-47a2-8822-1799c3173911?timeout=15000&limit=1000 (as x9UfO7JsDn8BESVX) ...>
    2017-06-05T15:18:23.222Z|a0698a6a-e055-4949-be36-5221b2a3cc26||qtp977993101-7917||ASDC-BE||INFO||172.17.0.5|193.0.20.15|172.17.0.1|o.o.sdc.be.filters.BeServletFilter||ActivityType=<?>, Desc=<No requestID  provided -> Generated UUID a0698a6a-e055-4949-be36-5221b2a3cc26>
    2017-06-05T15:18:27.936Z|||UEB-Health-Check-Thread||ASDC-BE||INFO|||193.0.20.15||c.att.nsa.apiClient.http.HttpClient||ActivityType=<?>, Desc=<GET http://193.0.20.11:3904/apiKeys/iPIxkpAMI8qTcQj8 (anonymous) ...>
    2017-06-05T15:18:27.940Z|||UEB-Health-Check-Thread||ASDC-BE||INFO|||193.0.20.15||c.att.nsa.apiClient.http.HttpClient||ActivityType=<?>, Desc=<  --> HTTP/1.1 200 OK>
    2017-06-05T15:18:28.222Z|0169e24a-a6a6-4940-b1da-37c93cb9ae25||qtp977993101-7907||ASDC-BE||INFO||172.17.0.5|193.0.20.15|172.17.0.1|o.o.sdc.be.filters.BeServletFilter||ActivityType=<?>, Desc=<No requestID  provided -> Generated UUID 0169e24a-a6a6-4940-b1da-37c93cb9ae25>
    2017-06-05T15:18:33.222Z|032c43f6-c9b8-465e-ae0f-31717ecdfa0d||qtp977993101-7907||ASDC-BE||INFO||172.17.0.5|193.0.20.15|172.17.0.1|o.o.sdc.be.filters.BeServletFilter||ActivityType=<?>, Desc=<No requestID  provided -> Generated UUID 032c43f6-c9b8-465e-ae0f-31717ecdfa0d>
  9. Bharath Thiruveedula

    James Forsyth, Can you please check the above logs if that helps?

    I am trying to debug from my side too. This is my observation till now in code level, let me know if this is the right direction.

    Whenever we try to launch VID app as a demo user it invokes angular js controllers here in https://gerrit.onap.org/r/gitweb?p=vid.git;a=tree;f=vid/src/main/webapp/app/vid/scripts/controller;h=3dc89320abd23b4f6af4af67163a6b43411ab8e1;hb=13f34de44aa7914cd1ef3eb1c9e789b19fe25dda. And I think for displaying the SDC models it will invoke https://gerrit.onap.org/r/gitweb?p=vid.git;a=blob;f=vid/src/main/webapp/app/vid/scripts/controller/ServiceModelController.js;h=855c23dde21c0a41b8dbb50a26052881f23acae7;hb=13f34de44aa7914cd1ef3eb1c9e789b19fe25dda which eventually calls "return getAsdcClient().getServices(request.getParameterMap());" in https://gerrit.onap.org/r/gitweb?p=vid.git;a=blob;f=vid/src/main/java/org/openecomp/vid/controller/VidController.java;hb=13f34de44aa7914cd1ef3eb1c9e789b19fe25dda#l140. If  there is an  issue in contacting asdc, we must get the exception like "Failed to retrieve service definitions from SDC" or the other error, but I couldn't see these errors in VID logs. And I could see much difference in 1.0.0-SNAPSHOT and master. 

    So do you think it is not even contacting asdc? 

    One more question, are we any chance retrieving these details https://gerrit.onap.org/r/gitweb?p=vid.git;a=blob;f=vid/src/main/resources/vid-data.sql;h=986c058e4c0b75afd26caf74b6663d87973da7d9;hb=13f34de44aa7914cd1ef3eb1c9e789b19fe25dda#l154 while displaying service models?


    Regards

    Bharath T

  10. user-67d6f

    Add entry for sdc in /etc/hosts with c2.vm1.sdc.simpledemo.openecomp.org and vid started to report the services distributed.

  11. tapan majhi

    tried adding the host name in the hosts file still getting the same issue.


CommentAdd your comment...

3 answers

  1.  
    1
    0
    -1

    I tried both the solution provided by Bharath and Kanagaraj. Still facing the issue in Vid .



      CommentAdd your comment...
    1.  
      1
      0
      -1

      James Forsyth can you check this?


        CommentAdd your comment...