diff --git a/packages/system/linstor/templates/blockstor-satellite.yaml b/packages/system/linstor/templates/blockstor-satellite.yaml index 7715f9a3c..a4c47daef 100644 --- a/packages/system/linstor/templates/blockstor-satellite.yaml +++ b/packages/system/linstor/templates/blockstor-satellite.yaml @@ -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}} diff --git a/packages/system/linstor/tests/blockstor_workloads_test.yaml b/packages/system/linstor/tests/blockstor_workloads_test.yaml index 64e7db822..2533a7b6e 100644 --- a/packages/system/linstor/tests/blockstor_workloads_test.yaml +++ b/packages/system/linstor/tests/blockstor_workloads_test.yaml @@ -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 diff --git a/packages/system/linstor/values.yaml b/packages/system/linstor/values.yaml index 9a4d94d37..c893de51d 100644 --- a/packages/system/linstor/values.yaml +++ b/packages/system/linstor/values.yaml @@ -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