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

deploy: set gracePeriodSeconds on deployer deletion #9802

Merged
merged 2 commits into from
Jul 13, 2016
Merged

deploy: set gracePeriodSeconds on deployer deletion #9802

merged 2 commits into from
Jul 13, 2016

Conversation

0xmichalis
Copy link
Contributor

@0xmichalis 0xmichalis commented Jul 12, 2016

Ref #9681

@0xmichalis
Copy link
Contributor Author

[test]

@smarterclayton
Copy link
Contributor

I don't know that this is what you want. How is this helping? You're not giving the deployer a chance to signal other items.

@smarterclayton
Copy link
Contributor

A shorter grace period is probably ok... but I'd say 10-15s, not the "insta kill".

@0xmichalis
Copy link
Contributor Author

0xmichalis commented Jul 12, 2016

I don't know that this is what you want. How is this helping? You're not giving the deployer a chance to signal other items.

What do you mean by "signal other items"? Isn't the delete event handler for pods going to work (and signal the deployment to be reconciled again) ?

@0xmichalis
Copy link
Contributor Author

first run is clean, [test]

@smarterclayton
Copy link
Contributor

If this is fixing your problem then you are probably hitting another
problem.

On Tue, Jul 12, 2016 at 12:33 PM, Michail Kargakis <[email protected]

wrote:

first run is clean, [test]


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#9802 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABG_pzy6SnHIcDS24ljgV16Z9DNmIs5vks5qU8HJgaJpZM4JKf9v
.

@smarterclayton
Copy link
Contributor

All this is probably doing is avoiding whatever race is in the deployment
controller because you don't get a second update to the pod. We just need
to find the race.

On Tue, Jul 12, 2016 at 4:25 PM, OpenShift Bot [email protected]
wrote:

continuous-integration/openshift-jenkins/test ABORTED (
https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6140/)


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#9802 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABG_pxnXxlM-Sz0ctESpmi8ny1J-ZsHtks5qU_gtgaJpZM4JKf9v
.

@0xmichalis
Copy link
Contributor Author

I can't find anything suspicious in the deployment controller. Note that the test uses a very ambitious timeout of 10 seconds. Updating both the timeout and gracePeriodSeconds of the deployer pod

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to c366fd3

@smarterclayton
Copy link
Contributor

The 10s test timeout was probably too much, agree.

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6196/)

@0xmichalis
Copy link
Contributor Author

Assuming LGTY [merge]

@openshift-bot
Copy link
Contributor

openshift-bot commented Jul 13, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/6196/) (Image: devenv-rhel7_4581)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to c366fd3

@openshift-bot openshift-bot merged commit d536e4d into openshift:master Jul 13, 2016
@0xmichalis 0xmichalis deleted the set-grace-period-on-deployer-deletion branch July 13, 2016 20:14
for _, deployerPod := range deployerList.Items {
if err := c.pn.Pods(deployerPod.Namespace).Delete(deployerPod.Name, &kapi.DeleteOptions{}); err != nil && !kerrors.IsNotFound(err) {
if err := c.pn.Pods(deployerPod.Namespace).Delete(deployerPod.Name, &kapi.DeleteOptions{GracePeriodSeconds: &gracePeriod}); err != nil && !kerrors.IsNotFound(err) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, the correct place to put this is where you create the deployer pod, not here.

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.

3 participants