Skip to content

[release-4.14] OCPBUGS-18773: Stop all MicroShift components when signaled to exit#2330

Merged
openshift-merge-robot merged 3 commits intoopenshift:release-4.14from
openshift-cherrypick-robot:cherry-pick-2319-to-release-4.14
Sep 12, 2023
Merged

[release-4.14] OCPBUGS-18773: Stop all MicroShift components when signaled to exit#2330
openshift-merge-robot merged 3 commits intoopenshift:release-4.14from
openshift-cherrypick-robot:cherry-pick-2319-to-release-4.14

Conversation

@openshift-cherrypick-robot

This is an automated cherry-pick of #2319

/assign pmtk

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.
@openshift-ci-robot
Copy link

@openshift-cherrypick-robot: Jira Issue OCPBUGS-18548 has been cloned as Jira Issue OCPBUGS-18773. Will retitle bug to link to clone.
/retitle [release-4.14] OCPBUGS-18773: Stop all MicroShift components when signaled to exit

Details

In response to this:

This is an automated cherry-pick of #2319

/assign pmtk

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.

@openshift-ci openshift-ci bot changed the title [release-4.14] OCPBUGS-18548: Stop all MicroShift components when signaled to exit [release-4.14] OCPBUGS-18773: Stop all MicroShift components when signaled to exit Sep 11, 2023
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Sep 11, 2023
@openshift-ci-robot
Copy link

@openshift-cherrypick-robot: This pull request references Jira Issue OCPBUGS-18773, which is invalid:

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

Details

In response to this:

This is an automated cherry-pick of #2319

/assign pmtk

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.

@openshift-ci-robot openshift-ci-robot added the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label Sep 11, 2023
@openshift-ci openshift-ci bot requested review from pacevedom and pmtk September 11, 2023 07:13
@pmtk
Copy link
Member

pmtk commented Sep 11, 2023

/retest

@pacevedom
Copy link
Contributor

/label backport-risk-assessed

@openshift-ci openshift-ci bot added the backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. label Sep 11, 2023
@jogeo
Copy link
Contributor

jogeo commented Sep 11, 2023

/label cherry-pick-approved

@openshift-ci openshift-ci bot added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Sep 11, 2023
@pmtk
Copy link
Member

pmtk commented Sep 12, 2023

/retest

@pmtk
Copy link
Member

pmtk commented Sep 12, 2023

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Sep 12, 2023
@openshift-ci-robot
Copy link

@pmtk: This pull request references Jira Issue OCPBUGS-18773, which is valid.

6 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.14.0) matches configured target version for branch (4.14.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)
  • dependent bug Jira Issue OCPBUGS-18548 is in the state Verified, which is one of the valid states (MODIFIED, ON_QA, VERIFIED)
  • dependent Jira Issue OCPBUGS-18548 targets the "4.15.0" version, which is one of the valid target versions: 4.15.0
  • bug has dependents

Requesting review from QA contact:
/cc @jogeo

Details

In response to this:

/jira refresh

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.

@openshift-ci openshift-ci bot requested a review from jogeo September 12, 2023 07:00
@pmtk
Copy link
Member

pmtk commented Sep 12, 2023

/retest

@pmtk
Copy link
Member

pmtk commented Sep 12, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 12, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 12, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: openshift-cherrypick-robot, pmtk

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

The pull request process is described here

Details 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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 12, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 12, 2023

@openshift-cherrypick-robot: all tests passed!

Full PR test history. Your PR dashboard.

Details

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.

@openshift-merge-robot openshift-merge-robot merged commit df93820 into openshift:release-4.14 Sep 12, 2023
@openshift-ci-robot
Copy link

@openshift-cherrypick-robot: Jira Issue OCPBUGS-18773: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-18773 has been moved to the MODIFIED state.

Details

In response to this:

This is an automated cherry-pick of #2319

/assign pmtk

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

approved Indicates a PR has been approved by an approver from all required OWNERS files. backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants