Actions
Bug #30323
closedTracker #27511: ensure foreman-maintain works with RHEL8 Satellite & Capsules
assumes SCL paths for databases on EL8
Difficulty:
Triaged:
No
Description
Ohai
def config_files if check_min_version('foreman', '2.0') ['/var/opt/rh/rh-postgresql12/lib/pgsql/data/postgresql.conf'] else ['/var/lib/pgsql/data/postgresql.conf'] end end
this is only true on EL7, on EL8 we don't have an SCL'ed PostgreSQL
This breaks DB backups on EL8 currently :(
Updated by Evgeni Golov almost 5 years ago
Updated by James Jeffers almost 4 years ago
Evgeni Golov wrote:
Could we use pg_config to discover these paths?
Updated by Evgeni Golov almost 4 years ago
pg_config is part of postgresql-devel, which we don't install by default (nor should we)
and there is no /usr/bin/pg_config in the SCL'ed packages (neither in their syspaths variants), so we'd still need to know whether to load the SCL or not.
:(
Updated by Evgeni Golov almost 4 years ago
more places where it does this:
% git grep rh-pos definitions/checks/disk/available_space_postgresql12.rb: file_exists?('/var/opt/rh/rh-postgresql12')) definitions/checks/disk/available_space_postgresql12.rb: '/var/opt/rh/rh-postgresql12/' definitions/features/foreman_database.rb: ['/var/opt/rh/rh-postgresql12/lib/pgsql/data/postgresql.conf'] lib/foreman_maintain/concerns/base_database.rb: '/var/opt/rh/rh-postgresql12/lib/pgsql/data/'
Updated by The Foreman Bot almost 4 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_maintain/pull/474 added
Updated by Emmanuel Vanlaar almost 4 years ago
- Related to Bug #32649: backup-offline-candlepin-db tries to backup wrong postgresql directory and fails added
Updated by Amit Upadhye almost 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_maintain|1b527b203d09760c4317d73e91f29710aee34d0f.
Updated by The Foreman Bot over 3 years ago
- Assignee set to Evgeni Golov
- Pull request https://github.com/theforeman/foreman_maintain/pull/504 added
Updated by Evgeni Golov over 3 years ago
- Has duplicate Bug #32649: backup-offline-candlepin-db tries to backup wrong postgresql directory and fails added
Actions