Jira (PDB-4809) Corrective change every puppet run "GRANT CONNECT ON DATABASE "pe-puppetdb" TO "pe-puppetdb"' (corrective)"

0 views
Skip to first unread message

Elaine McCloskey (Jira)

unread,
Jul 9, 2020, 6:51:03 AM7/9/20
to puppe...@googlegroups.com
Elaine McCloskey created an issue
 
PuppetDB / Bug PDB-4809
Corrective change every puppet run "GRANT CONNECT ON DATABASE "pe-puppetdb" TO "pe-puppetdb"' (corrective)"
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2020/07/09 3:50 AM
Priority: Normal Normal
Reporter: Elaine McCloskey

Puppet Version: 2019.8
Puppet Server Version:
OS Name/Version: RHEL 7

Desired Behavior:

The change occurs once and applies the correct configuration

Actual Behavior:

Every Puppet run a corrective change occurs:

Notice: /Stage[main]/Puppet_enterprise::Profile::Database/Puppet_enterprise::App_database[puppetdb]/Puppet_enterprise::Pg::Migrator_user[pe-puppetdb-migrator]/Puppet_enterprise::Psql[SET ROLE pe-puppetdb-migrator; GRANT pe-puppetdb - CONNECT - pe-puppetdb]/Pe_postgresql_psql[SET ROLE pe-puppetdb-migrator; GRANT pe-puppetdb - CONNECT - pe-puppetdb]/command: command changed to 'SET ROLE "pe-puppetdb-migrator"; GRANT CONNECT ON DATABASE "pe-puppetdb" TO "pe-puppetdb"' (corrective)

This seems to be occurring as the below isn't returning the expected output here:

pe-postgres=# SELECT datacl FROM pg_catalog.pg_database WHERE datname = 'pe-puppetdb';
datacl
--------------------------------------------------------------
{"=T/\"pe-puppetdb\"","\"pe-puppetdb\"=CTc/\"pe-puppetdb\""}
(1 row)

Output from my working test 2019.8:

 

pe-postgres=# SELECT datacl FROM pg_catalog.pg_database WHERE datname = 'pe-puppetdb';
                                                                                            datacl                                                                                            
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 {"\"pe-postgres\"=CTc/\"pe-postgres\"","=T/\"pe-postgres\"","\"pe-puppetdb\"=CT/\"pe-postgres\"","\"pe-puppetdb-migrator\"=c*/\"pe-postgres\"","\"pe-puppetdb\"=c/\"pe-puppetdb-migrator\""}

 

Another difference is the customers pe-postgres user is missing the Bypass RLS attribute, we tested removing this but didn't see the same behaviour as the customer.

Looking for some next steps for the customer.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Margaret Lee (Jira)

unread,
Jul 9, 2020, 10:44:03 AM7/9/20
to puppe...@googlegroups.com

Nick Walker (Jira)

unread,
Jul 9, 2020, 10:46:03 AM7/9/20
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages