Skip to content

Commit 93e5ad6

Browse files
author
jmccormick2001
committed
change .ssh directory perms to match the postgres perms on .ssh dirs to support both nfs and fsgroup file system types with the pgbackrest feature
1 parent 78a4d5d commit 93e5ad6

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

apiservermsgs/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ limitations under the License.
1717

1818
import ()
1919

20-
const PGO_VERSION = "3.5.0-rc7"
20+
const PGO_VERSION = "3.5.0-rc6"
2121

2222
// Ok status
2323
const Ok = "ok"

centos7/Dockerfile.pgo-backrest-restore.centos7

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ADD bin/uid_postgres.sh /opt/cpm/bin
2323
RUN chmod g=u /etc/passwd && \
2424
chmod g=u /etc/group
2525

26-
RUN mkdir /.ssh && chown 26:26 /.ssh && chmod g+rwx /.ssh
26+
RUN mkdir /.ssh && chown 26:0 /.ssh && chmod g+rwx /.ssh
2727

2828
ENTRYPOINT ["/opt/cpm/bin/uid_postgres.sh"]
2929

conf/postgres-operator/pgo.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Cluster:
44
CCPImagePrefix: crunchydata
55
Metrics: false
66
Badger: false
7-
CCPImageTag: centos7-11.1-2.3.0-rc5
7+
CCPImageTag: rhel7-9.6.11-2.3.0-rc5
88
Port: 5432
99
User: testuser
1010
Database: userdb
@@ -83,4 +83,4 @@ Pgo:
8383
LSPVCTemplate: /pgo-config/pgo.lspvc-template.json
8484
LoadTemplate: /pgo-config/pgo.load-template.json
8585
COImagePrefix: crunchydata
86-
COImageTag: centos7-3.5.0-rc7
86+
COImageTag: rhel7-3.5.0-rc6

hugo/content/Design/_index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ At this point the PG database is back in a working state. DBAs are still respon
170170
Other things to take into account before you do a restore:
171171

172172
* if a schedule has been created for this PG cluster, delete that schedule prior to performing a restore
173-
* after a restore, exec into the PG primary and make sure the database has fully recovered by looking at the database logs, if not recovered, you might have to run psql command *select pg_wal_replay_resume()* to complete the recovery
173+
* after a restore, exec into the PG primary and make sure the database has fully recovered by looking at the database logs, if not recovered, you might have to run psql command *select pg_wal_replay_resume()* to complete the recovery, on PG 9.6
174+
systems, the command you will use is *select pg_xlog_replay_resume()*.
174175
* a restore is destructive in the sense that it deletes the existing Deployment, not the existing primary PVC, that is left but will become unused when the primary Deployment is removed, be sure to create a pgbasebackup prior to restoring, make sure you can restore from that pgbasebackup to avoid any data loss
175176
* there is currently no Operator validation of user entered pgBackRest command options, you will need to make sure to enter these correctly, if not the pgBackRest restore command can fail.
176177
* the restore workflow does not perform a backup after the restore nor does it verify that any replicas are in a working status after the restore, it is possible you might have to take actions on the replica to get them back to replicating with the new restored primary.

rhel7/Dockerfile.pgo-backrest-restore.rhel7

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ADD bin/uid_postgres.sh /opt/cpm/bin
2525
RUN chmod g=u /etc/passwd && \
2626
chmod g=u /etc/group
2727

28-
RUN mkdir /.ssh && chown 26:26 /.ssh && chmod g+rwx /.ssh
28+
RUN mkdir /.ssh && chown 26:0 /.ssh && chmod g+rwx /.ssh
2929

3030
ENTRYPOINT ["/opt/cpm/bin/uid_postgres.sh"]
3131

0 commit comments

Comments
 (0)