Uploaded image for project: 'Multicloud'
  1. Multicloud
  2. MULTICLOUD-825

Not able to instantiate profile using k8s plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • Dublin Release
    • None
    • None

      Did all the steps to create profile, this is the profile that we created:

       

      $ curl -i http://IP:30280/api/multicloud-k8s/v1/v1/rb/definition/test-rbdef/1/profile/p1

      HTTP/1.1 200 OK

      Server: openresty

      Date: Mon, 16 Sep 2019 16:24:03 GMT

      Content-Type: application/json

      Content-Length: 155

      Connection: keep-alive

       

      {"rb-name":"test-rbdef","rb-version":"1","profile-name":"p1","release-name":"r1","namespace":"testnamespace1","kubernetes-version":"1.13.5","labels":null}

       

      Then we I try to instantiate profile, I get a 500 Internal Server Error response:

       

      sk720x@NJCDTL01SR047F MINGW64 ~

      $ curl -i http:// IP :30280/api/multicloud-k8s/v1/v1/rb/definition/test-rbdef/1/profile/p1

      HTTP/1.1 200 OK

      Server: openresty

      Date: Mon, 16 Sep 2019 16:31:12 GMT

      Content-Type: application/json

      Content-Length: 155

      Connection: keep-alive

       

      {"rb-name":"test-rbdef","rb-version":"1","profile-name":"p1","release-name":"r1","namespace":"testnamespace1","kubernetes-version":"1.13.5","labels":null}

       

      sk720x@NJCDTL01SR047F MINGW64 ~

      $ curl -d @create_rbinstance.json http:// IP :30280/api/multicloud-k8s/v1/v1/instance

      Unable to find Profile to create instance

       

      sk720x@NJCDTL01SR047F MINGW64 ~

      $ curl -i -d @create_rbinstance.json http:// IP :30280/api/multicloud-k8s/v1/v1/instance

      HTTP/1.1 500 Internal Server Error

      Server: openresty

      Date: Mon, 16 Sep 2019 16:31:56 GMT

      Content-Type: text/plain; charset=utf-8

      Content-Length: 42

      Connection: keep-alive

      X-Content-Type-Options: nosniff

       

      Unable to find Profile to create instance

       

      As you can see we created the profile and even did a get on the profile.

       

      This is how our create_rb_instance.json looks like:

       

      {

          "cloud-region": "cloudRegion",

          "profile-name": "p1",

          "rb-name":"test-rbdef",

          "rb-version":"v1",

          "labels":

      {     }

      }

            ritusood ritusood
            shayran shayran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: