Project

General

Profile

Actions

Bug #31886

closed

f-m restore expects packages which are missing in the external/remote db setup

Added by Amit Upadhye over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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

Additional info:
The workaround is to install the missing packages on the target satellite server before running the satellite-clone:
  1. yum -y install rh-mongodb34-syspaths rh-postgresql12-syspaths rh-postgresql12-postgresql-evr
Actions #1

Updated by Amit Upadhye over 4 years ago

  • Bugzilla link set to 1921295
Actions #2

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
Actions #3

Updated by Amit Upadhye over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF