Bug 1343426 - oc deploy wrongly shows "pending on update" for a complete deployment
Summary: oc deploy wrongly shows "pending on update" for a complete deployment
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-06-07 10:19 UTC by Xingxing Xia
Modified: 2016-09-19 13:51 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-19 13:51:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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!


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