Problem:
foreman-maintain restore fails with foreman-installer ERROR: Unrecognised option ‘–reset’
Expected outcome:
my entire katello/foreman is restored to the backup state
Foreman and Proxy versions:
Foreman: 2.2.1-1.el7
foreman-proxy.noarch 2.2.1-1.el7
Katello : 3.17.0-1.el7
foreman-installer-katello.noarch 1:2.2.1-1.el7
Foreman and Proxy plugin versions:
Distribution and version:
Other relevant data:
[root@puppet ~]# yes | foreman-maintain restore $RESTORE_DIR
Running Restore backup
================================================================================
Check if command is run as root user: [OK]
--------------------------------------------------------------------------------
Validate backup has appropriate files: [OK]
--------------------------------------------------------------------------------
Confirm dropping databases and running restore:
WARNING: This script will drop and restore your database.
Your existing installation will be replaced with the backup database.
Once this operation is complete there is no going back.
[OK]
--------------------------------------------------------------------------------
Validate hostname is the same as backup: [OK]
--------------------------------------------------------------------------------
Setting file security:
- Restoring SELinux context [OK]
--------------------------------------------------------------------------------
Restore configs from backup:
\ Restoring configs [OK]
--------------------------------------------------------------------------------
Ensure restored MongoDB storage engine matches the current DB: [OK]
--------------------------------------------------------------------------------
Run installer reset:
- Installer reset [FAIL]
Failed executing yes | foreman-installer -v --reset , exit status 1:
ERROR: Unrecognised option '--reset'
See: 'foreman-installer --help'
--------------------------------------------------------------------------------
Scenario [Restore backup] failed.