Bug 978837
Summary: | Exception log output when using rhc app ssh --ssh with a wrong execute path | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | Yan Du <yadu> |
Component: | oc | Assignee: | Clayton Coleman <ccoleman> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 2.x | CC: | wsun, xtian |
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: | 2013-07-22 15:18:26 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
Yan Du
2013-06-27 08:09:29 UTC
Commit pushed to master at https://github.com/openshift/rhc https://github.com/openshift/rhc/commit/b6f4b8b0343d1959da397662f9399a00c1fea4ba Bug 978837 - Don't show stack trace if --ssh executable not found rhc app ssh --ssh /path/to/nowhere should return a short error (not found or not executable) to the user instead of a stack trace. test on devenv_3427 , issue still can be reproduced. rhc-1.10.7 Steps: 1. create a app rhc app create app2 php-5.3 2. ssh into app with a wrong execute path [root@Daphne ~]# rhc app ssh -a app2 --ssh /usr/bin/abcd Connecting to 765578476596905210019840.rhcloud.com ... /usr/lib/ruby/gems/1.8/gems/rhc-1.10.7/lib/rhc/commands/ssh.rb:47:in `exec': No such file or directory - /usr/bin/abcd (Errno::ENOENT) from /usr/lib/ruby/gems/1.8/gems/rhc-1.10.7/lib/rhc/commands/ssh.rb:47:in `send' from /usr/lib/ruby/gems/1.8/gems/rhc-1.10.7/lib/rhc/commands/ssh.rb:47:in `run' from /usr/lib/ruby/gems/1.8/gems/rhc-1.10.7/lib/rhc/commands.rb:244:in `send' from /usr/lib/ruby/gems/1.8/gems/rhc-1.10.7/lib/rhc/commands.rb:244:in `execute' from /usr/lib/ruby/gems/1.8/gems/rhc-1.10.7/lib/rhc/commands.rb:235:in `to_commander' from /usr/lib/ruby/gems/1.8/gems/commander-4.1.3/lib/commander/command.rb:180:in `call' from /usr/lib/ruby/gems/1.8/gems/commander-4.1.3/lib/commander/command.rb:180:in `call' from /usr/lib/ruby/gems/1.8/gems/commander-4.1.3/lib/commander/command.rb:155:in `run' from /usr/lib/ruby/gems/1.8/gems/commander-4.1.3/lib/commander/runner.rb:400:in `run_active_command' from /usr/lib/ruby/gems/1.8/gems/rhc-1.10.7/lib/rhc/command_runner.rb:73:in `run!' from /usr/lib/ruby/gems/1.8/gems/commander-4.1.3/lib/commander/delegates.rb:7:in `run!' from /usr/lib/ruby/gems/1.8/gems/rhc-1.10.7/lib/rhc/cli.rb:36:in `start' from /usr/lib/ruby/gems/1.8/gems/rhc-1.10.7/bin/rhc:20 from /usr/bin/rhc:19:in `load' from /usr/bin/rhc:19 use rhc-1.11.1 for test on devenv_3427, issue still can be reproduced. Move back to ON_QA since comment 3 and comment 4 is not testing with the version with the fix, Yan, you need to test it with the rhc installed on the latest devenv or build one from the latest code. verified on devenv_3427 with the rhc client build from devenv_3427 on Linux/Mac/Windows plaform, issue can't be reproduced. move to verified. Steps: 1. create a app rhc app create app2 php-5.3 2. ssh into app with a wrong execute path OpenShift:~ $ rhc app ssh -a phps --ssh /usr/bin/abcd invalid option: SSH executable '/usr/bin/abcd' does not exist. |