Hide Forgot
Description of problem: Ssh to an instance and try to create and resolve a outage info. Fail to create outage info using rhc-outage. [root@ip-10-144-71-229 status]# ./rhc-outage new newissue "opoooooooooooooooo" /var/www/openshift/site/app/subsites/status/lib/helpers.rb:7:in `<top (required)>': uninitialized constant ActionView (NameError) from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require' from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require' from /var/www/openshift/site/app/subsites/status/lib/models.rb:2:in `<top (required)>' from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require' from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require' from ./rhc-outage:15:in `<main>' [root@ip-10-144-71-229 status]# ./rhc-outage --help /var/www/openshift/site/app/subsites/status/lib/helpers.rb:7:in `<top (required)>': uninitialized constant ActionView (NameError) from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require' from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require' from /var/www/openshift/site/app/subsites/status/lib/models.rb:2:in `<top (required)>' from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require' from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require' from ./rhc-outage:15:in `<main>' Version-Release number of selected component (if applicable): fork_ami_origin_ui_72_membership_845 How reproducible: Always Steps to Reproduce: 1. ssh to instance 2. cd /var/www/openshift/site/app/subsites/status/ 3. ./rhc-outage new newissue "it's an outage info"; ./rhc-outage --help Actual results: Fail to create & resolve outage info. Expected results: Can create & resolve outage info successfully. Additional info:
You need to "bundle exec rhc-outage" the script. We have a story to fix that in the future.
Tried on devenv_3844 using "bundle exec ./rhc-outage", got the same result as following: [root@ip-10-185-16-172 status]# bundle exec ./rhc-outage /var/www/openshift/site/app/subsites/status/lib/helpers.rb:7:in `<top (required)>': uninitialized constant ActionView (NameError) from /var/www/openshift/site/app/subsites/status/lib/models.rb:2:in `<top (required)>' from ./rhc-outage:15:in `<main>' Reopen this bug to track the issue, thanks!
Fixed in https://github.com/openshift/li/pull/1936
Commit pushed to master at https://github.com/openshift/li https://github.com/openshift/li/commit/b27b0ac609a24d41d9e5038af678aee375862304 Bug 1011451 - Rails is not loaded properly
verfied with devenv_3851, the message is posted to the outage page and I don't see the traceback.