Uploaded image for project: 'Acumos'
  1. Acumos
  2. ACUMOS-3879

Model Deployment URL make it easier to find the swagger

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      After using the deployment client to deploy a model I received a url in the portal front end

      https://acumos-bionic-4/example-model/191227-011641

      When I visit this url I the url redirected to a 404 page

      https://acumos-bionic-4/ui

      I then tried to add /ui to the end of the url

      https://acumos-bionic-4/example-model/191227-011641/ui/#/

      I received the swagger page but the swagger.json didn't load

      I changed the path of the swagger.json to be relative ../swagger.json and then I the api loaded

       

      I then tried to use the api to add numbers I then received failed to fetch due to the url didn't contain the folder prefix added by the nginx ingress and the http protocol was being used instead of the expected https protocol.

       

      I then tried using the nodeport for the service 

       

      acumos@acumos-bionic-4:~$ kubectl get svc -n acumos-models
      NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
      example-model-191226-213155 NodePort 10.96.66.187 <none> 8556:30215/TCP 21h
      example-model-191227-011641 NodePort 10.100.218.52 <none> 8556:31304/TCP 17h
      nginx-example-model-191227-011641 NodePort 10.106.141.146 <none> 8550:30953/TCP 17h

      I tried this url

      http://acumos-bionic-4:30215/ui/

      With chrome and safari I was not able to open these urls due to browser was automatically changing to https protocol. I then tried it on Firefox which gave me a security warning

      I then ended up on this url

      http://acumos-bionic-4:30215/ui/#/methods/methods.add

      and was able to run the model

       

      When I 

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            guyjacobson Guy Jacobson
            Reporter:
            justin14 Justin Early
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: