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

Support Graceful Shutdown #751

Closed

Conversation

jerpeter1
Copy link
Member

@jerpeter1 jerpeter1 commented Mar 2, 2023

If the kubelet where the the sriov pod is running has gracefulShutdown configured, we'll delay in preStop for a while if and while /tmp/sriov-delay-shutdown exists in the host filesystem, up to a maximum wait that's less than 15 minutes (which is now specified in the daemonset pod's terminationGracePeriodSeconds).

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 2, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 2, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 2, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: jerpeter1
Once this PR has been reviewed and has the lgtm label, please assign schseba for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jerpeter1
Copy link
Member Author

Exploring this as a possibly less-risky alternative to involving signal handlers to supporting graceful shutdown. If a node's kubelet doesn't have gracefulShutdown configured, this should do nothing, and if it does, it should delay preStop for a little while.

@jerpeter1
Copy link
Member Author

/test all

@jerpeter1
Copy link
Member Author

/test e2e-openstack-nfv-hwoffload

@jerpeter1
Copy link
Member Author

/test all

If the kubelet where the the sriov pod is running has gracefulShutdown
configured, we'll delay in preStop for a while if and while /tmp/sriov-delay-shutdown
exists, up to a maximum wait that's less than 15 minutes (which is now specified in
the daemonset pod's terminationGracePeriodSeconds).
@jerpeter1 jerpeter1 changed the title WIP: Support Graceful Shutdown Support Graceful Shutdown Mar 22, 2023
@jerpeter1
Copy link
Member Author

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 22, 2023
@jerpeter1
Copy link
Member Author

Waiting for upstream PR to merge: k8snetworkplumbingwg/sriov-network-operator#416

@jerpeter1 jerpeter1 marked this pull request as ready for review March 22, 2023 19:57
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 22, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 22, 2023

@jerpeter1: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-openstack-nfv 87ecbb3 link false /test e2e-openstack-nfv
ci/prow/e2e-openstack-nfv-hwoffload 87ecbb3 link false /test e2e-openstack-nfv-hwoffload

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@SchSeba
Copy link
Contributor

SchSeba commented Mar 23, 2023

Hi @jerpeter1 I am closing this one we continue to work on the u/s and then we do a full sync between all the PRs

/close

@openshift-ci openshift-ci bot closed this Mar 23, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 23, 2023

@SchSeba: Closed this PR.

In response to this:

Hi @jerpeter1 I am closing this one we continue to work on the u/s and then we do a full sync between all the PRs

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants