Bug 1531794 - Termination grace period set incorrectly for Cassandra pod
Summary: Termination grace period set incorrectly for Cassandra pod
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Hawkular
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.6.z
Assignee: John Sanda
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On: 1531790 1531795 1546374 1595317
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-05 22:36 UTC by John Sanda
Modified: 2021-03-11 16:50 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1531790
Environment:
Last Closed: 2018-06-28 07:54:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github https://github.com/openshift openshift-ansible issues 6632 0 None None None 2020-08-31 13:41:22 UTC
Red Hat Product Errata RHBA-2018:2007 0 None None None 2018-06-28 07:55:17 UTC

Description John Sanda 2018-01-05 22:36:52 UTC
+++ This bug was initially created as a clone of Bug #1531790 +++

Description of problem:
The terminationGracePeriod variable in the ansible script is not set correctly due to bad indentation. The grace period should be set to 30 minutes by default but it is instead defaulting to 30 seconds.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Junqi Zhao 2018-03-01 09:23:44 UTC
Indentation for terminationGracePeriodSeconds is right in hawkular_cassandra_rc.j2, value now is 1800 in hawkular-cassandra pod, not 30,

# oc get po hawkular-cassandra-1-6m9vz -o yaml | grep terminationGracePeriodSeconds -A 2
  terminationGracePeriodSeconds: 1800
  volumes:
  - emptyDir: {}



Sanity testing is passed, set it to VERIFIED
Images
metrics-cassandra-v3.6.173.0.105-1
metrics-hawkular-metrics-v3.6.173.0.104-1
metrics-heapster-v3.6.173.0.104-1

# openshift version
openshift v3.6.173.0.104
kubernetes v1.6.1+5115d708d7
etcd 3.2.1

Comment 3 Junqi Zhao 2018-03-02 04:20:50 UTC
# rpm -qa | grep openshift-ansible
openshift-ansible-roles-3.6.173.0.104-1.git.0.ee43cc5.el7.noarch
openshift-ansible-callback-plugins-3.6.173.0.104-1.git.0.ee43cc5.el7.noarch
openshift-ansible-filter-plugins-3.6.173.0.104-1.git.0.ee43cc5.el7.noarch
openshift-ansible-playbooks-3.6.173.0.104-1.git.0.ee43cc5.el7.noarch
openshift-ansible-3.6.173.0.104-1.git.0.ee43cc5.el7.noarch
openshift-ansible-docs-3.6.173.0.104-1.git.0.ee43cc5.el7.noarch
openshift-ansible-lookup-plugins-3.6.173.0.104-1.git.0.ee43cc5.el7.noarch

Comment 6 errata-xmlrpc 2018-06-28 07:54:52 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-2018:2007


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