You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps did you take and what happened:
Running zfs-localpv natively on a node without daemonset requires common service handling (systemd and alternatives). When stopping the service (SIGTERM) the process keeps running. Thus there must be a goroutine still running. A second stop (SIGTERM) stops the process finally. If it matters it was running successfully in agent mode. Running the binary manually yields the same issue, first Ctrl-C (SIGINT) does not exit the process but yields the output below, needs a second Ctrl-C (SIGINT) to finally exit.
Last few lines in the output:
I0314 03:28:09.527507 10320 volume.go:198] Shutting down ZV workers
I0314 03:28:09.527609 10320 restore.go:179] Shutting down Restore workers
I0314 03:28:09.527531 10320 zfsnode.go:214] Shutting down Node controller
I0314 03:28:09.527638 10320 snapshot.go:187] Shutting down Snap workers
I0314 03:28:09.527644 10320 backup.go:184] Shutting down Bkp workers
What did you expect to happen:
process cleanly stops on SIGTERM
Environment:
LocalPV-ZFS version: v2.7.1
Kubernetes version (use kubectl version): doesn't matter
Kubernetes installer & version: none
Cloud provider or hardware configuration: doesn't matter
OS (e.g. from /etc/os-release): Ubuntu jammy
The text was updated successfully, but these errors were encountered:
dionysius
changed the title
binary does not cleanly shut down on SIGTERM
does not cleanly shut down on SIGTERM
Mar 14, 2025
What steps did you take and what happened:
Running zfs-localpv natively on a node without daemonset requires common service handling (systemd and alternatives). When stopping the service (
SIGTERM
) the process keeps running. Thus there must be a goroutine still running. A second stop (SIGTERM
) stops the process finally. If it matters it was running successfully in agent mode. Running the binary manually yields the same issue, firstCtrl-C
(SIGINT
) does not exit the process but yields the output below, needs a secondCtrl-C
(SIGINT
) to finally exit.Last few lines in the output:
What did you expect to happen:
process cleanly stops on SIGTERM
Environment:
kubectl version
): doesn't matter/etc/os-release
): Ubuntu jammyThe text was updated successfully, but these errors were encountered: