The CSIVolumeGroupSnapshot gate for csi-snapshotter and the linstor
VolumeGroupSnapshotClass were rendered only when
groupsnapshot.storage.k8s.io/v1beta2 is served. The components that
act on group snapshots read v1: csi-snapshotter v8.7.0 builds its
content and class informers on v1 and checks for those v1 kinds at
startup, snapshot-controller v8.7.0 watches all three kinds at v1, and
piraeus-operator v2.12.1 probes v1 VolumeGroupSnapshot. The chart
serves v1, v1beta1 and v1beta2 today, so the outcome is the same, but
once upstream stops serving v1beta2 the gate would switch group
snapshots off while every consumer could still use them. A
distribution that serves v1beta2 without v1 got the gate on, and
csi-snapshotter then disabled the feature at startup anyway.
The class moves to v1 with the gate. Helm matches release objects by
group and kind, so the existing class is updated in place. Velero
1.18 still reads the class at v1beta2, which the chart serves.
The comment claiming csi-snapshotter stalls with the gate on and the
API missing is replaced: v8.7.0 logs a warning and runs without group
snapshots. What the render-time gate buys is a csi-controller rollout
on the first linstor upgrade that sees the API, because csi-snapshotter
looks for it only when it starts.
Tested with helm unittest on packages/system/linstor; a cluster
serving the three kinds at v1beta2 only now renders the gate off and no
class.
Fixes: d89bce58e8 ("feat(linstor): enable VolumeGroupSnapshots for linstor-csi")
Assisted-by: LLM
Signed-off-by: Aleksei Sviridkin <f@lex.la>
Talos satellite graceful shutdown
Cozystack's Talos configuration removes the systemd drbd-shutdown-guard. The optional satellite preStop hook releases unused Secondary DRBD resources so their backing devices, including ZFS zvols, can be released during normal shutdown.
| Parameter | Default | Effect |
|---|---|---|
talos.gracefulShutdown.enabled |
false |
Add the satellite preStop hook when both talos.enabled and drbd.enabled are also true. |
The default satellite lifecycle is unchanged. To enable the hook, set these values for the linstor component of the cozystack.linstor package:
talos:
gracefulShutdown:
enabled: true
Keep the setting in the package's declarative configuration at spec.components.linstor.values.talos.gracefulShutdown.enabled. The LINSTOR Helm chart embeds hack/satellite-pre-stop.py in LinstorSatelliteConfiguration/cozystack-talos; Piraeus converts its podTemplate to a strategic merge patch for each selected satellite DaemonSet. Package reconciliation and upgrades therefore retain the hook while the value remains enabled. Editing a generated Pod or DaemonSet directly does not persist through reconciliation. The hook uses Python and drbdsetup already supplied by the Cozystack satellite image.
The hook runs on every graceful satellite container stop, including ordinary pod restarts. It skips all Primary resources and any resource with an open device, rechecks each candidate, then calls drbdsetup down without force. Unknown or malformed status, command failure and timeout stop further actions. It does not demote resources, call the Kubernetes API, or change access permissions.
Enable it only when satellite and node restarts are performed sequentially, with replication and quorum checked between nodes. Piraeus creates a separate DaemonSet for each node; this chart does not serialize their rollouts. A shared configuration or image update can therefore stop unused Secondary replicas on several nodes at once and pause I/O until they return. Changing or disabling the setting can trigger a pod rollout, and the old pod still runs its existing hook.
Drain workloads before a planned node shutdown. The hook has a 60-second work budget, with each status command limited to 4 seconds and each down command to 10 seconds, and requests a 90-second pod termination grace period. The kubelet's node-shutdown budget can terminate the hook earlier; the pod grace period does not override that budget. Forced reboot, failed kubelet shutdown, still-open devices and unfinished replication are not fixed by this hook.
Related upstream discussion: Piraeus orderly shutdown on Talos.
Run make test in this directory with Helm, helm-unittest and Python 3.11 or later. The tests cover rendering with each feature flag, resource selection and rechecks, bounded errors and timeouts, dry-run behavior, and logging in the shared pod PID namespace.