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

scion.sh: block for child processes at shutdown #4445

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

matzf
Copy link
Contributor

@matzf matzf commented Nov 23, 2023

The supervisorctl shutdown command does not block for the supervisor or its child processes to terminate.
This can occasionally lead to situations where SCION processes were still running after the scion.sh stop command returned. In the CI system, which immediately proceeds to bundle up the log files, this led to tar reporting an error that the log file was still being written to (e.g. here).
Fixed by invoking supervisorctl stop all, which does block, to terminate all child processes before shutdown.


This change is Reviewable

The `supervisorctl shutdown` command does not block for the supervisor
or its child processes to terminate.
This can occasionally lead to situations where SCION processes were
still running after the `scion.sh stop` command returned. In the CI
system, which immediately proceeds to bundle up the log files, this led
to `tar` reporting an error that the log file was still being written
to.
Fixed by invoking `supervisorctl stop all`, which does block, to
terminate all child processes before `shutdown`.
Copy link
Contributor

@jiceatscion jiceatscion left a comment

Choose a reason for hiding this comment

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

LGTM

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @matzf)

Copy link
Contributor

@jiceatscion jiceatscion left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @matzf)

@matzf matzf merged commit c890767 into scionproto:master Nov 23, 2023
4 checks passed
@matzf matzf deleted the scion-stop-block branch November 23, 2023 10:01
juagargi pushed a commit to netsec-ethz/scion that referenced this pull request Mar 8, 2024
The `supervisorctl shutdown` command does not block for the supervisor
or its child processes to terminate.
This can occasionally lead to situations where SCION processes were
still running after the `scion.sh stop` command returned. In the CI
system, which immediately proceeds to bundle up the log files, this led
to `tar` reporting an error that the log file was still being written
to.
Fixed by invoking `supervisorctl stop all`, which does block, to
terminate all child processes before `shutdown`.
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.

2 participants