Bug 1261548 - oc run --attach gives error: "cannot attach to DeploymentConfig: not implemented"
Summary: oc run --attach gives error: "cannot attach to DeploymentConfig: not implemen...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Fabiano Franz
QA Contact: Wei Sun
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-09 15:27 UTC by Jordan Liggitt
Modified: 2016-01-05 03:00 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-23 21:16:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jordan Liggitt 2015-09-09 15:27:55 UTC
Extracted from https://bugzilla.redhat.com/show_bug.cgi?id=1258390

When --attach option is carried in 'oc run', there is error info indicating "not implemented"
$ oc run nginx --image=nginx --attach=true. 
error: cannot attach to DeploymentConfig: not implemented

Comment 1 Jordan Liggitt 2015-09-09 16:12:41 UTC
OpenShift overrides the "run" command generator to create a DeploymentConfig instead of a replication controller. We need to also inject handling of `--attach` for that object, since the core command doesn't know what to do with it

Comment 2 openshift-github-bot 2015-10-29 05:16:21 UTC
Commit pushed to master at https://github.com/openshift/origin

https://github.com/openshift/origin/commit/65775d3955417cf81258df83b10a603f068c6b3c
Bug 1261548 - oc run --attach support for DeploymentConfig

Comment 3 Yadan Pei 2015-10-30 03:33:08 UTC
Verified on devenv-fedora_2595

oc v1.0.7-32-gd17e473
kubernetes v1.2.0-alpha.1-1107-g4c8e6f4

$ oc run hello-openshift --image=yapei/hello-openshift --attach=true
Waiting for pod yapei-test/hello-openshift-1-isso6 to be running, status is Pending, pod ready: false
Waiting for pod yapei-test/hello-openshift-1-isso6 to be running, status is Pending, pod ready: false
Waiting for pod yapei-test/hello-openshift-1-isso6 to be running, status is Pending, pod ready: false
Waiting for pod yapei-test/hello-openshift-1-isso6 to be running, status is Pending, pod ready: false
Waiting for pod yapei-test/hello-openshift-1-isso6 to be running, status is Pending, pod ready: false
Waiting for pod yapei-test/hello-openshift-1-isso6 to be running, status is Pending, pod ready: false
Started, serving at 8080

it works as expected


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