Bug 1470962 - oc cp a file to container's folder will fail when the path doesn't ended up with slash
oc cp a file to container's folder will fail when the path doesn't ended up w...
Status: NEW
Product: OpenShift Container Platform
Classification: Red Hat
Component: Command Line Interface (Show other bugs)
3.6.0
Unspecified Unspecified
medium Severity low
: ---
: ---
Assigned To: Fabiano Franz
Xingxing Xia
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-14 03:09 EDT by XiaochuanWang
Modified: 2017-07-14 03:09 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description XiaochuanWang 2017-07-14 03:09:46 EDT
Description of problem:
Run a pod container, try to copy file from local to a container's folder but not ended up with slash.

Version-Release number of selected component (if applicable):
oc v3.6.141

How reproducible:
Always

Steps to Reproduce:
1. $ touch test
$ oc run mypod --image=aosqe/hello-openshift --generator='run-pod/v1'
Then wait for pod Running.
2. $ oc cp test mypod:/tmp
3. (For compare) $ oc cp test mypod:/tmp/
$ oc rsh mypod ls /tmp
test

Actual results:
2. 
tar: can't open 'test': Permission denied
command terminated with exit code 1


Expected results:
Step 2 should be same with step 3

Additional info:
# oc cp test mypod:/
tar: can't open 'test': Permission denied
command terminated with exit code 1

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