fix(ha-restore-test): load barman-cloud plugin without WAL archiver so restored PG starts (REN-339) #1063
@@ -1,8 +1,13 @@
|
||||
# Runbook C.1: recover the recorder DB from ha-pg's Barman backups to the
|
||||
# latest point (last base backup + archived WAL).
|
||||
#
|
||||
# DELIBERATELY NO `plugins:` block. With no WAL archiver this cluster never
|
||||
# writes to s3://renner-uno-k8s-cnpg/ha-pg; see objectstore.yaml.
|
||||
# The `plugins:` entry exists only so CNPG injects the barman-cloud sidecar
|
||||
# into the instance pod: the instance manager must load every plugin the
|
||||
# Cluster references (here via externalClusters) and without the sidecar it
|
||||
# never starts PostgreSQL ("Unknown plugin"). isWALArchiver: false, so this
|
||||
# cluster never archives WAL; no Backup/ScheduledBackup exists here, so it
|
||||
# never writes a base backup. serverName differs from ha-pg as a second
|
||||
# guard; see objectstore.yaml.
|
||||
#
|
||||
# One instance, no walStorage, ceph-block-ephemeral (reclaim Delete) so
|
||||
# nothing outlives the namespace. 32Gi matches ha-pg's PGDATA: the restored
|
||||
@@ -19,6 +24,12 @@ spec:
|
||||
storage:
|
||||
storageClass: ceph-block-ephemeral
|
||||
size: 32Gi
|
||||
plugins:
|
||||
- name: barman-cloud.cloudnative-pg.io
|
||||
isWALArchiver: false
|
||||
parameters:
|
||||
barmanObjectName: ha-pg-store-ro
|
||||
serverName: ha-pg-restore-test
|
||||
bootstrap:
|
||||
recovery:
|
||||
source: ha-pg
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
#
|
||||
# Two clusters archiving WAL to one destinationPath corrupt both (see
|
||||
# ../home-assistant/ha-pg-objectstore.yaml). That cannot happen here: the
|
||||
# recovered Cluster in cluster.yaml has NO `plugins` entry, so nothing archives
|
||||
# WAL or takes base backups through this store. No retentionPolicy either, so
|
||||
# nothing here can prune ha-pg's backups.
|
||||
# recovered Cluster in cluster.yaml loads the plugin with isWALArchiver: false
|
||||
# and has no Backup/ScheduledBackup, so nothing archives WAL or takes base
|
||||
# backups through this store. No retentionPolicy either, so nothing here can
|
||||
# prune ha-pg's backups.
|
||||
apiVersion: barmancloud.cnpg.io/v1
|
||||
kind: ObjectStore
|
||||
metadata:
|
||||
|
||||
Reference in New Issue
Block a user