Bug 1388832 - Can't resume the paused DC
Summary: Can't resume the paused DC
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: openshift-controller-manager
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Michal Fojtik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-26 09:30 UTC by zhou ying
Modified: 2017-03-08 18:43 UTC (History)
2 users (show)

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.
Clone Of:
Environment:
Last Closed: 2017-01-18 12:45:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0066 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.4 RPM Release Advisory 2017-01-18 17:23:26 UTC

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


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