Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postgresql_privs ignores partioned tables in ALL_IN_SCHEMA #54516

Closed
raymondroelands opened this issue Mar 28, 2019 · 4 comments · Fixed by #54517
Closed

postgresql_privs ignores partioned tables in ALL_IN_SCHEMA #54516

raymondroelands opened this issue Mar 28, 2019 · 4 comments · Fixed by #54517
Labels
affects_2.7 This issue/PR affects Ansible v2.7 bug This issue/PR relates to a bug. has_pr This issue has an associated PR. module This issue/PR relates to a module. python3 support:core This issue/PR relates to code supported by the Ansible Engineering Team.

Comments

@raymondroelands
Copy link
Contributor

SUMMARY

The ALL_IN_SCHEMA option of postgresql_privs ignores the partioned tables.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

postresql_privs

ANSIBLE VERSION
ansible 2.7.9
  config file = None
  configured module search path = ['/home/noot/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.5/dist-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609]

CONFIGURATION

OS / ENVIRONMENT

Postgresql version 10.0 >

STEPS TO REPRODUCE

Include partioned table in your schema and grant access access to ALL_IN_SCHEMA

- postgresql_privs:
    db: library
    state: present
    privs: INSERT,UPDATE
    objs: ALL_IN_SCHEMA
    role: myrole
EXPECTED RESULTS

The db user is granted access rights to the partioned and all underlying tables

ACTUAL RESULTS

The db user is only granted access to the underlying tables


@ansibot
Copy link
Contributor

ansibot commented Mar 28, 2019

Files identified in the description:
None

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibot ansibot added affects_2.7 This issue/PR affects Ansible v2.7 bug This issue/PR relates to a bug. needs_triage Needs a first human triage before being processed. python3 support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Mar 28, 2019
@Akasurde
Copy link
Member

!component =/lib/ansible/modules/database/postgresql/postgresql_privs.py

@Akasurde
Copy link
Member

resolved_by_pr #54517

@Akasurde Akasurde added has_pr This issue has an associated PR. and removed needs_triage Needs a first human triage before being processed. labels Mar 28, 2019
@ansibot
Copy link
Contributor

ansibot commented Mar 28, 2019

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibot ansibot added the module This issue/PR relates to a module. label Mar 28, 2019
@ansible ansible locked and limited conversation to collaborators Jul 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.7 This issue/PR affects Ansible v2.7 bug This issue/PR relates to a bug. has_pr This issue has an associated PR. module This issue/PR relates to a module. python3 support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants