Bug 1531795

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.7.0CC: aos-bugs, erjones, jcantril, juzhao
Target Milestone: ---   
Target Release: 3.7.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1531790
: 1546374 (view as bug list) Environment:
Last Closed: 2018-04-05 09:34:33 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, 1595317    
Bug Blocks: 1404643, 1522793, 1531794, 1546374    
Attachments:
Description Flags
hawkular-cassandra rc file none

Description John Sanda 2018-01-05 22:37:53 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 06:01:13 UTC
Indentation for terminationGracePeriodSeconds is right in hawkular_cassandra_rc.j2, value now is 1800 in hawkular-cassandra rc, not 30, details see the attached hawkular-cassandra rc file
**********************snipped*****************************
      terminationGracePeriodSeconds: 1800
      volumes:
**********************snipped*****************************

Sanity testing is passed, set it to VERIFIED

# rpm -qa | grep openshift-ansible
openshift-ansible-playbooks-3.7.35-1.git.0.db4cdcd.el7.noarch
openshift-ansible-roles-3.7.35-1.git.0.db4cdcd.el7.noarch
openshift-ansible-filter-plugins-3.7.35-1.git.0.db4cdcd.el7.noarch
openshift-ansible-lookup-plugins-3.7.35-1.git.0.db4cdcd.el7.noarch
openshift-ansible-callback-plugins-3.7.35-1.git.0.db4cdcd.el7.noarch
openshift-ansible-docs-3.7.35-1.git.0.db4cdcd.el7.noarch
openshift-ansible-3.7.35-1.git.0.db4cdcd.el7.noarch

Comment 3 Junqi Zhao 2018-03-01 06:02:37 UTC
Created attachment 1402230 [details]
hawkular-cassandra rc file

Comment 4 Junqi Zhao 2018-03-01 07:19:15 UTC
Value for terminationGracePeriodSeconds in hawkular-cassandra pod is the same with the value in rc

Comment 8 errata-xmlrpc 2018-04-05 09:34:33 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:0636

Comment 9 Eric Jones 2018-06-26 17:23:16 UTC
*** Bug 1595317 has been marked as a duplicate of this bug. ***