Bug 991327 - Environment variable error pops up when ssh to some old apps
Summary: Environment variable error pops up when ssh to some old apps
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Dan Mace
QA Contact: libra bugs
URL:
Whiteboard:
Depends On: 999013
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-02 07:21 UTC by Qiushui Zhang
Modified: 2015-05-14 23:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-15 14:22:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Qiushui Zhang 2013-08-02 07:21:05 UTC
Description of problem:
When ssh to some old apps, error message pops up, saying like "bash: export: `OPENSHIFT_RUBY_LOG_DIR.erb=<%= ENV['OPENSHIFT_RUBY_DIR'] %>/logs/': not a valid identifier"

Version-Release number of selected component (if applicable):
stg(devenv-stage_435)
rhc 1.12.4

How reproducible:
always

Steps to Reproduce:
1. Prepare old apps. (We have reproduced the problem on apps created before July 16)
2. rhc ssh $appname
3. Check the ssh output message

Actual results:
Error message pops up, saying "bash: export: `OPENSHIFT_RUBY_LOG_DIR.erb=<%= ENV['OPENSHIFT_RUBY_DIR'] %>/logs/': not a valid identifier"

Expected results:
No such kind of error message

Additional info:
1. We have repoduced this issue on the following apps:
http://rb181-qiuzhang.stg.rhcloud.com
http://redmine-sprint25.stg.rhcloud.com
http://jbews2-bmeng1stg.stg.rhcloud.com
http://ruby19s-bmeng1stg.stg.rhcloud.com

2. Attach the output message here:
[openshift@dhcp-10-143 tmp]$ rhc ssh rb181
Connecting to 51e4ba8e2587c8be8b0000ef.rhcloud.com ...
bash: export: `OPENSHIFT_RUBY_LOG_DIR.erb=<%= ENV['OPENSHIFT_RUBY_DIR'] %>/logs/': not a valid identifier
bash: export: `OPENSHIFT_RUBY_LOG_DIR.erb=<%= ENV['OPENSHIFT_RUBY_DIR'] %>/logs/': not a valid identifier

    *********************************************************************

    You are accessing a service that is for use only by authorized users.  
    If you do not have authorization, discontinue use at once. 
    Any use of the services is subject to the applicable terms of the 
    agreement which can be found at: 
    https://www.openshift.com/legal

    *********************************************************************

    Welcome to OpenShift shell

    This shell will assist you in managing OpenShift applications.

    !!! IMPORTANT !!! IMPORTANT !!! IMPORTANT !!!
    Shell access is quite powerful and it is possible for you to
    accidentally damage your application.  Proceed with care!
    If worse comes to worst, destroy your application with 'rhc app delete'
    and recreate it
    !!! IMPORTANT !!! IMPORTANT !!! IMPORTANT !!!

    Type "help" for more info.

[rb181-qiuzhang.stg.rhcloud.com 51e4ba8e2587c8be8b0000ef]\>

Comment 1 Dan Mace 2013-08-15 14:22:21 UTC
Going to close this one since it's not reproducible for new apps; if any prod apps have leftover ERBs causing this benign error, we'll have the gears cleaned up (as leftover ERBs would be indicative of some past bug/migration oversight/failure).

Delete any /var/lib/openshift/.../$cart/env/*.erb files in these stage apps to prevent the error message.


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