]
Andre Dietisheim resolved JBIDE-20634.
--------------------------------------
Fix Version/s: 4.4.2.AM2
(was: LATER)
Assignee: Andre Dietisheim
Resolution: Duplicate Issue
Property gear_profile not added to POST when creating an app using
Openshift plugin
-----------------------------------------------------------------------------------
Key: JBIDE-20634
URL:
https://issues.jboss.org/browse/JBIDE-20634
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.2.3.Final
Environment: Using Openshift Enterprise v2 and JBDS 8.1.0
Reporter: Samuel Tauil
Assignee: Andre Dietisheim
Priority: Critical
Labels: JSON, gear, openshift_v2
Fix For: 4.4.2.AM2
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)