Bug #32649
closedbackup-offline-candlepin-db tries to backup wrong postgresql directory and fails
Description
foreman-maintain backup command on CentOS 8 with postgresql 12 (as described in https://docs.theforeman.org/2.4/Installing_Server_on_Red_Hat/index-katello.html)
tries to backup the candlepin postgres database from the path '/var/opt/rh/rh-postgresql12/lib/pgsql/data/',
however on CentOS 8 with postgresql 12 the postgres data directory is '/var/lib/pgsql/data'
foreman-maintain: rubygem-foreman_maintain-0.7.9-1.el8.noarch
Output from foreman-maintain backup offline /var/foremanbackup
--------------------------------------------------------------------------------
Backup Candlepin DB offline:
- Collecting data from /var/opt/rh/rh-postgresql12/lib/pgsql/data/ [FAIL]
No such file or directory @ dir_chdir - /var/opt/rh/rh-postgresql12/lib/pgsql/data/
--------------------------------------------------------------------------------
Scenario [Backup] failed.
The following steps ended up in failing state:
[backup-offline-candlepin-db]
Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="backup-offline-candlepin-db"
The runner is already in quit state
Updated by Emmanuel Vanlaar almost 4 years ago
- Related to Bug #30323: assumes SCL paths for databases on EL8 added
Updated by Evgeni Golov over 3 years ago
- Is duplicate of Bug #30323: assumes SCL paths for databases on EL8 added