1
0
-1

While trying to run robot's demo.sh, I end up (after some changes in robot & container) wit a return code of 500 in the logs of demo.sh.

I could distill this curl command to trigger the 500 error:

curl -vvk  -H"Content-Type: application/json"    -H'X-FromAppId: robot-ete' -H"X-TransactionId: robot-ete-f8859230-c73f-47f6-a1ce-0ba3f2bd1ee0"  https://AAI:AAI@aai.api.simpledemo.openecomp.org:8443/aai/v8/cloud-infrastructure/cloud-regions/cloud-region/Rackspace/RegionOne/tenants

I tried to find a root cause in AAI/aai-service, but the closest I got in the logs was this. Any help to understand this 500 server error is highly appreciated.

==> /opt/aai/logroot/AAI/rest/metrics.log <==
2017-06-01T13:02:12.947+0000|2017-06-01T13:02:12.947+0000|27c247a2-e816-475b-b0f1-7c15475688b8||||interceptIn|robot-ete|AAI||COMPLETE|0|Success||INFO||127.0.0.1|0|localhost||AAILogJAXRSInInterceptor||||||||co=aairest::Replaced invalid requestID of robot-ete-f8859230-c73f-47f6-a1ce-0ba3f2bd1ee0 Assigned 27c247a2-e816-475b-b0f1-7c15475688b8=true:HbaseTxId=2-AutomaticallyOverwritten-20170601-13:02:12:945-114|

==> /opt/aai/logroot/AAI/rest/error.log <==
2017-06-01T13:02:12.954+0000|2017-06-01T13:02:12.964+0000|27c247a2-e816-475b-b0f1-7c15475688b8||||GET|robot-ete|AAI||ERROR|ERR.5.4.4000|Internal Error:3002:Internal Server Error:java.lang.NullPointerException:root cause=java.lang.NullPointerException ClassName- org.openecomp.aai.rest.LegacyMoxyConsumer :LineNumber- 253 :MethodName- getLegacy ClassName- sun.reflect.GeneratedMethodAccessor58 :LineNumber- -1 :MethodName- invoke ClassName- sun.reflect.DelegatingMethodAccessorImpl :LineNumber- 43 :MethodName- invoke ClassName- java.lang.reflect.Method :LineNumber- 498 :MethodName- invoke ClassName- org.apache.cxf.service.invoker.AbstractInvoker :LineNumber- 181 :MethodName- performInvocation ClassName- org.apache.cxf.service.invoker.AbstractInvoker :LineNumber- 97 :MethodName- invoke ClassName- org.apache.cxf.jaxrs.JAXRSInvoker :LineNumber- 200 :MethodName- invoke ClassName- org.apache.cxf.jaxrs.JAXRSInvoker :LineNumber- 99 :MethodName- invoke ClassName- org.apache.cxf.interceptor.ServiceInvokerInterceptor$1 :LineNumber- 59 :MethodName- run ClassName- org.apache.cxf.interceptor.ServiceInvokerInterceptor :LineNumber- 96 :MethodName- handleMessage||ERROR||127.0.0.1|10|localhost||ErrorLogHelper||||||||co=aairest:|

==> /opt/aai/logroot/AAI/rest/metrics.log <==
2017-06-01T13:02:12.954+0000|2017-06-01T13:02:12.964+0000|27c247a2-e816-475b-b0f1-7c15475688b8||||GET|robot-ete|AAI||ERROR|ERR.5.4.4004|Error reading/parsing the error properties file trying to get error object for ERR.5.4.4000:getErrorObject():Value is null for key: ERR.5.4.4000||INFO||127.0.0.1|10|localhost||ErrorLogHelper||||||||co=aairest:|
2017-06-01T13:02:12.965+0000|2017-06-01T13:02:12.965+0000|27c247a2-e816-475b-b0f1-7c15475688b8||||interceptOut|robot-ete|AAI||COMPLETE|0|Success||INFO||127.0.0.1|0|localhost||AAILogJAXRSOutInterceptor$LoggingCallback||||||||co=aairest:|


    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Seems as if I am  same stage as in this  robot_vm demo.sh failing with ssl error questions as I started with the SSL error too, Following the commands to do alternative start of the hbase container and aai service container  gave me the following result. A big thank you to Venkata Harish Kajur! A very cool guidance!

      root@vm1-robot:/opt# bash  demo.sh init
      Starting Xvfb on display :89 with res 1280x1024x24
      Executing robot tests at log level TRACE
      ==============================================================================
      OpenECOMP ETE
      ==============================================================================
      OpenECOMP ETE.Robot
      ==============================================================================
      OpenECOMP ETE.Robot.Testsuites
      ==============================================================================
      OpenECOMP ETE.Robot.Testsuites.Demo :: Executes the VNF Orchestration Test ...
      ==============================================================================
      Initialize Customer And Models                                        | PASS |
      ------------------------------------------------------------------------------
      OpenECOMP ETE.Robot.Testsuites.Demo :: Executes the VNF Orchestrat... | PASS |
      1 critical test, 1 passed, 0 failed
      1 test total, 1 passed, 0 failed
      ==============================================================================
      OpenECOMP ETE.Robot.Testsuites                                        | PASS |
      1 critical test, 1 passed, 0 failed
      1 test total, 1 passed, 0 failed
      ==============================================================================
      OpenECOMP ETE.Robot                                                   | PASS |
      1 critical test, 1 passed, 0 failed
      1 test total, 1 passed, 0 failed
      ==============================================================================
      OpenECOMP ETE                                                         | PASS |
      1 critical test, 1 passed, 0 failed
      1 test total, 1 passed, 0 failed
      ==============================================================================
      Output:  /share/logs/demo/InitDemo/output.xml
      Log:     /share/logs/demo/InitDemo/log.html
      Report:  /share/logs/demo/InitDemo/report.html



      1. Josef Reisinger

        For the initial SSL issue which was the starting point of the other issue, I added two lines under "import sys"  in RequestsKeywords.py:


        import sys
        import urllib3
        urllib3.disable_warnings();
      CommentAdd your comment...