OCPBUGS-18548: Stop all MicroShift components when signaled to exit#2319
Conversation
|
@pmtk: This pull request references Jira Issue OCPBUGS-18548, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this: 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. |
|
Skipping CI for Draft Pull Request. |
|
/test all |
By using cmd.Context(), KCM will use a context MicroShift passes down through all the components. When using context.Background() it won't ever stop, because it's never cancelled, and result in blocking ServiceManager which waits for all components to stop and make MicroShift use its whole internal gracefulShutdownTimer.
shutdown-delay-duration tells KAS how long to serve after receiving a stop signal. Its value is provided to time.Sleep(), so it's used in full; there is not short-circuit mechanism that would let KAS exit earlier.
9e28f91 to
0454f28
Compare
|
/jira refresh |
|
@pmtk: This pull request references Jira Issue OCPBUGS-18548, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
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. |
|
@pmtk: This pull request references Jira Issue OCPBUGS-18548, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
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. |
|
@pmtk: This pull request references Jira Issue OCPBUGS-18548, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
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. |
|
/lgtm nice find! |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: eggfoobar, pmtk The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@pmtk: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
@pmtk: Jira Issue OCPBUGS-18548: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-18548 has been moved to the MODIFIED state. DetailsIn response to this:
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. |
|
/cherrypick release-4.14 |
|
@pmtk: new pull request created: #2330 DetailsIn response to this:
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. |
make KCM use context we give to command
By using
cmd.Context(), KCM will use a context MicroShift passes down through all the components.When using
context.Background()it won't ever stop, because it's never cancelled, and result in blockingServiceManagerwhich waits for all components to stop and make MicroShift use its whole internalgracefulShutdownTimer.override KAS'
shutdown-delay-durationto5s(from70s)shutdown-delay-durationtells KAS how long to serve after receiving a stop signal.Its value is provided to
time.Sleep(), so it's used in full; there is not short-circuit mechanism that would let KAS exit earlier.Default value of
70sis set inassets/controllers/kube-apiserver/defaultconfig.yaml