Skip to content

daemon: Uninstall SIGTERM handler just before rebooting - #491

Merged
openshift-merge-robot merged 1 commit into
openshift:masterfrom
cgwalters:uninstall-sigterm-before-reboot
Feb 24, 2019
Merged

openshift-merge-robot merged 1 commit into
openshift:masterfrom
cgwalters:uninstall-sigterm-before-reboot

Conversation

@cgwalters

Copy link
Copy Markdown
Member

This way we're not delaying shutdown.

Closes: #486

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 24, 2019
This way we're not delaying shutdown.

Closes: openshift#486
@cgwalters
cgwalters force-pushed the uninstall-sigterm-before-reboot branch from ca9dff0 to 3e5b642 Compare February 24, 2019 20:25
Comment thread pkg/daemon/update.go
// Now that everything is done, avoid delaying shutdown.
if dn.installedSigterm {
signal.Reset(syscall.SIGTERM)
dn.installedSigterm = false

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this isn't really needed right? we get here sequentially through handleNodeUpdated or the very first sync so we don't care about this variable anymore just before rebooting

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Correct, but I'm trying to keep in mind future support for live updates (where we'd install/deinstall the term handler without rebooting).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ack

@runcom

runcom commented Feb 24, 2019

Copy link
Copy Markdown
Member

just one comment, lgtm otherwise

/approve

@runcom

runcom commented Feb 24, 2019

Copy link
Copy Markdown
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 24, 2019
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cgwalters, runcom

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

@runcom

runcom commented Feb 24, 2019

Copy link
Copy Markdown
Member

Flake?

time="2019-02-24T20:50:13Z" level=info msg="Waiting up to 30m0s for the cluster to initialize..."
time="2019-02-24T20:50:13Z" level=debug msg="Still waiting for the cluster to initialize..."
time="2019-02-24T20:50:14Z" level=debug msg="Still waiting for the cluster to initialize..."
time="2019-02-24T20:50:29Z" level=debug msg="Still waiting for the cluster to initialize..."
time="2019-02-24T20:50:45Z" level=debug msg="Still waiting for the cluster to initialize..."
time="2019-02-24T20:50:59Z" level=debug msg="Still waiting for the cluster to initialize..."
time="2019-02-24T20:51:44Z" level=debug msg="Still waiting for the cluster to initialize..."
time="2019-02-24T20:51:59Z" level=debug msg="Still waiting for the cluster to initialize..."
time="2019-02-24T20:54:21Z" level=debug msg="Still waiting for the cluster to initialize..."
time="2019-02-24T20:55:14Z" level=debug msg="Still waiting for the cluster to initialize: Cluster operator ingress has not yet reported success"
time="2019-02-24T20:56:11Z" level=debug msg="Still waiting for the cluster to initialize: Cluster operator ingress has not yet reported success"
time="2019-02-24T20:56:19Z" level=debug msg="Still waiting for the cluster to initialize..."
time="2019-02-24T20:58:14Z" level=debug msg="Still waiting for the cluster to initialize..."
time="2019-02-24T20:59:29Z" level=debug msg="Still waiting for the cluster to initialize: Cluster operator monitoring is reporting a failure: Failed to rollout the stack. Error: running task Updating prometheus-adapter failed: failed to load prometheus-adapter-tls secret: secrets \"prometheus-adapter-tls\" not found"
time="2019-02-24T20:59:59Z" level=debug msg="Still waiting for the cluster to initialize: Cluster operator monitoring is reporting a failure: Failed to rollout the stack. Error: running task Updating prometheus-adapter failed: failed to load prometheus-adapter-tls secret: secrets \"prometheus-adapter-tls\" not found"
time="2019-02-24T21:03:44Z" level=debug msg="Still waiting for the cluster to initialize: Cluster operator kube-scheduler is reporting a failure: Failing: Put https://172.30.0.1:443/apis/operator.openshift.io/v1/kubeschedulers/instance/status: read tcp 10.128.0.6:56510->172.30.0.1:443: read: connection reset by peer"
time="2019-02-24T21:05:44Z" level=debug msg="Still waiting for the cluster to initialize..."
time="2019-02-24T21:09:14Z" level=debug msg="Still waiting for the cluster to initialize: Cluster operator kube-scheduler is reporting a failure: Failing: Put https://172.30.0.1:443/apis/operator.openshift.io/v1/kubeschedulers/instance/status: read tcp 10.128.0.6:56510->172.30.0.1:443: read: connection reset by peer"
time="2019-02-24T21:12:44Z" level=debug msg="Still waiting for the cluster to initialize..."
time="2019-02-24T21:15:59Z" level=debug msg="Still waiting for the cluster to initialize: Cluster operator kube-scheduler is reporting a failure: Failing: Put https://172.30.0.1:443/apis/operator.openshift.io/v1/kubeschedulers/instance/status: read tcp 10.128.0.6:56510->172.30.0.1:443: read: connection reset by peer"
time="2019-02-24T21:19:59Z" level=debug msg="Still waiting for the cluster to initialize..."
time="2019-02-24T21:20:13Z" level=fatal msg="failed to initialize the cluster: timed out waiting for the condition"

/retest

@openshift-merge-robot
openshift-merge-robot merged commit 17c4ed0 into openshift:master Feb 24, 2019
ptalgulk01 pushed a commit to ptalgulk01/machine-config-operator that referenced this pull request May 15, 2026
…ore-reboot

daemon: Uninstall SIGTERM handler just before rebooting
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. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants