SUSE Support

Here When You Need Us

Understanding the RKE2 systemctl service in failed state

This document (000021859) is provided subject to the disclaimer at the end of this document.

Environment

An RKE2 cluster


Situation

When managing RKE2 clusters, users may notice that stopping RKE2 services using systemctl results in a failed systemd service state. This article explains why this happens, what it means, and how to properly shut down RKE2 processes to avoid confusion or lingering components.

Users observed the following behavior:

  • When running systemctl stop rke2-server on a master node or systemctl stop rke2-agent on a worker node, the service enters a failed state.

  • Despite the service being marked as "failed," some processes such as containerd and pods continue to run.

  • Attempting to kill the main process PID directly does not cleanly stop the related components.

Resolution

To fully and cleanly stop all RKE2-related processes and containers, including containerd, use the rke2-killall.sh script. This script is designed to:

  • Terminate all RKE2 processes

  • Stop containerd and associated workloads

  • Prevent residual resource conflicts when restarting or upgrading

Cause

This behavior is expected and by design. RKE2 does not perform a graceful shutdown when stopped via systemctl. Instead:

  • RKE2 exits abruptly, returning an exit code of 1 rather than 0. When the process exits, it takes the kubelet and containerd with it.

  • This non-zero exit code causes systemd to mark the service as failed.

  • The reason for the abrupt shutdown is to speed up upgrades by leaving containerd and running workloads intact until explicitly cleaned up.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000021859
  • Creation Date: 03-Jun-2025
  • Modified Date:04-Jun-2025
    • SUSE Rancher

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.