Bug #31394
closedBackup restore fails with Unrecognised option '--reset'
Description
backup restore is failing on Foreman 2.2 and 2.3 RC2 with below error,
~~~
[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.
~~~
Updated by The Foreman Bot over 4 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman_maintain/pull/426 added
Updated by Amit Upadhye over 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_maintain|f3d204b8e11517e6baa80fdbf7e88eb9d8234fe3.