Bug 1323710

Summary: oc deploy --cancel reports no deployments running which conflicts with info from oc get pods
Product: OKD Reporter: Dan Mace <dmace>
Component: DeploymentsAssignee: Michail Kargakis <mkargaki>
Status: CLOSED CURRENTRELEASE QA Contact: zhou ying <yinzhou>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, pweil, yinzhou
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-12 17:15:49 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:

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)