Bug 849715

Summary: [ORIGIN] Passenger traceback when trying to access /broker/rest/api
Product: OKD Reporter: Peter Ruan <pruan>
Component: PodAssignee: Abhishek Gupta <abhgupta>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 2.xCC: abhgupta, lmeyer
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-17 21:30:10 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:

Description Peter Ruan 2012-08-20 16:51:42 UTC
Description of problem:
  With the latest build of origin, I'm getting a 500 with every 'rhc' commands.  There are nothing in development.log nor mcollective.log.  It looks like there's a missing dnsruby file 

[ pid=23850 thr=70203487990200 file=utils.rb:176 time=2012-08-20 09:46:09.379 ]: *** Exception LoadError in PhusionPassenger::Rack::ApplicationSpawner (no such file to load -- dnsruby) (process 23850, thread #<Thread:0x7fb30bed6370>):
	from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.13/lib/active_support/dependencies.rb:242:in `require'
	from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.13/lib/active_support/dependencies.rb:242:in `require'
	from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.13/lib/active_support/dependencies.rb:225:in `load_dependency'
	from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.13/lib/active_support/dependencies.rb:597:in `new_constants_in'
	from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.13/lib/active_support/dependencies.rb:225:in `load_dependency'
	from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.13/lib/active_support/dependencies.rb:242:in `require'
	from /usr/lib/ruby/gems/1.8/gems/uplift-bind-plugin-0.8.6/lib/uplift-bind-plugin/uplift/bind_plugin.rb:5
	from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.13/lib/active_support/dependencies.rb:242:in `require'
	from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.13/lib/active_support/dependencies.rb:242:in `require'
	from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.13/lib/active_support/dependencies.rb:225:in `load_dependency'
	from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.13/lib/active_support/dependencies.rb:597:in `new_constants_in'
	from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.13/lib/active_support/dependencies.rb:225:in `load_dependency'
	from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.13/lib/active_support/dependencies.rb:242:in `require'
	from /usr/lib/ruby/gems/1.8/gems/uplift-bind-plugin-0.8.6/lib/uplift-bind-plugin.rb:2
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `require'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `each'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `require'
	from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.21/lib/bundler.rb:122:in `require'
	from /var/www/stickshift/broker/config/application.rb:10
	from /var/www/stickshift/broker/config/environment.rb:2:in `require'
	from /var/www/stickshift/broker/config/environment.rb:2
	from config.ru:3:in `require'
	from config.ru:3
	from /usr/lib/ruby/gems/1.8/gems/rack-1.3.0/lib/rack/builder.rb:51:in `instance_eval'
	from /usr/lib/ruby/gems/1.8/gems/rack-1.3.0/lib/rack/builder.rb:51:in `initialize'
	from config.ru:1:in `new'
	from config.ru:1


Version-Release number of selected component (if applicable):
commit 0e93237d36e46918de915bc80436d0be01650380
Merge: 52cdd5c 9daf9cd


How reproducible:
always

Steps to Reproduce:
1. follow the steps on how to build origin from krishnaraman.net
2. build origin
3.
  
Actual results:
getting 500 on all rhc commands

Expected results:
success

Additional info:

Comment 1 Abhishek Gupta 2012-08-21 15:28:13 UTC
Assigning this to myself as I had started working on this yesterday and may already have a fix for this.

Comment 2 Abhishek Gupta 2012-08-21 17:19:14 UTC
The fix is checked into master and will be placed ON_QE once a new livecd is available.

Comment 3 Luke Meyer 2012-08-21 18:04:23 UTC
Appears to have worked in my devbroker setup.

Comment 4 Abhishek Gupta 2012-08-21 18:41:26 UTC
Peter mentioned that he may not need to wait for the next livecd but could rebuild it himself from the crankcase pieces.

Comment 5 Peter Ruan 2012-08-21 20:07:59 UTC
verified with git commit id 83a99c