Bug #30323
closed
Tracker #27511: ensure foreman-maintain works with RHEL8 Satellite & Capsules
assumes SCL paths for databases on EL8
Added by Evgeni Golov almost 5 years ago.
Updated over 3 years ago.
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 :(
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.
:(
- Parent task set to #27511
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/'
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_maintain/pull/474 added
- Related to Bug #32649: backup-offline-candlepin-db tries to backup wrong postgresql directory and fails added
- Status changed from Ready For Testing to Closed
- Assignee set to Evgeni Golov
- Pull request https://github.com/theforeman/foreman_maintain/pull/504 added
- Has duplicate Bug #32649: backup-offline-candlepin-db tries to backup wrong postgresql directory and fails added
Also available in: Atom
PDF