Failed on HE-Storage migration

Hello, we tried to migrate the hosted engine to a new storage but we ran into an error - in any attempt the same. What we did is: ° Version 4.3.4.3-1.el7 ° in the engine vm: systemctl stop ovirt-engine ° took backup with scope=all ° hosted-engine --set-maintenance --mode=global ° hosted-engine --vm-shutdown ° on a new host (not in the inventory of engineDB): hosted-engine ---deploy --restore-from-file=backup-file It ran fine until: // ERROR ] fatal: [localhost -> newhost]: FAILED! => {"changed": true, "cmd": ["engine-setup", "--accept-defaults", "--config-append=/root/ovirt-engine-answers", "--offline"], "delta": "0:00:00.801074", "end": "2019-06-27 12:13:49.157140", "msg": "non-zero return code", "rc": 1, "start": "2019-06-27 12:13:48.356066", "stderr": "", "stderr_lines": [], "stdout": "[ INFO ] Stage: Initializing\n[ INFO ] Stage: Environment setup\n 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', '/root/ovirt-engine-answers']\n Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20190627121348-48b6rw.log\n Version: otopi-1.8.2 (otopi-1.8.2-1.el7)\n[ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to ovirt cinderlib database using existing credentials: ovirt_cinderlib@localhost:5432\n[ INFO ] Stage: Clean up\n Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20190627121348-48b6rw.log\n[ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20190627121349-setup.conf'\n[ INFO ] Stage: Pre-termination\n[ INFO ] Stage: Termination\n[ ERROR ] Execution of setup failed", "stdout_lines": ["[ 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', '/root/ovirt-engine-answers']", " Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20190627121348-48b6rw.log", " Version: otopi-1.8.2 (otopi-1.8.2-1.el7)", "[ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to ovirt cinderlib database using existing credentials: ovirt_cinderlib@localhost:5432", "[ INFO ] Stage: Clean up", " Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20190627121348-48b6rw.log", "[ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20190627121349-setup.conf'", "[ INFO ] Stage: Pre-termination", "[ INFO ] Stage: Termination", "[ ERROR ] Execution of setup failed"]} // The user and password hashes are okay and the same on old_engine and restore_file. Any ideas? regards, Chris

