Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1388832 - Can't resume the paused DC
Can't resume the paused DC
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Deployments (Show other bugs)
3.4.0
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Michal Fojtik
zhou ying
: Regression
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-10-26 05:30 EDT by zhou ying
Modified: 2017-03-08 13 EST (History)
2 users (show)

See Also:
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 07:45:46 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0066 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.4 RPM Release Advisory 2017-01-18 12:23:26 EST

  None (edit)
Description zhou ying 2016-10-26 05:30:53 EDT
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 09:32:27 EDT
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-02 22:52:38 EDT
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 03:49:46 EST
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 07:45:46 EST
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.