Bug 876878

Summary: Long debug information will be displayed on create app page when meeting some errors.
Product: OKD Reporter: Yujie Zhang <yujzhang>
Component: MasterAssignee: Ravi Sankar <rpenta>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: rpenta, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-19 19:25:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
create non-template app
none
create medium and scalable wordpress app. none

Description Yujie Zhang 2012-11-15 08:30:23 UTC
Created attachment 645456 [details]
create non-template app

Description of problem:

When I tried to create a jbosseap application, and I clicked the "change" link of source code and input some random string like "4r345awet", and clicked the "create" button ,then long debug code information was displayed on create app page.

Another situation is that I tried to create wordpress app using costum link:

https://int.openshift.redhat.com/app/console/application_types/custom?cartridges[]=ruby-1.9&cartridges[]=mongo&initial_git_url=http://github.com/openshift/wordpress-example

And I set the gear size is medium and set it scalable.Then the debug information was displayed.


Version-Release number of selected component (if applicable):

INT(devenv_2474)

How reproducible:always


Steps to Reproduce:
1.Go to create non-template app page
2.Input random string to the source code form
3.Click the "Create" button
  
OR
1.Create medium and scalable wordpress app using costum link :

https://int.openshift.redhat.com/app/console/application_types/custom?cartridges[]=ruby-1.9&cartridges[]=mongo&initial_git_url=http://github.com/openshift/wordpress-example

Actual results:

Long debug information was displayed on create app page.

Expected results:

There should be correct remind message for user when they repoduce this step, at least, the debug information should not be displayed.

Additional info:

Comment 1 Yujie Zhang 2012-11-15 08:31:04 UTC
Created attachment 645458 [details]
create medium and scalable wordpress app.

Comment 2 Clayton Coleman 2012-11-15 16:26:29 UTC
Broker is saying this requires 4 gears, but that's a dirty lie.

2012-11-15 11:25:44.102 [DEBUG] test has a gear limit of 3 and this app requires 4 gears. (pid:3598)
2012-11-15 11:25:44.103 [DEBUG] /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-controller-1.1.7/app/models/application.rb:308:in `create'
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-controller-1.1.7/app/controllers/applications_controller.rb:122:in `create'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/

2012-11-15 11:25:44.381 [ERROR] ["/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-controller-1.1.7/app/models/application.rb:308:in `create'", "/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-controller-1.1.7/app/controllers/applications_controller.rb:122:in `create'", "/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:4:in `send_action'", "/opt/rh/ruby193/root/usr/share/gems/gems/actio

Comment 3 Ravi Sankar 2012-11-15 18:08:11 UTC
I encountered this issue yesterday and was fixed on devenv_2476

Comment 4 Yujie Zhang 2012-11-16 08:07:19 UTC
(In reply to comment #3)
Tested the above cases on INT, did not meet this issue any more, so verify this bug.