Bug #28775
closedBackup of dynflow_execution_plans , dynflow_steps , dynflow_actions and Tasks fails when using external DB
Description
Description of problem:
Backup fails for the following when using external DB:
Check for old tasks in paused/stopped state: [FAIL]
Found 2057 paused or stopped task(s) older than 30 days
--------------------------------------------------------------------------------
Continue with step [Delete old tasks]?, [y(yes), n(no), q(quit)] y
Delete tasks:
/ Backup dynflow_execution_plans [running]psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
- Backup dynflow_steps [running]psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
\ Backup dynflow_actions [running]psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
| Backup Tasks [running]psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
\ Deleted old stopped and paused tasks: 2057 [OK]
Version-Release number of selected component (if applicable):
satellite-maintain-0.0.1-1.el7sat.noarch
rubygem-foreman_maintain-0.4.9-1.el7sat.noarch
How reproducible:
100%
Steps to Reproduce:
1. Satellite with external postgres db
2. # foreman-maintain upgrade check --target-version 6.6.z
3.
Actual results:
Check for old tasks in paused/stopped state: [FAIL]
Found 2057 paused or stopped task(s) older than 30 days
--------------------------------------------------------------------------------
Continue with step [Delete old tasks]?, [y(yes), n(no), q(quit)] y
Delete tasks:
/ Backup dynflow_execution_plans [running]psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
- Backup dynflow_steps [running]psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
\ Backup dynflow_actions [running]psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
| Backup Tasks [running]psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
\ Deleted old stopped and paused tasks: 2057 [OK]
Expected results:
Backup to be done
Additional info:
Updated by The Foreman Bot about 4 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_maintain/pull/310 added
Updated by Amit Upadhye about 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_maintain|663e384768e255c880bbc6cc23eafb3c23556afa.