Bug 965357 - Got bash errors when sshing into a gear on INT
Summary: Got bash errors when sshing into a gear on INT
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: Paul Morie
QA Contact: libra bugs
URL:
Whiteboard:
: 965827 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-21 02:26 UTC by Jianwei Hou
Modified: 2015-05-14 23:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-11 04:06:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jianwei Hou 2013-05-21 02:26:11 UTC
Description of problem:
Create an app and ssh into the gear, some bash errors are displayed on ssh connection.

Version-Release number of selected component (if applicable):
On INT(not reproducible on devenv_3251)

How reproducible:
Always

Steps to Reproduce:
1. Create a gear
rhc app create phptest php-5.3
2. rhc app-ssh phptest


Actual results:
After step 2:
Warning: Permanently added 'phptest-jhou.int.rhcloud.com,23.22.107.119' (RSA) to the list of known hosts.
bash: cat: command not found
bash: cat: command not found
[phptest-jhou.int.rhcloud.com 519ad96f6cec0ef602000001]\> ls
bash: ls: command not found


Expected results:
Should not have such problem

Additional info:

Comment 1 Paul Morie 2013-05-21 17:33:16 UTC
The root cause (apparently) is that the /etc/openshift/env/PATH file contains an export statement in INT.  I am double-checking with operations; we will likely need to add a note to the release ticket to have this file changed to a raw value.

Comment 2 Paul Morie 2013-05-21 18:21:00 UTC
PR submitted.

Comment 3 openshift-github-bot 2013-05-21 19:50:16 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/ec6f6faf3efd21076dba013c9b34828f405dcc9e
Fix bug 965357: add guard against export in PATH in rhcsh

Comment 4 Paul Morie 2013-05-21 19:56:38 UTC
This will be fixed after the next INT deployment.

Comment 5 Jhon Honce 2013-05-21 21:04:35 UTC
*** Bug 965827 has been marked as a duplicate of this bug. ***

Comment 6 Jianwei Hou 2013-05-24 02:03:02 UTC
This is verified on INT(devenv_3266)

The error with the 'PATH' env var is fixed.

[jenkins1-jhou1.int.rhcloud.com 519590486cec0e7ba800038c]\> echo $PATH
:/bin:/usr/bin:/usr/sbin


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