Uploaded image for project: 'Virtual Infrastructure Deployment'
  1. Virtual Infrastructure Deployment
  2. VID-789

Use proper app_passowrd for PORTAL

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Medium Medium
    • Guilin Release
    • None
    • None
    • None

      vid is getting 401 Unauthorized response from PORTAL when requesting GET https://portal-app:8443/ONAPPORTAL/auxapi/v3/getSessionSlotCheckInterval  (see callstack below)

      The request can pass correctly if VID’s fn_app.app_password in the DB is set in according with line #73 of OOM's
      kubernetes/portal/charts/portal-mariadb/resources/config/mariadb/oom_updates.sql :

        73 update fn_app set app_username='Default', app_password='2VxipM8Z3SETg32m3Gp0FvKS6zZ2uCbCw46WDyK6T5E=', ueb_key='2Re7Pvdkgw5aeAUD', auth_central = 'Y' , auth_namespace = 'org.onap.vid' where app_id = 6;
      

      So the corresponding values should be set into the DB in some initialization phase.

       

       

      Ref:

      java.io.IOException: Server returned HTTP response code: 401 for URL: https://portal-app:8443/ONAPPORTAL/auxapi/v3/getSessionSlotCheckInterval
              at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1919)
              at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515)
              at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527)
              at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:334)
              at org.onap.portalsdk.core.onboarding.crossapi.SessionCommunicationService.getSessionSlotCheckInterval(SessionCommunicationService.java:89)
      

            ittays ittays
            ittays ittays
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: