Project

General

Profile

Actions

Bug #23124

open

katello-backup needs DBs running - not checked, doc says contrary

Added by Christine Fouant over 6 years ago. Updated over 6 years ago.

Status:
Ready For Testing
Priority:
High
Category:
Backup & Restore
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1532147

Description of problem:
Try running katello-backup with postgresql+mongo down, few issues can be hit:

1) "foreman-rake plugin:list" fails to collect plugin list and raises error "PG::Error: could not connect to server"

2) when running with --online-backup, katello-backup fails to call pg_dump* and mongodump commands.

Since our documentation in:

https://access.redhat.com/documentation/en-us/red_hat_satellite/6.2/html-single/server_administration_guide/#sect-Red_Hat_Satellite-Server_Administration_Guide-Backup_and_Disaster_Recovery-Backing_up_Satellite_Server_or_Capsule_Server

suggests to run the backup after running katello-service stop, we suggest to let the tool fail at any customer.

I suggest to ensure DBs services are running at the beginning of the backup tool.

Version-Release number of selected component (if applicable):
Sat 6.2.13 / katello-common-3.0.0-31.el7sat.noarch

How reproducible:
100%

Steps to Reproduce:
1. katello-service stop
2. katello-backup -y /tmp
3. katello-backup -y /tmp --online-backup

Actual results:
2. raises error "PG::Error: could not connect to server:" and fails to collect plugins list (metadata.yml in archive will miss it)
3. fails to dump any DB

Expected results:
2. not to raise an error and to collect plugin list in metadata.yml
3. to dump all DBs

Additional info:

Actions #1

Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-packaging/pull/2350 added
Actions #2

Updated by Justin Sherrill over 6 years ago

  • Translation missing: en.field_release set to 352
Actions

Also available in: Atom PDF