[BUG] tablespace state failure on CENT8/RHEL8
noelmcloughlin opened this issue · 0 comments
noelmcloughlin commented
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'