Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-20634

Property gear_profile not added to POST when creating an app using Openshift plugin

XMLWordPrintable

    • Hide

      1. In JBDS create a new app using the openshift tooling plugin.
      2. select a gear profile and create the app.
      3. check in the broker executing oo-app-info -l <your user login> to see where the app was generated. Consider to have at least 2 gear profiles different to make sure you selected one and the app can be created in a different one as the parameter gear_profile isn't sent.
      4. check the logs in /var/log/openshift/broker/production.log and check the POST json that was generated.
      5. Do the same steps to create another app using the web console
      6. Check the production.log to see the JSON generated by the web console that haves the gear_profile added to the JSON POST request.

      Show
      1. In JBDS create a new app using the openshift tooling plugin. 2. select a gear profile and create the app. 3. check in the broker executing oo-app-info -l <your user login> to see where the app was generated. Consider to have at least 2 gear profiles different to make sure you selected one and the app can be created in a different one as the parameter gear_profile isn't sent. 4. check the logs in /var/log/openshift/broker/production.log and check the POST json that was generated. 5. Do the same steps to create another app using the web console 6. Check the production.log to see the JSON generated by the web console that haves the gear_profile added to the JSON POST request.

      When creating a new application using the Openshift plugin and selecting a different gear profile to create the app seems the attribute gear_profile wasn't added properly to the POST http made in the broker. Checking the the same procedure but using the web console the attribute was added properly. This behavior, when creating thru JBDS, forces the app to be created in a different node that was chosen by the user since the attribute is not added to the post JSON.

      This request was generated from JBDS:
      2015-09-08 17:31:33.396 [INFO ] Started POST "/broker/rest/domain/domain1210/applications?include=cartridges" for 108.212.65.14 at 2015-09-08 17:31:33 -0400 (pid:12413)
      2015-09-08 17:31:33.400 [INFO ] Processing by ApplicationsController#create as JSON (pid:12413)
      2015-09-08 17:31:33.400 [INFO ] Parameters: {"name"=>"nanfusecoursetest2", "cartridges"=>[

      {"name"=>"fuse-1.0.0"}

      ], "include"=>"cartridges", "domain_id"=>"domain1210"} (pid:12413)
      2015-09-08 17:34:33.950 [INFO ] Started GET "/broker/rest/domain/domain1210" for 108.212.65.14 at 2015-09-08 17:34:33 -0400 (pid:12439)
      2015-09-08 17:34:33.966 [INFO ] Processing by DomainsController#show as JSON (pid:12439)
      2015-09-08 17:34:33.966 [INFO ] Parameters:

      {"id"=>"domain1210"}

      (pid:12439)
      2015-09-08 17:34:33.999 [INFO ] Completed 200 OK in 32ms (Views: 6.8ms) (pid:12439)

      This one was generated by the broker web console:

      2015-09-08 17:22:34.777 [INFO ] Started POST "/broker/rest/domain/domain1210/applications.json" for 127.0.0.1 at 2015-09-08 17:22:34 -0400 (pid:12413)
      2015-09-08 17:22:34.783 [INFO ] Processing by ApplicationsController#create as JSON (pid:12413)
      2015-09-08 17:22:34.783 [INFO ] Parameters:

      {"cartridges"=>["fuse-1.0.0"], "domain_id"=>"domain1210", "gear_profile"=>"fuse_medium", "initial_git_branch"=>"", "initial_git_url"=>"", "name"=>"nanfusecoursetest1"}

      (pid:12413)
      2015-09-08 17:24:53.751 [INFO ] Completed 201 Created in 138967ms (Views: 10.9ms) (pid:12413)
      2015-09-08 17:24:56.599 [INFO ] Started GET "/broker/rest/application/55ef519a7577e6d79a000027.json" for 127.0.0.1 at 2015-09-08 17:24:56 -0400 (pid:12413)
      2015-09-08 17:24:56.609 [INFO ] Processing by ApplicationsController#show as JSON (pid:12413)
      2015-09-08 17:24:56.612 [INFO ] Parameters:

      {"id"=>"55ef519a7577e6d79a000027"}

      (pid:12413)
      2015-09-08 17:24:56.679 [INFO ] Completed 200 OK in 66ms (Views: 2.3ms) (pid:12413)

              adietish@redhat.com André Dietisheim
              stauil1@redhat.com Samuel Tauil (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: