mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-01 20:56:02 +09:00
feat(linstor): let the satellite act on a stalled resync
Without its act flag the satellite only reports a stalled resync (LINBIT/drbd#149) as an Event, and the replica stays Inconsistent until someone runs the drbdadm commands by hand. Production clusters should recover on their own, so blockstorSatellite.stalledResyncAct turns the action on and defaults to true. The flag arrived in blockstor 0.4.0, the release the chart pins, and the backend guard keeps the three images on one release, so the chart passes it without checking the satellite's version. Assisted-by: LLM Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
This commit is contained in:
3 files changed
+37
No files matched your search
@@ -251,6 +251,9 @@ spec:
|
||||
- --stream-tls-cert-file=/etc/blockstor/stream-tls/tls.crt
|
||||
- --stream-tls-key-file=/etc/blockstor/stream-tls/tls.key
|
||||
- --stream-tls-ca-file=/etc/blockstor/stream-tls/ca.crt
|
||||
{{- if .Values.blockstorSatellite.stalledResyncAct }}
|
||||
- --drbd-workaround-stalled-resync-act
|
||||
{{- end }}
|
||||
env:
|
||||
- name: NODE_NAME
|
||||
valueFrom: {fieldRef: {fieldPath: spec.nodeName}}
|
||||
|
||||
@@ -577,3 +577,27 @@ tests:
|
||||
path: spec.template.spec.containers[0].resources
|
||||
value:
|
||||
requests: {cpu: 50m, memory: 128Mi}
|
||||
|
||||
# Without the act flag the satellite only reports a stalled resync, and a
|
||||
# replica caught in LINBIT/drbd#149 stays Inconsistent for good.
|
||||
- it: lets the satellite act on a stalled resync by default
|
||||
template: templates/blockstor-satellite.yaml
|
||||
documentSelector:
|
||||
path: kind
|
||||
value: DaemonSet
|
||||
asserts:
|
||||
- contains:
|
||||
path: spec.template.spec.containers[0].args
|
||||
content: --drbd-workaround-stalled-resync-act
|
||||
|
||||
- it: keeps the stalled-resync check report-only when turned off
|
||||
template: templates/blockstor-satellite.yaml
|
||||
documentSelector:
|
||||
path: kind
|
||||
value: DaemonSet
|
||||
set:
|
||||
blockstorSatellite.stalledResyncAct: false
|
||||
asserts:
|
||||
- notContains:
|
||||
path: spec.template.spec.containers[0].args
|
||||
content: --drbd-workaround-stalled-resync-act
|
||||
@@ -54,6 +54,16 @@ blockstorSatellite:
|
||||
resources:
|
||||
requests: {cpu: 100m, memory: 128Mi}
|
||||
limits: {memory: 2Gi}
|
||||
# Lets the satellite act on a stalled resync (LINBIT/drbd#149) instead
|
||||
# of only reporting it as a Warning Event: after the stall has lasted
|
||||
# several passes it disconnects the peer whose resync waits on the
|
||||
# stalled one, on a replica that is an Inconsistent SyncTarget. With a
|
||||
# Primary in sight it never reconnects a peer to break the stall, since
|
||||
# such a reconnect left two Secondaries with different data while DRBD
|
||||
# reported both UpToDate. On by default: a replica stuck Inconsistent
|
||||
# does not recover without it. The flag exists from blockstor 0.4.0 on;
|
||||
# an older satellite exits on it.
|
||||
stalledResyncAct: true
|
||||
# How a change to the satellite pod template reaches the nodes. The
|
||||
# satellite turns Ready once its caches have synced, seconds after
|
||||
# start; its first pass over the node's DRBD resources ends later and
|
||||
|
||||
Reference in new issue
Block a user