Bug 1051984

Summary: Met shell syntax errors when rhcsh on INT
Product: OpenShift Online Reporter: chunchen <chunchen>
Component: ContainersAssignee: Jhon Honce <jhonce>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: wsun
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-30 00:55:22 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 chunchen 2014-01-13 03:31:55 UTC
Description of problem:
when ssh into app, will meet shell errors like "awk: (FILENAME=- FNR=1) fatal: division by zero attempted
expr: syntax error
"

Version-Release number of selected component (if applicable):
INT(devenv_4205)

How reproducible:
always

Steps to Reproduce:
1. SSH into a new or existing app
rhc ssh <app_name>

Actual results:
Connecting to 52ce32e26cec0ec15a000131.rhcloud.com ...

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

    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.


awk: (FILENAME=- FNR=1) fatal: division by zero attempted
expr: syntax error
awk: (FILENAME=- FNR=1) fatal: division by zero attempted
expr: syntax error
[django27-cdm.int.rhcloud.com 52ce32e26cec0ec15a000131]\> 

Expected results:
Should not show shell errors when rhcsh

Additional info:

Comment 1 openshift-github-bot 2014-01-13 07:29:50 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/b00606787996b4a67a70c7c946ee7d21b45f191f
Bug 1051984 - Add -w to quota command

Comment 2 chunchen 2014-01-14 02:04:16 UTC
It's fixed, verified on INT(devenv_4217), please refer to the following results:

$ rhc ssh django27 --server int.openshift.redhat.com -lxxxx -pxxxxx
Connecting to 52ce32e26cec0ec15a000131.rhcloud.com ...

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

    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.


[django27-cdm.int.rhcloud.com 52ce32e26cec0ec15a000131]\>