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

Install systemd unit to run cleanup on shutdown or reboot #6268

Open
agracey opened this issue Jun 28, 2024 · 0 comments
Open

Install systemd unit to run cleanup on shutdown or reboot #6268

agracey opened this issue Jun 28, 2024 · 0 comments
Labels
kind/enhancement An improvement to existing functionality kind/internal priority/medium

Comments

@agracey
Copy link

agracey commented Jun 28, 2024

Is your feature request related to a problem? Please describe.
When rebooting a node, the system shows

[FAILED] Failed unmounting /etc
[FAILED] Failed unmounting /var

for a few minutes before timing out and rebooting.

This makes upgrades take longer than they should and can cause longer than desired service interruptions when hardware is attached to specific nodes (e.g. an IoT gateway for manufacturing)

Describe the solution you'd like
I would like for the REK2 installer to include a systemd unit file that runs rke2-killall.sh when a shutdown or reboot is requested. This has been discussed as a work around previously in: k3s-io/k3s#7362 (comment)

Describe alternatives you've considered

  • Just waiting means an unpredictable outage
  • Running rke2-killall.sh manually means that any tooling that manages the system needs to know about it (which is error prone)
  • Writing the service yourself means that some users are going to not see the documentation and raise new issues

Additional context
This is a companion issue to k3s-io/k3s#10431

@caroline-suse-rancher caroline-suse-rancher added this to the v1.30.4+rke2r1 milestone Aug 1, 2024
@caroline-suse-rancher caroline-suse-rancher removed this from the v1.30.4+rke2r1 milestone Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement An improvement to existing functionality kind/internal priority/medium
Projects
None yet
Development

No branches or pull requests

2 participants