Bug #31886
closedf-m restore expects packages which are missing in the external/remote db setup
Description
When running foreman-maintain restore, foreman-maintain checks for DB connections ('Make sure Candlepin DB is up' and 'Make sure Foreman DB is up'), which is done through 'psql' command (https://github.com/theforeman/foreman_maintain/blob/eb981e85a7b723382f5d48f054bf402065051616/lib/foreman_maintain/concerns/base_database.rb#L166-L174)
However, during cloning of the external DB setup, this checks fail because the packages providing that command are missing on the target server.
I'm not sure where the fix shall be done, if in foreman-maintain to avoid usage of those packages or in the installer to install those packages or in the satellite-clone to handle the installation instead of the installer. Please assign the proper component when triaged.
Version-Release number of selected component (if applicable):
6.8.2
How reproducible:
always
Steps to Reproduce:
1. have target external db setup (sat host + db host) with backup from source external db setup (sat host + db host)
2. run satellite-clone
Actual results:
clone fails because foreman-maintain restore fails to check the DB connection
Expected results:
successful restore and successful clone
The workaround is to install the missing packages on the target satellite server before running the satellite-clone:
- yum -y install rh-mongodb34-syspaths rh-postgresql12-syspaths rh-postgresql12-postgresql-evr
Updated by The Foreman Bot over 4 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_maintain/pull/447 added
Updated by Amit Upadhye over 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_maintain|fcd67d42050f9ac1924b1d0406a4840ff663bbbf.