Bug 1519622 - Disable DC rollback behaviors for logging project DCs
Summary: Disable DC rollback behaviors for logging project DCs
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Logging
Version: 3.7.0
Hardware: All
OS: Linux
Target Milestone: ---
: 3.7.z
Assignee: Jeff Cantrill
QA Contact: Anping Li
Depends On:
TreeView+ depends on / blocked
Reported: 2017-12-01 03:41 UTC by Peter Portante
Modified: 2018-01-23 17:58 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Feature: Modify Elasticsearch deploymentconfigs to disable Openshift rollback behavior Reason: Upgrades of the logging stack that do not result in readiness probe succeeding are rolled back to the last previous successful deployment. This can result in the deployed instances being out-of-date with their configuration and old images Result: This changes will make it so the deployments will not be rolled back and operators can manually intervene without the image and configuration mismatches.
Clone Of:
Last Closed: 2018-01-23 17:58:09 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Github openshift openshift-ansible pull 6356 0 None None None 2017-12-05 16:42:03 UTC
Github openshift openshift-ansible pull 6409 0 None None None 2017-12-08 19:18:33 UTC
Red Hat Product Errata RHBA-2018:0113 0 normal SHIPPED_LIVE OpenShift Container Platform 3.7 and 3.6 bug fix and enhancement update 2018-01-23 22:55:59 UTC

Description Peter Portante 2017-12-01 03:41:12 UTC
It seems we consider disabling the auto rollback to a "working" DC version when a rollout fails.

We can do that by adding, "revisionHistoryLimit: 0" to all logging project DCs.

The problem scenario is as follows:

  1. DC version X depends on configmap "version" A
  2. An upgrade is performed modifying the configmap to "version" B, and DC to version Y
  3. Version of Y of the DC is rolled out, but fails for some reason
  4. Because of the rollout failure, the DC rolls back to version X
  5. Now DC version X fails because the corresponding configmap "version" A is no longer present

Comment 1 openshift-github-bot 2017-12-08 19:17:01 UTC
Commits pushed to master at https://github.com/openshift/openshift-ansible

bug 1519622. Disable rollback of ES DCs

Merge pull request #6356 from jcantrill/1519622_disable_revision_history

bug 1519622. Disable rollback of ES DCs

Comment 3 Anping Li 2017-12-19 02:43:02 UTC
This fix is not merged to v3.7. and please move the bug to a installer errata too.

Comment 4 Anping Li 2018-01-11 04:37:50 UTC
Please ignore comment 3, the fix is in openshift-ansible-3.7.22-1.git.0.a938a52.el7.noarch. The errata include both installer and package now.

Comment 5 Anping Li 2018-01-12 02:05:40 UTC
The test is blocked by 1533313

Comment 6 Anping Li 2018-01-15 04:40:14 UTC
Verified with openshift-ansible-3.7.23.

Comment 9 errata-xmlrpc 2018-01-23 17:58:09 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.


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