Description of problem: rhcsh is using a heredoc to display the welcome message. This fails if the gear's quota is exceeded. Version-Release number of selected component (if applicable): How reproducible: Always on a gear that has meet or exceeded quota Steps to Reproduce: 1. Fill gears disk capacity 2. ssh into gear 3. Actual results: Error message about being unable to create heredoc Expected results: No error message, use echo in place of heredoc Additional info: Add comments warnings others about heredoc's in this file.
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/66d963041da5245d2e0121376c456ec21cbb3198 Bug 1004510 - Remove welcome HEREDOC from rhcsh * HEREDOC caused extraneous error message when gear quota exceeeded
Tested on devenv_3758. 1. Create an app 2. SSH to the app. Fill the space, e.g. dd if=/dev/zero of=~/app-root/data/test bs=1M count=2000 3. Log out and SSH to the app again. The welcome banner shows correctly: " 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. "