Uploaded image for project: 'Network Controller'
  1. Network Controller
  2. SDNC-559

NPE shown when an incorrect openstack endpoint is provided.

XMLWordPrintable

      It looks like we try to talk to the openstack to get vserver information.  However if its not reachable, we get a timeout error.  

      However a NPE is shown which I THINK means its still trying to reach out and grab vserver information and not getting a proper value back? Not sure

      If we can't reach the OS, then just bail out and move on. 

       

      2018-12-24 18:12:05,233|||discovery-worker-2||||ERROR||||||| AC2002E|AC2002E Error during POST operation to endpoint at url = http://192.168.112.12:5000/v3/auth/tokens with error = java.net.SocketTimeoutException: connect timed out|
      2018-12-24 18:12:05,234|||discovery-worker-2||||INFO||||||| AC0003I|AC0003I POST request operation time = 5078 ms for link = [http://192.168.112.12:5000/v3/auth/tokens||http://192.168.112.12:5000/v3/auth/tokens%7C]
      2018-12-24 18:12:05,234|||discovery-worker-2||||INFO||||||| AC0004I|AC0004I request at url = http://192.168.112.12:5000/v3/auth/tokens resulted in http response: 500 Internal Server Error|
      2018-12-24 18:12:05,234|||discovery-worker-2||||INFO||||||| request at url = http://192.168.112.12:5000/v3/auth/tokens resulted in http response: null
      2018-12-24 18:12:05,237|||discovery-worker-2||||ERROR||||||| Failure in resource task
      java.lang.NullPointerException: null
      at org.onap.sdnc.apps.pomba.networkdiscovery.service.OSAuthentication.getToken(OSAuthentication.java:67)
      at org.onap.sdnc.apps.pomba.networkdiscovery.service.SpringServiceImpl$ResourceTask.runResourceDiscoveryTask(SpringServiceImpl.java:199)
      at org.onap.sdnc.apps.pomba.networkdiscovery.service.SpringServiceImpl$ResourceTask.run(SpringServiceImpl.java:179)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
      2018-12-24 18:12:05,240|||discovery-worker-0||||ERROR||||||| Failure in resource task
      java.lang.NullPointerException: null

            ntraxler ntraxler
            dstangl dstangl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: