Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 91: PrestopHook configured for zookeeper cluster always fails #186

Merged
merged 2 commits into from
May 28, 2020

Conversation

anishakj
Copy link
Contributor

@anishakj anishakj commented May 28, 2020

Signed-off-by: anisha.kj anisha.kj@dell.com

Change log description

Default Termination grace period was set to 30s, and in tearDown.sh we were waiting for 180s for client connection to terminate. Due to this after grace period is over, kubernetes is sending SIGKILL due to that we were getting 137 error code. (https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods)

Purpose of the change

Fixes #91

What the code does

Increased default termination grace period to 180s. In teardown script, corrected the loop for waiting for client connection. Also installed ps in container, as zookeeper-3.5.5 doesnt have it.

How to verify it

Verified the following scenarios

  1. Deleted pod
  2. Scale down the replicas
  3. Deleted zk cluster. In all these scenarios, prestophook failure is not observed in kubectl events

Signed-off-by: anisha.kj <anisha.kj@dell.com>
@codecov-commenter
Copy link

codecov-commenter commented May 28, 2020

Codecov Report

Merging #186 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #186   +/-   ##
=======================================
  Coverage   53.38%   53.38%           
=======================================
  Files           7        7           
  Lines        1107     1107           
=======================================
  Hits          591      591           
  Misses        468      468           
  Partials       48       48           
Impacted Files Coverage Δ
...g/apis/zookeeper/v1beta1/zookeepercluster_types.go 92.36% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 45f8a92...a5fc788. Read the comment docs.

Signed-off-by: anisha.kj <anisha.kj@dell.com>
@Prabhaker24
Copy link
Contributor

LGTM

Copy link
Contributor

@SrishT SrishT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@anishakj anishakj merged commit 0aec4f1 into master May 28, 2020
@anishakj anishakj deleted the issue-teardown branch May 28, 2020 17:10
whitleykeith pushed a commit to whitleykeith/zookeeper-operator that referenced this pull request Jun 5, 2020
…ravega#186)

* Fixed prestop failure in teardown script

Signed-off-by: anisha.kj <anisha.kj@dell.com>

* added break in for loop

Signed-off-by: anisha.kj <anisha.kj@dell.com>
whitleykeith pushed a commit to whitleykeith/zookeeper-operator that referenced this pull request Jun 8, 2020
whitleykeith pushed a commit to whitleykeith/zookeeper-operator that referenced this pull request Jun 8, 2020
whitleykeith pushed a commit to whitleykeith/zookeeper-operator that referenced this pull request Jun 8, 2020
anishakj pushed a commit that referenced this pull request Jun 8, 2020
…dards (#184)

* prefixing service ports with tcp to comply with istio standards

* Revert "Issue 91: PrestopHook configured for zookeeper cluster always fails (#186)"

This reverts commit d502a60.

* Revert "Revert "Issue 91: PrestopHook configured for zookeeper cluster always fails (#186)""

This reverts commit 0fd66ea.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PrestopHook configured for zookeeper cluster always fails
4 participants