Bug 1282940
| Summary: | Exception log output when using rhc app ssh "--ssh option" with exist directory | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Timothy Williams <tiwillia> |
| Component: | oc | Assignee: | Timothy Williams <tiwillia> |
| Status: | CLOSED ERRATA | QA Contact: | Wei Sun <wsun> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 2.2.0 | CC: | aos-bugs, dma, jokerman, libra-bugs, mmccomas, vdinh, yanpzhan |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause: RHC ssh did not check whether the ssh executable passed with the '--ssh' option was a directory or a valid file.
Consequence: RHC crashes with a backtrace was reported when a directory was passed with '--ssh'.
Fix: Before using the specified ssh executable, check to ensure the executable is a valid file.
Result: An error is properly reported before the use of the ssh executable if the specified executable is not a regular file.
|
Story Points: | --- |
| Clone Of: | 1163050 | Environment: | |
| Last Closed: | 2015-12-17 17:11:39 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: | |||
| Bug Depends On: | 1163050 | ||
| Bug Blocks: | |||
|
Description
Timothy Williams
2015-11-17 20:38:05 UTC
Reproduced the bug on rhc-1.37.1.2-1.el6op.noarch. Verified on rhc-1.38.4.2-1.el6op.noarch Steps to verify: 1.Create an app. # rhc app create ruby1 ruby-1.9 2.Ssh the app with existing but wrong directory. It will return gracefull error: # rhc ssh ruby1 --ssh /etc/init.d/ SSH executable '/etc/init.d/' is not a regular file. 3.Ssh the app after set "ssh=/etc/init.d/" in ~/.openshift/express.conf.It will return gracefull error: # rhc ssh ruby1 SSH executable '/etc/init.d' is not a regular file. 4.Ssh the app with the right directory. # rhc ssh ruby1 --ssh /usr/bin/ssh Connecting to domzyp-ruby1-1.com.cn .. ...... [ruby1-domzyp.ose22-auto.com.cn domzyp-ruby1-1]\> ls app-deployments app-root git ruby The bug has been fixed, so move it to Verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-2666.html |