Bug 1011451

Summary: Fail to create and resolve outage info using rhc-outage.
Product: OpenShift Online Reporter: Tian Feng <tfeng>
Component: WebsiteAssignee: Clayton Coleman <ccoleman>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: pruan, xtian, yujzhang
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-17 13:30:59 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:

Description Tian Feng 2013-09-24 10:17:07 UTC
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:

Comment 1 Clayton Coleman 2013-09-24 14:17:41 UTC
You need to "bundle exec rhc-outage" the script.  We have a story to fix that in the future.

Comment 2 Yujie Zhang 2013-09-30 03:08:38 UTC
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!

Comment 3 Clayton Coleman 2013-09-30 14:21:46 UTC
Fixed in https://github.com/openshift/li/pull/1936

Comment 4 openshift-github-bot 2013-09-30 21:52:07 UTC
Commit pushed to master at https://github.com/openshift/li

https://github.com/openshift/li/commit/b27b0ac609a24d41d9e5038af678aee375862304
Bug 1011451 - Rails is not loaded properly

Comment 5 Peter Ruan 2013-10-02 19:13:19 UTC
verfied with devenv_3851, the message is posted to the outage page and I don't see the traceback.