
Hello! Trying to upgrade old 4.3 installation to 4.4 using this documentation: https://www.ovirt.org/documentation/upgrade_guide/#Upgrading_the_Manager_to_... On the target engine service host got this error during restore operation: Start of engine-backup with mode 'restore' scope: all archive file: backup.bck log file: /var/log/ovirt-engine-backup/ovirt-engine-restore-20230224162609.log Preparing to restore: - Unpacking file 'backup.bck' Restoring: - Files ------------------------------------------------------------------------------ Please note: Operating system is different from the one used during backup. Current operating system: redhat8 Operating system at backup: redhat7 Apache httpd configuration will not be restored. You will be asked about it on the next engine-setup run. ------------------------------------------------------------------------------ Provisioning PostgreSQL users/databases: - user 'engine', database 'engine' - user 'engine', database 'engine_history' FATAL: Existing database 'engine_history' or user 'engine' found and temporary ones created - Please clean up everything and try again One more log is here: https://pastebin.com/Rg2kaNnM Can you, please, help and provide some information how this can be fixed ?

Hello, Did you do a clean install first and run the engine-install command already ? Then you need to run the engine-cleanup now. Restore the database again. And afterwards run engine-setup Sent from my iPhone
On 24 Feb 2023, at 14:35, KSNull Zero <ksnull01@gmail.com> wrote:
Hello! Trying to upgrade old 4.3 installation to 4.4 using this documentation: https://www.ovirt.org/documentation/upgrade_guide/#Upgrading_the_Manager_to_...
On the target engine service host got this error during restore operation:
Start of engine-backup with mode 'restore' scope: all archive file: backup.bck log file: /var/log/ovirt-engine-backup/ovirt-engine-restore-20230224162609.log Preparing to restore: - Unpacking file 'backup.bck' Restoring: - Files ------------------------------------------------------------------------------ Please note:
Operating system is different from the one used during backup. Current operating system: redhat8 Operating system at backup: redhat7
Apache httpd configuration will not be restored. You will be asked about it on the next engine-setup run. ------------------------------------------------------------------------------ Provisioning PostgreSQL users/databases: - user 'engine', database 'engine' - user 'engine', database 'engine_history' FATAL: Existing database 'engine_history' or user 'engine' found and temporary ones created - Please clean up everything and try again
One more log is here: https://pastebin.com/Rg2kaNnM
Can you, please, help and provide some information how this can be fixed ? _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/VM252OJVFP6PAW...

What do you mean - run the engine-install ? Install required packages ? Yes they installed. I followed an upgrade documentation. This is a clean OS install with required packages. No engine-setup was run yet. BTW, you cannot run engine-cleanup after that failure. The error is: [ INFO ] Stage: Initializing [ INFO ] Stage: Environment setup Configuration files: /etc/ovirt-engine-setup.conf.d/10-packaging-jboss.conf, /etc/ovirt-engine-setup.conf.d/10-packaging.conf, /etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf Log file: /var/log/ovirt-engine/setup/ovirt-engine-remove-20230224181416-k01okx.log Version: otopi-1.9.6 (otopi-1.9.6-1.el8) [WARNING] Cannot connect to DWH database using existing credentials: engine@localhost:5432 [ ERROR ] Cleanup utility and installed version mismatch Please use a version of cleanup utility that matches the engine installed version (now engine-cleanup 4.4.10.7, engine 4.3.10.4) [ ERROR ] Failed to execute stage 'Environment setup': Cleanup utility version mismatch [ INFO ] Stage: Clean up Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-remove-20230224181416-k01okx.log [ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20230224181416-cleanup.conf' [ INFO ] Stage: Pre-termination [ INFO ] Stage: Termination [ ERROR ] Execution of cleanup failed

Anyone ? We really need to upgrade this old 4.3 installation. There are a lot of VMs and huge VM disks there, so we cannot just migrate them to a new fresh 4.4/4.5 environment using export/import or any other ways. All we can do is to upgrade existing 4.3 install step by step. Please help. Can provide all necessary additional logs if required.

Hello, This is how I did it just recently. I have an centos 7 with a standalone ovirt engine and a couple off nodes with vm's running on them. I used this document as a guide. https://www.ovirt.org/documentation/upgrade_guide/index.html Make sure your environment is update to the latest 4.3 "engine-upgrade-check", "dnf update ovirt\*setup\" and then run "engine-setup" and also " yum update --nobest" On the 4.3 engine you need to stop the engine "systemctl stop ovirt-engine" and even disable it "systemctl disable ovirt-engine" Take the backup "engine-backup --scope-all --mode=backup --file=backup.bck --log=backup.log" Install a new minimal centos 8 stream, update it to the latest and greatest and then add the repository "dnf -y install https://resources.ovirt.org/pub/yum-repo/ovirt-release4.4.rpm". Then run "dnf module -y enable javapackages-tools pki-deps postgresql:12 mod_auth_openidc:2.3 nodejs:14" and "dnf distro-sync --nobest" If you are using SSO on the oldenvironment you need to run this "dnf install ovirt-extenstion-aaa-ldap ovirt-engine-extention-aaa-misc" Install the packages "dnf install -y ovirt-engine" Then copy over the backup and restore them "engine-backup --mode=restore --file=backup.bck --provision-all-database" Now run the command "engine-setup" And that's it. make sure the ovirt-eninge on the new server is running "systemctl status ovirt-engine" and start it if it isn't "sysemctl enable --now ovirt-engine" Now you should see everything again but still need to upgrate the nodes. Kind regards. Op za 25 feb. 2023 om 07:20 schreef KSNull Zero <ksnull01@gmail.com>:
Anyone ? We really need to upgrade this old 4.3 installation. There are a lot of VMs and huge VM disks there, so we cannot just migrate them to a new fresh 4.4/4.5 environment using export/import or any other ways. All we can do is to upgrade existing 4.3 install step by step. Please help. Can provide all necessary additional logs if required. _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/B2FTFILDHXRXY7...
participants (2)
-
Andy Michielsen
-
KSNull Zero