Bug 1343426

Summary: oc deploy wrongly shows "pending on update" for a complete deployment
Product: OKD Reporter: Xingxing Xia <xxia>
Component: DeploymentsAssignee: Michail Kargakis <mkargaki>
Status: CLOSED CURRENTRELEASE QA Contact: zhou ying <yinzhou>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs
Target Milestone: ---Keywords: Regression
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-09-19 13:51:52 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:

Description Xingxing Xia 2016-06-07 10:19:42 UTC
Description of problem:
oc deploy wrongly shows "pending on update" for a complete deployment. This only reproduces when using the dc database, frontend and dc created by oc new-app. dc created by oc run does not reproduce.

Version-Release number of selected component (if applicable):
oc v1.3.0-alpha.1-159-g93af6aa
kubernetes v1.3.0-alpha.1-331-g0522e63

How reproducible:
Always

Steps to Reproduce:
1. oc login, create project
2. Create dc using different ways
$ oc new-app -f origin/examples/sample-app/application-template-stibuild.json
$ oc new-app openshift/hello-openshift --name helloapp
$ oc run hello --image=openshift/hello-openshift
3. Wait for all pods deployed
$ oc get pod
NAME                        READY     STATUS      RESTARTS   AGE
database-1-u683v            1/1       Running     0          30m
frontend-1-736g2            1/1       Running     0          20m
frontend-1-d75zw            1/1       Running     0          20m
hello-1-ialcp               1/1       Running     0          25m
helloapp-1-au4pg            1/1       Running     0          25m
...
4. Check oc deploy
$ oc deploy database
$ oc deploy frontend
$ oc deploy helloapp
$ oc deploy hello
Actual results:
4. For 'oc deploy', only dc "hello" created by oc run displays correctly:
$ oc deploy database
database deployment #1 pending on update
$ oc deploy frontend
frontend deployment #1 pending on image or update
$ oc deploy helloapp
helloapp deployment #1 pending on image or update
$ oc deploy hello
hello deployment #1 deployed 27 minutes ago - 1 pod

Expected results:
4. All dc's should display correctly

Additional info:

Comment 1 openshift-github-bot 2016-06-09 10:46:53 UTC
Commit pushed to master at https://github.com/openshift/origin

https://github.com/openshift/origin/commit/555f0d2a1efa297617edc876fda1fd45ac9ea683
Bug 1343426: list deployments correctly in oc deploy

Comment 2 Xingxing Xia 2016-06-12 03:27:16 UTC
Verified with oc v1.3.0-alpha.1-251-ga19279f. Fixed. Thanks!