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

[BUG] tablespace state failure on CENT8/RHEL8 #295

Open
noelmcloughlin opened this issue Apr 14, 2020 · 0 comments
Open

[BUG] tablespace state failure on CENT8/RHEL8 #295

noelmcloughlin opened this issue Apr 14, 2020 · 0 comments
Labels

Comments

@noelmcloughlin
Copy link
Member

noelmcloughlin commented Apr 14, 2020

Your setup

Formula commit hash / release tag

Versions reports (master & minion)

Pillar / config used


Bug details

Describe the bug

The following is the error.

ID: postgresql-tablespace-dir-my_space
    Function: pkg.installed
        Name: policycoreutils-python
      Result: False
     Comment: Error occurred installing package(s). Additional info follows:

              errors:
                  - Running scope as unit: run-rbe6992cf979346839e806a091f78bc73.scope
                    SaltStack repo for RHEL/CentOS 8                248  B/s | 557  B     00:02
                    Failed to download metadata for repo 'saltstack'
                    Ignoring repositories: saltstack
                    Last metadata expiration check: 0:00:03 ago on Tue Apr 14 12:50:52 2020.
                    No match for argument: policycoreutils-python
                    Error: Unable to find a match: policycoreutils-python
     Started: 10:50:36.065831
    Duration: 23615.271 ms
     Changes:
---
          ID: postgresql-tablespace-dir-my_space
    Function: selinux.fcontext_policy_present
        Name: /srv/my_tablespace(/.*)?
      Result: False
     Comment: One or more requisite failed: postgres.server.postgresql-tablespace-dir-my_space
     Started: 10:50:59.706209
    Duration: 0.004 ms
     Changes:

There is also this issue but I'm not sure its related to CENT8/RHEL8

          ID: postgres_tablespace-my_space
    Function: postgres_tablespace.present
        Name: my_space
      Result: False
     Comment: An exception occurred in this state: Traceback (most recent call last):
                File "/usr/lib/python3.6/site-packages/salt/state.py", line 1981, in call
                  **cdata['kwargs'])
                File "/usr/lib/python3.6/site-packages/salt/loader.py", line 1977, in wrapper
                  return f(*args, **kwargs)
                File "/usr/lib/python3.6/site-packages/salt/states/postgres_tablespace.py", line 121, in present
                  if tblspaces[name]['Location'] != directory and not __opts__['test']:
              KeyError: 'my_space'

Steps to reproduce the bug

Expected behaviour

Attempts to fix the bug

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant