Bug 1531794

Summary: Termination grace period set incorrectly for Cassandra pod
Product: OpenShift Container Platform Reporter: John Sanda <jsanda>
Component: HawkularAssignee: John Sanda <jsanda>
Status: CLOSED ERRATA QA Contact: Junqi Zhao <juzhao>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.6.0CC: aos-bugs, jcantril, juzhao
Target Milestone: ---   
Target Release: 3.6.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1531790 Environment:
Last Closed: 2018-06-28 07:54:52 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:
Bug Depends On: 1531790, 1531795, 1546374, 1595317    
Bug Blocks:    

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