Bug 1323710 - oc deploy --cancel reports no deployments running which conflicts with info from oc get pods
Summary: oc deploy --cancel reports no deployments running which conflicts with info f...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Deployments
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Michail Kargakis
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-04 13:30 UTC by Dan Mace
Modified: 2016-05-12 17:15 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-12 17:15:49 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Dan Mace 2016-04-04 13:30:57 UTC
Description of problem:

Moved here from: https://bugzilla.redhat.com/show_bug.cgi?id=1318920#c5

The issue only reproduced on Online:

[root@zhouy testjson-for-int]# oc get pods
NAME             READY     STATUS    RESTARTS   AGE
hooks-1-lenv2    1/1       Running   0          14m
hooks-2-deploy   0/1       Error     0          13m
hooks-3-deploy   1/1       Running   0          3m
[root@zhouy testjson-for-int]# oc deploy hooks --cancel
No deployments are in progress (latest deployment #3 running 3 minutes ago)
[root@zhouy testjson-for-int]# oc get pods
NAME             READY     STATUS    RESTARTS   AGE
hooks-1-lenv2    1/1       Running   0          14m
hooks-2-deploy   0/1       Error     0          13m
hooks-3-deploy   1/1       Running   0          3m

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Michail Kargakis 2016-04-04 13:47:03 UTC
Zhou, can you please post the output of `oc get rc,dc -o yaml`

Comment 2 zhou ying 2016-04-05 02:52:26 UTC
The result of rc:
http://pastebin.test.redhat.com/362411

The result of dc:
http://pastebin.test.redhat.com/362412

Comment 3 Michail Kargakis 2016-04-05 11:28:23 UTC
Thanks. The only issue I am observing here is that the cancellation message post-cancel is wrong.

Comment 4 Paul Weil 2016-04-05 14:29:24 UTC
Pull to fix message: https://github.com/openshift/origin/pull/8357

Comment 5 openshift-github-bot 2016-04-05 16:04:44 UTC
Commit pushed to master at https://github.com/openshift/origin

https://github.com/openshift/origin/commit/0ec0c6c879de32332fabca13ba91a6dc4d55bf99
Bug 1323710: fix deploy --cancel message on subsequent calls

Comment 6 zhou ying 2016-04-06 03:12:01 UTC
Verified on latest ami devenv_rhel7_3911, the issue has fixed:
openshift v1.1.6-7-gb022375
kubernetes v1.2.0-36-g4a3f9c5
etcd 2.2.5


[root@ip-172-18-8-178 amd64]# oc deploy ruby-hello-world --cancel
No deployments are in progress (latest deployment #3 cancelled 22 seconds ago)


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