Bug 1011451 - Fail to create and resolve outage info using rhc-outage.
Summary: Fail to create and resolve outage info using rhc-outage.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Website
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Clayton Coleman
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-24 10:17 UTC by Tian Feng
Modified: 2015-05-15 01:30 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-17 13:30:59 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.