Bug #23124
openkatello-backup needs DBs running - not checked, doc says contrary
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:
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:
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
Updated by Justin Sherrill over 6 years ago
- Translation missing: en.field_release set to 352