Provider performed backup of Operation Automation Premium management node via migration toolkit and started restoration according to documentation. However, restoration procedure fails with the following output:
# ./install.py --migrate --communication_ip=192.168.10.10 --external_ip=10.20.30.40 ... File "/OA_management_node_backup/deployment.py", line 71, in install_rpm_from_path deploy_rpm_from_path(path, rpm_names, 'install') File "/OA_management_node_backup/deployment.py", line 78, in deploy_rpm_from_path raise Exception("can not %s rpms %s, return code %s, stdout %s, stderr %s" % (command, found_rpms, ret, out, err)) Exception: can not install rpms , return code 1, stdout Loaded plugins: fastestmirror , stderr Error: Need to pass a list of pkgs to install
Migration toolkit files were overwritten during hotfixes installation. Installed updates deployed outdated versions of scripts used by migration toolkit which interfered with restoration process. This point is explicitly noted in KB:
14. Please re-deploy migration kit (step #10) in case you installed any hotfix after the pre-check.
Recommended way is to re-deploy migration toolkit and re-do backup and restoration operations.
If it is not possible to perform migration from scratch, it is possible to re-deploy only restoration scripts and complete the process. In order to do that, please follow the instruction below:
- Download the latest migration toolkit from KB
- Unpack the archive to some temporary directory
Copy files from unpacked toolkit (let us assume
/tmp/toolkit) to directory where backup is stored on destination node (we will assume
/OA_management_node_backupin this example):
# cp /tmp/toolkit/usr/local/pem/bin/install_routines.py /OA_management_node_backup/ # cp /tmp/toolkit/usr/local/pem/bin/install.py /OA_management_node_backup/ # cp /tmp/toolkit/usr/local/pem/bin/deployment.py /OA_management_node_backup/ # mv /OA_management_node_backup/poaupdater /OA_management_node_backup/poaupdater.bak # cp -r /tmp/toolkit/usr/local/pem/bin/migration_poaupdater /OA_management_node_backup/poaupdater
Then retry the restoration process.