Do you really use Cinderlib ? If so , I think that someone of the DEv should take a look at:[ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to ovirt cinderlib database using existing credentials: ovirt_cinderlib@localhost:5432 Best Regards,Strahil Nikolov В понеделник, 1 юли 2019 г., 9:42:18 ч. Гринуич-4, Christoph Köhler <koehler@luis.uni-hannover.de> написа: Hello, we tried to migrate the hosted engine to a new storage but we ran into an error - in any attempt the same. What we did is: ° Version 4.3.4.3-1.el7 ° in the engine vm: systemctl stop ovirt-engine ° took backup with scope=all ° hosted-engine --set-maintenance --mode=global ° hosted-engine --vm-shutdown ° on a new host (not in the inventory of engineDB): hosted-engine ---deploy --restore-from-file=backup-file It ran fine until: // ERROR ] fatal: [localhost -> newhost]: FAILED! => {"changed": true, "cmd": ["engine-setup", "--accept-defaults", "--config-append=/root/ovirt-engine-answers", "--offline"], "delta": "0:00:00.801074", "end": "2019-06-27 12:13:49.157140", "msg": "non-zero return code", "rc": 1, "start": "2019-06-27 12:13:48.356066", "stderr": "", "stderr_lines": [], "stdout": "[ INFO ] Stage: Initializing\n[ INFO ] Stage: Environment setup\n 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', '/root/ovirt-engine-answers']\n Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20190627121348-48b6rw.log\n Version: otopi-1.8.2 (otopi-1.8.2-1.el7)\n[ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to ovirt cinderlib database using existing credentials: ovirt_cinderlib@localhost:5432\n[ INFO ] Stage: Clean up\n Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20190627121348-48b6rw.log\n[ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20190627121349-setup.conf'\n[ INFO ] Stage: Pre-termination\n[ INFO ] Stage: Termination\n[ ERROR ] Execution of setup failed", "stdout_lines": ["[ 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', '/root/ovirt-engine-answers']", " Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20190627121348-48b6rw.log", " Version: otopi-1.8.2 (otopi-1.8.2-1.el7)", "[ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to ovirt cinderlib database using existing credentials: ovirt_cinderlib@localhost:5432", "[ INFO ] Stage: Clean up", " Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20190627121348-48b6rw.log", "[ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20190627121349-setup.conf'", "[ INFO ] Stage: Pre-termination", "[ INFO ] Stage: Termination", "[ ERROR ] Execution of setup failed"]} // The user and password hashes are okay and the same on old_engine and restore_file. Any ideas? regards, Chris _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/BUCERUSB4PUTOT...

On Mon, Jul 1, 2019 at 6:06 PM Strahil Nikolov <hunter86_bg@yahoo.com> wrote:
Do you really use Cinderlib ?
If so , I think that someone of the DEv should take a look at: [ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to ovirt cinderlib database using existing credentials: ovirt_cinderlib@localhost:5432
Yes, there is an open bug tracked at https://bugzilla.redhat.com/1707225 <https://bugzilla.redhat.com/show_bug.cgi?id=1707225> about handling cinderlib integration in the backup. It's targeted for 4.3.6. Honestly I don't see any workaround other than trying to manually backup and restore the cinderlib DB.
Best Regards, Strahil Nikolov
В понеделник, 1 юли 2019 г., 9:42:18 ч. Гринуич-4, Christoph Köhler < koehler@luis.uni-hannover.de> написа:
Hello,
we tried to migrate the hosted engine to a new storage but we ran into an error - in any attempt the same.
What we did is:
° Version 4.3.4.3-1.el7 ° in the engine vm: systemctl stop ovirt-engine ° took backup with scope=all ° hosted-engine --set-maintenance --mode=global ° hosted-engine --vm-shutdown ° on a new host (not in the inventory of engineDB): hosted-engine ---deploy --restore-from-file=backup-file
It ran fine until:
// ERROR ] fatal: [localhost -> newhost]: FAILED! => {"changed": true, "cmd": ["engine-setup", "--accept-defaults", "--config-append=/root/ovirt-engine-answers", "--offline"], "delta": "0:00:00.801074", "end": "2019-06-27 12:13:49.157140", "msg": "non-zero return code", "rc": 1, "start": "2019-06-27 12:13:48.356066", "stderr": "", "stderr_lines": [], "stdout": "[ INFO ] Stage: Initializing\n[ INFO ] Stage: Environment setup\n 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', '/root/ovirt-engine-answers']\n Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20190627121348-48b6rw.log\n Version: otopi-1.8.2 (otopi-1.8.2-1.el7)\n[ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to ovirt cinderlib database using existing credentials: ovirt_cinderlib@localhost:5432\n[ INFO ] Stage: Clean up\n Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20190627121348-48b6rw.log\n[
INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20190627121349-setup.conf'\n[ INFO ] Stage: Pre-termination\n[ INFO ] Stage: Termination\n[ ERROR ] Execution of setup failed", "stdout_lines": ["[ 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', '/root/ovirt-engine-answers']", " Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20190627121348-48b6rw.log", " Version: otopi-1.8.2 (otopi-1.8.2-1.el7)", "[ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to ovirt cinderlib database using existing credentials: ovirt_cinderlib@localhost:5432", "[ INFO ] Stage: Clean up", " Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20190627121348-48b6rw.log", "[ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20190627121349-setup.conf'", "[ INFO ] Stage: Pre-termination", "[ INFO ] Stage: Termination", "[ ERROR ] Execution of setup failed"]} //
The user and password hashes are okay and the same on old_engine and restore_file.
Any ideas?
regards, Chris
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/BUCERUSB4PUTOT... _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/6CACNJX6KOR44I...
-- Simone Tiraboschi He / Him / His Principal Software Engineer Red Hat <https://www.redhat.com/> stirabos@redhat.com @redhatjobs <https://twitter.com/redhatjobs> redhatjobs <https://www.facebook.com/redhatjobs> @redhatjobs <https://instagram.com/redhatjobs> <https://red.ht/sig> <https://redhat.com/summit>

Hello! No, I do not use cinderlib! It may be, that the restore process want to activate cinder per default in the new engine. So it could not find it's counterpart in die backup-file. If so, there should be an option like --no-cinder or so for the restore process. We continue testing... Greetings! On 01.07.19 17:53, Strahil Nikolov wrote:
Do you really use Cinderlib ?
If so , I think that someone of the DEv should take a look at: [ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to ovirt cinderlib database using existing credentials: ovirt_cinderlib@localhost <mailto:ovirt_cinderlib@localhost>:5432
Best Regards, Strahil Nikolov
В понеделник, 1 юли 2019 г., 9:42:18 ч. Гринуич-4, Christoph Köhler <koehler@luis.uni-hannover.de> написа:
Hello,
we tried to migrate the hosted engine to a new storage but we ran into an error - in any attempt the same.
What we did is:
° Version 4.3.4.3-1.el7 ° in the engine vm: systemctl stop ovirt-engine ° took backup with scope=all ° hosted-engine --set-maintenance --mode=global ° hosted-engine --vm-shutdown ° on a new host (not in the inventory of engineDB): hosted-engine ---deploy --restore-from-file=backup-file
It ran fine until:
// ERROR ] fatal: [localhost -> newhost]: FAILED! => {"changed": true, "cmd": ["engine-setup", "--accept-defaults", "--config-append=/root/ovirt-engine-answers", "--offline"], "delta": "0:00:00.801074", "end": "2019-06-27 12:13:49.157140", "msg": "non-zero return code", "rc": 1, "start": "2019-06-27 12:13:48.356066", "stderr": "", "stderr_lines": [], "stdout": "[ INFO ] Stage: Initializing\n[ INFO ] Stage: Environment setup\n 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', '/root/ovirt-engine-answers']\n Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20190627121348-48b6rw.log\n Version: otopi-1.8.2 (otopi-1.8.2-1.el7)\n[ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to ovirt cinderlib database using existing credentials: ovirt_cinderlib@localhost <mailto:ovirt_cinderlib@localhost>:5432\n[ INFO ] Stage: Clean up\n Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20190627121348-48b6rw.log\n[ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20190627121349-setup.conf'\n[ INFO ] Stage: Pre-termination\n[ INFO ] Stage: Termination\n[ ERROR ] Execution of setup failed", "stdout_lines": ["[ 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', '/root/ovirt-engine-answers']", " Log file: /var/log/ovirt-engine/setup/ovirt-engine-setup-20190627121348-48b6rw.log", " Version: otopi-1.8.2 (otopi-1.8.2-1.el7)", "[ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to ovirt cinderlib database using existing credentials: ovirt_cinderlib@localhost <mailto:ovirt_cinderlib@localhost>:5432", "[ INFO ] Stage: Clean up", " Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-setup-20190627121348-48b6rw.log", "[ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20190627121349-setup.conf'", "[ INFO ] Stage: Pre-termination", "[ INFO ] Stage: Termination", "[ ERROR ] Execution of setup failed"]} //
The user and password hashes are okay and the same on old_engine and restore_file.
Any ideas?
regards, Chris
_______________________________________________ Users mailing list -- users@ovirt.org <mailto:users@ovirt.org> To unsubscribe send an email to users-leave@ovirt.org <mailto:users-leave@ovirt.org> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/BUCERUSB4PUTOT...
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/6CACNJX6KOR44I...

On Tue, Jul 2, 2019 at 10:11 AM Christoph Köhler < koehler@luis.uni-hannover.de> wrote:
Hello!
No, I do not use cinderlib!
If so, simply deconfigure/remove it on the source system before taking a new backup and then restore that backup on the target device.
It may be, that the restore process want to activate cinder per default in the new engine. So it could not find it's counterpart in die backup-file. If so, there should be an option like --no-cinder or so for the restore process.
We continue testing...
Greetings!
On 01.07.19 17:53, Strahil Nikolov wrote:
Do you really use Cinderlib ?
If so , I think that someone of the DEv should take a look at: [ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to ovirt cinderlib database using existing credentials: ovirt_cinderlib@localhost <mailto:ovirt_cinderlib@localhost>:5432
Best Regards, Strahil Nikolov
В понеделник, 1 юли 2019 г., 9:42:18 ч. Гринуич-4, Christoph Köhler <koehler@luis.uni-hannover.de> написа:
Hello,
we tried to migrate the hosted engine to a new storage but we ran into an error - in any attempt the same.
What we did is:
° Version 4.3.4.3-1.el7 ° in the engine vm: systemctl stop ovirt-engine ° took backup with scope=all ° hosted-engine --set-maintenance --mode=global ° hosted-engine --vm-shutdown ° on a new host (not in the inventory of engineDB): hosted-engine ---deploy --restore-from-file=backup-file
It ran fine until:
// ERROR ] fatal: [localhost -> newhost]: FAILED! => {"changed": true, "cmd": ["engine-setup", "--accept-defaults", "--config-append=/root/ovirt-engine-answers", "--offline"], "delta": "0:00:00.801074", "end": "2019-06-27 12:13:49.157140", "msg": "non-zero return code", "rc": 1, "start": "2019-06-27 12:13:48.356066", "stderr": "", "stderr_lines": [], "stdout": "[ INFO ] Stage: Initializing\n[ INFO ] Stage: Environment setup\n 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', '/root/ovirt-engine-answers']\n Log file:
/var/log/ovirt-engine/setup/ovirt-engine-setup-20190627121348-48b6rw.log\n
Version: otopi-1.8.2 (otopi-1.8.2-1.el7)\n[ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to ovirt cinderlib database using existing credentials: ovirt_cinderlib@localhost <mailto:ovirt_cinderlib@localhost>:5432\n[ INFO ] Stage: Clean up\n Log file is located at
/var/log/ovirt-engine/setup/ovirt-engine-setup-20190627121348-48b6rw.log\n[
INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20190627121349-setup.conf'\n[ INFO ] Stage: Pre-termination\n[ INFO ] Stage: Termination\n[ ERROR ] Execution of setup failed", "stdout_lines": ["[ 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', '/root/ovirt-engine-answers']", " Log file:
/var/log/ovirt-engine/setup/ovirt-engine-setup-20190627121348-48b6rw.log",
" Version: otopi-1.8.2 (otopi-1.8.2-1.el7)", "[ ERROR ] Failed to execute stage 'Environment setup': Cannot connect to ovirt cinderlib database using existing credentials: ovirt_cinderlib@localhost <mailto:ovirt_cinderlib@localhost>:5432", "[ INFO ] Stage: Clean up", " Log file is located at
/var/log/ovirt-engine/setup/ovirt-engine-setup-20190627121348-48b6rw.log",
"[ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20190627121349-setup.conf'", "[ INFO ] Stage: Pre-termination", "[ INFO ] Stage: Termination", "[ ERROR ] Execution of setup failed"]} //
The user and password hashes are okay and the same on old_engine and restore_file.
Any ideas?
regards, Chris
_______________________________________________ Users mailing list -- users@ovirt.org <mailto:users@ovirt.org> To unsubscribe send an email to users-leave@ovirt.org <mailto:users-leave@ovirt.org> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives:
https://lists.ovirt.org/archives/list/users@ovirt.org/message/BUCERUSB4PUTOT...
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/6CACNJX6KOR44I...
_______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/XRRM2NMJREU7G5...
-- Simone Tiraboschi He / Him / His Principal Software Engineer Red Hat <https://www.redhat.com/> stirabos@redhat.com @redhatjobs <https://twitter.com/redhatjobs> redhatjobs <https://www.facebook.com/redhatjobs> @redhatjobs <https://instagram.com/redhatjobs> <https://red.ht/sig> <https://redhat.com/summit>
participants (3)
-
Christoph Köhler
-
Simone Tiraboschi
-
Strahil Nikolov