Bug 1388832

Summary: Can't resume the paused DC
Product: OpenShift Container Platform Reporter: zhou ying <yinzhou>
Component: openshift-controller-managerAssignee: Michal Fojtik <mfojtik>
Status: CLOSED ERRATA QA Contact: zhou ying <yinzhou>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.4.0CC: aos-bugs, tdawson
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The pause/resume operations are now handled using the PATCH method which makes sure the operation always succeed for the user.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-18 12:45:46 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 zhou ying 2016-10-26 09:30:53 UTC
Description of problem:
When try to resume the paused DC, met error: Error from server: Operation cannot be fulfilled on deploymentconfigs "hello-openshift": the object has been modified; please apply your changes to the latest version and try again

Version-Release number of selected component (if applicable):
openshift version
openshift v3.4.0.15+9c963ec
kubernetes v1.4.0+776c994
etcd 3.1.0-alpha.1

How reproducible:
always

Steps to Reproduce:
1. Login OpenShift and create project;
   `oc new-app openshift/hello-openshift`
2. Create DC and pause it;could you list your commands? 
   `oc rollout pause dc/hello-openshift`
3. Use command to resume the paused DC
   `oc rollout pause dc/hello-openshift`


Actual results:
3. Met error: Error from server: Operation cannot be fulfilled on deploymentconfigs "hello-openshift": the object has been modified; please apply your changes to the latest version and try again




Expected results:
3. Could resume the DC succeed.



Additional info:

Comment 1 Michal Fojtik 2016-10-31 13:32:27 UTC
Should be fixed here: https://github.com/openshift/origin/pull/11658

Additionally there will be more work post-1.4 that will involve adding PATCH for pausing/resuming which should make this error go away completely.

Comment 2 zhou ying 2016-11-03 02:52:38 UTC
Confirmed with latest ami, the issue has fixed:
openshift version
openshift v1.4.0-alpha.0+90d8c62-1000
kubernetes v1.4.0+776c994
etcd 3.1.0-rc.0


[root@zhouy 1101]# oc rollout pause dc/deployment-example
deploymentconfig "deployment-example" paused
[root@zhouy 1101]# oc rollout resume  dc/deployment-example
deploymentconfig "deployment-example" resumed

Comment 3 zhou ying 2016-11-10 08:49:46 UTC
Confirmed with latest OCP , can't reproduce it. 
openshift version
openshift v3.4.0.24+52fd77b
kubernetes v1.4.0+776c994
etcd 3.1.0-rc.0

Comment 5 errata-xmlrpc 2017-01-18 12:45:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:0066