Bug 1430409 - The HA doc should specify ownership and permissions for .pgpass
Summary: The HA doc should specify ownership and permissions for .pgpass
Keywords:
Status: CLOSED DUPLICATE of bug 1420206
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Documentation
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: GA
: cfme-future
Assignee: Red Hat CloudForms Documentation
QA Contact: Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-08 14:39 UTC by Nick Carboni
Modified: 2017-03-10 14:04 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-10 08:01:14 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nick Carboni 2017-03-08 14:39:33 UTC
Document URL: https://access.redhat.com/documentation/en-us/red_hat_cloudforms/4.2/html-single/configuring_high_availability/

Section Number and Name: 3.3.4 - Reintroducing the failed node

Describe the issue: 

For postgres to be able to use the .pgpass file it must be owned by the user and group "postgres" and must have 0600 permissions. This should be specified in the documentation as the following command in 3.3.5 will fail if the permissions are incorrect.

More specifically the following commands should be run after copying the file:

chown postgres:postgres /var/lib/pgsql/.pgpass
chmod 0600 /var/lib/pgsql/.pgpass

Comment 2 Dayle Parker 2017-03-10 08:01:14 UTC
Hi Nick,

I've been making updates to this part of the HA doc with Taeho Choi's help in https://bugzilla.redhat.com/show_bug.cgi?id=1420206. 

As part of that work, I've added a step with the commands you mention above before the step "Run repmgr standby follow as the postgres user on the failed primary server to add it as a standby server:"

Feel free to add your review in that bug if you have time as well -- the latest doc version is in https://bugzilla.redhat.com/show_bug.cgi?id=1420206#c5. I'm going to close this as a duplicate as I'm pretty sure it's covered there. (Feel free to reopen this if not.) Thanks for raising this to us!

Cheers,
Dayle

*** This bug has been marked as a duplicate of bug 1420206 ***

Comment 3 Nick Carboni 2017-03-10 14:04:14 UTC
That's great, thanks Dayle


Note You need to log in before you can comment on or make changes to this bug.