Bug 1353161
Summary: | Better to remove the message "error executing remote command" when exit from container | ||
---|---|---|---|
Product: | OKD | Reporter: | Xingxing Xia <xxia> |
Component: | oc | Assignee: | Fabiano Franz <ffranz> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Xingxing Xia <xxia> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 3.x | CC: | aos-bugs, jvallejo, mmccomas |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-12-09 21:50:40 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: | 1290023, 1496992 | ||
Bug Blocks: |
Description
Xingxing Xia
2016-07-06 10:24:26 UTC
(In reply to Juan Vallejo from comment #2) > PR: https://github.com/openshift/origin/pull/9334 Please ignore PR link, this is for another bug This has been fixed upstream and will be in Origin in the next rebase: https://github.com/kubernetes/kubernetes/pull/26541 We are not removing the error "error executing remote command..." as it could impact scriptability. (In reply to Juan Vallejo from comment #4) > This has been fixed upstream and will be in Origin in the next rebase: > https://github.com/kubernetes/kubernetes/pull/26541 > > We are not removing the error "error executing remote command..." as it > could impact scriptability. The PR link does fix returning the right exit code for the command that failed in the container. Tested on latest AMI devenv-centos7_5359 (openshift v1.4.0-alpha.1+9c4f9ee-179), the binary has included the rebase of PR 26541. Test steps: [centos@ip-172-18-3-144 xxia]$ oc rsh database-1-2zynr sh-4.2$ datr sh: datr: command not found sh-4.2$ exit exit [centos@ip-172-18-3-144 xxia]$ echo $? 127 [centos@ip-172-18-3-144 xxia]$ oc rsh database-1-2zynr sh-4.2$ ls inexist-file ls: cannot access inexist-file: No such file or directory sh-4.2$ exit exit [centos@ip-172-18-3-144 xxia]$ echo $? 2 Now it returns the right exit code for the command that failed in the container, like bug 1290023 of oc exec. > We are not removing the error "error executing remote command..." as it > could impact scriptability. But this is not the fact. From above results, seems the error "error executing remote command..." is removed? > But this is not the fact. From above results, seems the error "error executing remote command..." is removed?
Apologies, I had used an older openshift image for my results. Tried it again with `openshift v1.3.0-rc1+9c4f9ee-1415` and it is not giving me the message "error executing remote command..." anymore.
|