Failing to restore a backup

Dear all, I'm rather new to the list, not to ovirt, that I use since 2014 profitably. I've a problem with an ovirt instance and I am desperately seeking for help. I run a 4.3 self hosted engine installation, with 8 hypervisors and an iscsi storage. Since the storage is not very reliable, I bought a dell powervault where to move everything. No problem to move the VMs, the problem came out with the hosted engine. I've read many documentation and the procedure I think I must follow involves backing up the current HE, powering it off, installing a new host where to create a new HE recovering the backup. The command I used to generate the backup is: engine-backup --mode=backup --file=file_name --log=log_file_name and the command used to restore it on the new HE is: hosted-engine --deploy --restore-from-file=backup/file_name The problem comes out during the recovering of the backup. With versions prior to 4.3.11 and also with 4.4.0 I got the error: 2020-06-25 15:17:34,950+0200 ERROR ansible failed { "ansible_host": "localhost", "ansible_playbook": "/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml", "ansible_result": { "_ansible_no_log": false, "changed": false, "invocation": { "module_args": { "ca_file": null, "compress": true, "headers": null, "hostname": null, "insecure": null, "kerberos": false, "ovirt_auth": { "ansible_facts": { "ovirt_auth": { "ca_file": null, "compress": true, "headers": null, "insecure": true, "kerberos": false, "timeout": 0, "token": "1f5Zoys35sQmLb2MiEg6bhWm2rDJULFan3eBK0juJJR3S-nXtN_b31jac1sZ0KRz3d1KSDmr8tyf7ExNe_pqJg", "url": "https://ovirt-sgsi.cnaf.infn.it/ovirt-engine/api" } }, "attempts": 1, "changed": false, "failed": false }, "password": null, "state": "absent", "timeout": 0, "token": null, "url": null, "username": null } }, "msg": "You must specify either 'url' or 'hostname'." }, "ansible_task": "Always revoke the SSO token", "ansible_type": "task", "status": "FAILED", "task_duration": 3 } Recently I tried the 4.3.11 beta and 4.4.1 and the error now is different: [ INFO ] Upgrading CA\n[ ERROR ] Failed to execute stage 'Misc configuration': (2, 'No such file or directory')\n[ INFO ] DNF Performing DNF transaction rollback\n I simply can't figure out what file is missing. If, as a test, I try to install the HE without restoring the backup, the installation goes smoothly to the end, but at that point I can't restore the backup, as far as I can understand. Any hint on what I may be missing? Thanks, Andrea -- Andrea Chierici - INFN-CNAF Viale Berti Pichat 6/2, 40127 BOLOGNA Office Tel: +39 051 2095463 SkypeID ataruz --

Hi Andrea, I have had sleepless nights with the same issue, but eventually figured it out. The two commands I used are below: 1. Backup the configs engine-backup --scope=all --mode=backup --file=Full --log=Log_Full 1. Restore the configs engine-backup --mode=restore --file=Full --log=Log_Full --provision-db --provision-dwh-db --restore-permissions I ran the second command after I built a new HE from scratch. You just need to download the backup files from the original and copy them to the new HE before you restore. Give it a bash and see if it works for you. Cheers Anton Louw Cloud Engineer: Storage and Virtualization ______________________________________ D: 087 805 1572 | M: N/A A: Rutherford Estate, 1 Scott Street, Waverley, Johannesburg anton.louw@voxtelecom.co.za www.vox.co.za From: Andrea Chierici <andrea.chierici@cnaf.infn.it> Sent: 14 July 2020 14:54 To: users@ovirt.org Subject: [ovirt-users] Failing to restore a backup Dear all, I'm rather new to the list, not to ovirt, that I use since 2014 profitably. I've a problem with an ovirt instance and I am desperately seeking for help. I run a 4.3 self hosted engine installation, with 8 hypervisors and an iscsi storage. Since the storage is not very reliable, I bought a dell powervault where to move everything. No problem to move the VMs, the problem came out with the hosted engine. I've read many documentation and the procedure I think I must follow involves backing up the current HE, powering it off, installing a new host where to create a new HE recovering the backup. The command I used to generate the backup is: engine-backup --mode=backup --file=file_name --log=log_file_name and the command used to restore it on the new HE is: hosted-engine --deploy --restore-from-file=backup/file_name The problem comes out during the recovering of the backup. With versions prior to 4.3.11 and also with 4.4.0 I got the error: 2020-06-25 15:17:34,950+0200 ERROR ansible failed { "ansible_host": "localhost", "ansible_playbook": "/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml", "ansible_result": { "_ansible_no_log": false, "changed": false, "invocation": { "module_args": { "ca_file": null, "compress": true, "headers": null, "hostname": null, "insecure": null, "kerberos": false, "ovirt_auth": { "ansible_facts": { "ovirt_auth": { "ca_file": null, "compress": true, "headers": null, "insecure": true, "kerberos": false, "timeout": 0, "token": "1f5Zoys35sQmLb2MiEg6bhWm2rDJULFan3eBK0juJJR3S-nXtN_b31jac1sZ0KRz3d1KSDmr8tyf7ExNe_pqJg", "url": "https://ovirt-sgsi.cnaf.infn.it/ovirt-engine/api"<https://ovirt-sgsi.cnaf.infn.it/ovirt-engine/api> } }, "attempts": 1, "changed": false, "failed": false }, "password": null, "state": "absent", "timeout": 0, "token": null, "url": null, "username": null } }, "msg": "You must specify either 'url' or 'hostname'." }, "ansible_task": "Always revoke the SSO token", "ansible_type": "task", "status": "FAILED", "task_duration": 3 } Recently I tried the 4.3.11 beta and 4.4.1 and the error now is different: [ INFO ] Upgrading CA\n[ ERROR ] Failed to execute stage 'Misc configuration': (2, 'No such file or directory')\n[ INFO ] DNF Performing DNF transaction rollback\n I simply can't figure out what file is missing. If, as a test, I try to install the HE without restoring the backup, the installation goes smoothly to the end, but at that point I can't restore the backup, as far as I can understand. Any hint on what I may be missing? Thanks, Andrea -- Andrea Chierici - INFN-CNAF Viale Berti Pichat 6/2, 40127 BOLOGNA Office Tel: +39 051 2095463 SkypeID ataruz --
participants (2)
-
Andrea Chierici
-
Anton Louw