Open jameerpathan111 opened 5 years ago
On foreman-maintain v0.3.4
[root@hpe-nehalem-01 ~]# foreman-maintain service stop --only foreman-proxy
Running Stop Services
================================================================================
Check if command is run as root user: [OK]
--------------------------------------------------------------------------------
Stop applicable services:
Stopping the following service(s):
foreman-proxy
- All services stopped [OK]
--------------------------------------------------------------------------------
[root@hpe-nehalem-01 ~]# mkdir /tmp/backup-openscap2
[root@hpe-nehalem-01 ~]# foreman-maintain backup offline -y --features openscap /tmp/backup-openscap2/
Starting backup: 2019-07-01 03:26:59 -0400
Running preparation steps required to run the next scenarios
================================================================================
Make sure Foreman DB is up:
/ Checking connection to the Foreman DB [OK]
--------------------------------------------------------------------------------
Running Backup
================================================================================
Confirm turning off services is allowed:
WARNING: This script will stop your services.
[OK]
--------------------------------------------------------------------------------
Prepare backup Directory:
Creating backup folder /tmp/backup-openscap2/satellite-backup-2019-07-01-03-26-59
[OK]
--------------------------------------------------------------------------------
Check if the directory exists and is writable: [OK]
--------------------------------------------------------------------------------
Generate metadata:
/ Saving metadata to metadata.yml [OK]
--------------------------------------------------------------------------------
Backup config files:
\ Collecting config files to backup [FAIL]
undefined method `&' for "":String
--------------------------------------------------------------------------------
Scenario [Backup] failed.
The following steps ended up in failing state:
[backup-config-files]
Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="backup-config-files"
Running Failed backup cleanup
================================================================================
Start applicable services:
Starting the following service(s):
rh-mongodb34-mongod, postgresql, qdrouterd, qpidd, squid, pulp_celerybeat, pulp_resource_manager, pulp_streamer, pulp_workers, smart_proxy_dynflow_core, tomcat, dynflowd, httpd, puppetserver, foreman-proxy
| All services started [OK]
--------------------------------------------------------------------------------
Turn off maintenance mode: [OK]
--------------------------------------------------------------------------------
Clean up backup directory: [OK]
--------------------------------------------------------------------------------
Done with backup: 2019-07-01 03:27:41 -0400
Backup didn't finish. Incomplete backup was removed.
On foreman-maintain v0.4.3