<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hello,<br></div><div><br data-mce-bogus="1"></div><div>I'm trying to upgrade our ovirt-engine from 4.0 (centos manually installed) to 4.1.0 (appliance) using "hosted-engine --upgrade-appliance". </div><div><br data-mce-bogus="1"></div><div>Our test setup : </div><div>2 hosts with centos 7.3 with ovirt4.0 (latest updates)<br data-mce-bogus="1"></div><div>1 ovirt-engine 4.0 (latest update)<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>This method uses a manual backup from current engine and injects it to new appliance. Since "old" ovirt-engine is a manually installed 4.0 (latest version) as opposed to an appliance, upgrade process warns that it doesn't recognise the current engine with a somewhat deprecated message :<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>[WARNING] Unable to detect engine version<br>[WARNING] Unsupported upgrade path<br> This procedure has been designed and tested only for upgrading the engine VM from ['3.6'] to ['4.0'].<br> Any other usage is highly experimental and potentially dangerous:<br> Current engine: unknown<br> Selected appliance: 4.1-20170201.1.el7.centos<br> Do you want to abort the upgrade process? (Yes, No) [Yes]: no<br>[WARNING] Proceeding on an unsupported and highly experimental path<br></div><div><br data-mce-bogus="1"></div><div>This fails, according to a bug already posted on https://bugzilla.redhat.com/show_bug.cgi?id=1420283 which is resolved in future 4.1.1<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>So I tried to manually patch the file corrected in gerrit https://gerrit.ovirt.org/#/c/71965/ and - after multiple tries - it still fails at the end with the following error : <br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>...<br data-mce-bogus="1"></div><div>[ INFO ] Running engine-setup on the appliance<br> |- Preparing to restore:<br> |- - Unpacking file '/root/engine_backup.tar.gz'<br> |- FATAL: Backup was created by version '4.0' and can not be restored using the installed version 4.1<br> |- HE_APPLIANCE_ENGINE_RESTORE_FAIL<br>[ ERROR ] Engine backup restore failed on the appliance<br>[ ERROR ] Failed to execute stage 'Closing up': engine-backup failed restoring the engine backup on the appliance Please check its log on the appliance.</div><div><br data-mce-bogus="1"></div><div>When checking upgrade log, there's not much more error information other than :<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>2017-03-08 18:08:30 INFO otopi.plugins.gr_he_common.engine.health health._closeup:127 Running engine-setup on the appliance<br>2017-03-08 18:08:44 DEBUG otopi.plugins.otopi.dialog.human dialog.__logString:204 DIALOG:SEND |- Preparing to restore:<br>2017-03-08 18:08:44 DEBUG otopi.plugins.otopi.dialog.human dialog.__logString:204 DIALOG:SEND |- - Unpacking file '/root/engine_backup.tar.gz'<br>2017-03-08 18:08:44 DEBUG otopi.plugins.otopi.dialog.human dialog.__logString:204 DIALOG:SEND |- FATAL: Backup was created by version '4.0' and can not be restored using the installed version 4.1<br>2017-03-08 18:08:44 DEBUG otopi.plugins.otopi.dialog.human dialog.__logString:204 DIALOG:SEND |- HE_APPLIANCE_ENGINE_RESTORE_FAIL<br>2017-03-08 18:08:44 ERROR otopi.plugins.gr_he_common.engine.health health._closeup:154 Engine backup restore failed on the appliance<br>2017-03-08 18:08:44 DEBUG otopi.context context._executeMethod:142 method exception<br>Traceback (most recent call last):<br> File "/usr/lib/python2.7/site-packages/otopi/context.py", line 132, in _executeMethod<br> method['method']()<br> File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/gr-he-common/engine/health.py", line 158, in _closeup<br> 'engine-backup failed restoring the engine backup '<br>RuntimeError: engine-backup failed restoring the engine backup on the appliance<br>Please check its log on the appliance.<br>2017-03-08 18:08:44 ERROR otopi.context context._executeMethod:151 Failed to execute stage 'Closing up': engine-backup failed restoring the engine backup on the appliance<br>Please check its log on the appliance.<br>2017-03-08 18:08:44 DEBUG otopi.context context.dumpEnvironment:760 ENVIRONMENT DUMP - BEGIN<br></div><div><br data-mce-bogus="1"></div><div>In "new" engine setup log, the only thing which catched my eye is :<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>2017-03-08 18:08:45 DEBUG otopi.context context.dumpEnvironment:774 ENVIRONMENT DUMP - END<br>2017-03-08 18:08:45 DEBUG otopi.context context._executeMethod:128 Stage boot METHOD otopi.plugins.otopi.packagers.dnfpackager.Plugin._boot<br>2017-03-08 18:08:45 DEBUG otopi.plugins.otopi.packagers.dnfpackager dnfpackager._boot:163 Cannot initialize minidnf<br>Traceback (most recent call last):<br> File "/usr/share/otopi/plugins/otopi/packagers/dnfpackager.py", line 150, in _boot<br> constants.PackEnv.DNF_DISABLED_PLUGINS<br> File "/usr/share/otopi/plugins/otopi/packagers/dnfpackager.py", line 60, in _getMiniDNF<br> from otopi import minidnf<br> File "/usr/lib/python2.7/site-packages/otopi/minidnf.py", line 16, in <module><br> import dnf<br>ImportError: No module named dnf<br>2017-03-08 18:08:45 DEBUG otopi.context context.dumpEnvironment:760 ENVIRONMENT DUMP - BEGIN<br></div><div><br data-mce-bogus="1"></div><div>I'm not sure if my patched file (<a href="https://gerrit.ovirt.org/#/c/71965/3/src/plugins/gr-he-upgradeappliance/vm/runvm.py" onclick="gwt_uid_92(event,1)" data-mce-href="https://gerrit.ovirt.org/#/c/71965/3/src/plugins/gr-he-upgradeappliance/vm/runvm.py">runvm.py</a>) should be enough to make it work, but maybe this can bring some new information to you.<br data-mce-bogus="1"></div><div>Really hopping that 4.1.1 oVirt will resolve this issue as we are eager to start using appliances.<br data-mce-bogus="1"></div><div><br></div><div>(I can provide you with more/full log files if necessary)<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div data-marker="__SIG_PRE__"><div>cordialement, regards,</div><div><br data-mce-bogus="1"></div><table style="margin: 0px; table-layout: fixed; border: none; width: 345pt; padding: 0px;" data-mce-style="margin: 0px; table-layout: fixed; border: none; width: 345pt; padding: 0px;" width="460" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="margin: 0; font-size: 11px; font-family: Arial,sans-serif; color: #2b3c7a; line-height: 16px; width: 86.25pt; text-align: left;" data-mce-style="margin: 0; font-size: 11px; font-family: Arial,sans-serif; color: #2b3c7a; line-height: 16px; width: 86.25pt; text-align: left;" width="115" valign="top"><a href="https://www.lyra-network.com/" style="border: none; text-decoration: none; width: 100%; display: block; clear: both;" data-mce-href="https://www.lyra-network.com/" data-mce-style="border: none; text-decoration: none; width: 100%; display: block; clear: both;"><img src="cid:2d73caa90af1eb7aeb4cb1bde4b870be1e954fc6@zimbra" alt="" data-mce-src="/home/admin@lyra-network.com/corporate-documents/element-signature_logo_lyra_115x94.jpg" doc="corporate-documents/element-signature_logo_lyra_115x94.jpg" height="94" width="115" border="0"></a><br data-mce-bogus="1"></td><td style="margin: 0; font-size: 11px; font-family: Arial,sans-serif; color: #2b3c7a; line-height: 16px; width: 258.75pt;" data-mce-style="margin: 0; font-size: 11px; font-family: Arial,sans-serif; color: #2b3c7a; line-height: 16px; width: 258.75pt;" width="345" valign="top"><table style="margin: 0; width: 258.75pt; table-layout: fixed; border: none;" data-mce-style="margin: 0; width: 258.75pt; table-layout: fixed; border: none;" width="345" cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="font-size: 16px; font-family: Arial,sans-serif; color: #2b3c7a; line-height: 18px; font-weight: bold;" data-mce-style="font-size: 16px; font-family: Arial,sans-serif; color: #2b3c7a; line-height: 18px; font-weight: bold;">Nelson LAMEIRAS</td></tr><tr><td style="font-family: Arial,sans-serif; color: #2b3c7a; font-size: 11px; line-height: 16px;" data-mce-style="font-family: Arial,sans-serif; color: #2b3c7a; font-size: 11px; line-height: 16px;">Ingénieur Systèmes et Réseaux<span style="font-family: Arial,sans-serif; color: #337ab7; font-size: 11px;" data-mce-style="font-family: Arial,sans-serif; color: #337ab7; font-size: 11px;"> / Systems and Networks engineer</span></td></tr><tr><td style="line-height: 16px; font-family: 'Arial',sans-serif; color: #2b3c7a; font-size: 11px;" data-mce-style="line-height: 16px; font-family: 'Arial',sans-serif; color: #2b3c7a; font-size: 11px;"><span style="font-family: Arial,sans-serif; color: #2b3c7a; font-size: 11px;" data-mce-style="font-family: Arial,sans-serif; color: #2b3c7a; font-size: 11px;">Tel: +33 5 32 09 09 70</span></td></tr><tr><td style="line-height: 16px; font-family: 'Arial',sans-serif; color: #2b3c7a; font-size: 11px;" data-mce-style="line-height: 16px; font-family: 'Arial',sans-serif; color: #2b3c7a; font-size: 11px;"><a href="mailto:nelson.lameiras@lyra-network.com" style="font-size: 11px; font-family: Arial,sans-serif; line-height: 16px; text-decoration: none;" data-mce-href="mailto:nelson.lameiras@lyra-network.com" data-mce-style="font-size: 11px; font-family: Arial,sans-serif; line-height: 16px; text-decoration: none;">nelson.lameiras@lyra-network.com</a><br data-mce-bogus="1"></td></tr><tr><td style="line-height: 16px; font-family: 'Arial',sans-serif; color: #2b3c7a; font-size: 11px;" data-mce-style="line-height: 16px; font-family: 'Arial',sans-serif; color: #2b3c7a; font-size: 11px;"><a href="https://www.lyra-network.com/" style="font-size: 11px; font-family: Arial,sans-serif; line-height: 16px; border: none; text-decoration: none;" data-mce-href="https://www.lyra-network.com/" data-mce-style="font-size: 11px; font-family: Arial,sans-serif; line-height: 16px; border: none; text-decoration: none;">www.lyra-network.com</a> <a href="https://payzen.eu" style="font-size: 11px; font-family: Arial,sans-serif; line-height: 16px; border: none; text-decoration: none;" data-mce-href="https://payzen.eu" data-mce-style="font-size: 11px; font-family: Arial,sans-serif; line-height: 16px; border: none; text-decoration: none;"> | www.payzen.eu</a><br data-mce-bogus="1"></td></tr></tbody></table></td></tr></tbody></table><table style="margin: 0; table-layout: fixed; border: none; width: 345pt;" data-mce-style="margin: 0; table-layout: fixed; border: none; width: 345pt;" width="460" cellspacing="0" cellpadding="0"><tbody><tr><td style="margin: 0; font-size: 11px; font-family: Arial,sans-serif; color: #2b3c7a; line-height: 16px; width: 24pt; text-align: left;" data-mce-style="margin: 0; font-size: 11px; font-family: Arial,sans-serif; color: #2b3c7a; line-height: 16px; width: 24pt; text-align: left;" width="32" valign="top"><a href="https://www.youtube.com/channel/UCrVl1CO_Jlu3KbiRH-tQ_vA" style="border: none; text-decoration: none; margin: 0; float: left; display: inline-block; width: 32px;" data-mce-href="https://www.youtube.com/channel/UCrVl1CO_Jlu3KbiRH-tQ_vA" data-mce-style="border: none; text-decoration: none; margin: 0; float: left; display: inline-block; width: 32px;"><img src="cid:3ab05240a7d61766c65061d295bb6ab763776f35@zimbra" alt="" data-mce-src="/home/admin@lyra-network.com/corporate-documents/element-signature_logo_YouTube_32x28.jpg" doc="corporate-documents/element-signature_logo_YouTube_32x28.jpg" height="28" width="32" border="0"></a><br data-mce-bogus="1"></td><td style="margin: 0; font-size: 11px; font-family: Arial,sans-serif; color: #2b3c7a; line-height: 16px; width: 30.75pt; text-align: left;" data-mce-style="margin: 0; font-size: 11px; font-family: Arial,sans-serif; color: #2b3c7a; line-height: 16px; width: 30.75pt; text-align: left;" width="41" valign="top"><a href="https://www.linkedin.com/company/lyra-network_2" style="border: none; text-decoration: none; margin: 0; float: left; display: inline-block; width: 41px;" data-mce-href="https://www.linkedin.com/company/lyra-network_2" data-mce-style="border: none; text-decoration: none; margin: 0; float: left; display: inline-block; width: 41px;"><img src="cid:8abb8ba852f9dac790947a0613276631ef5d9907@zimbra" data-mce-src="/home/admin@lyra-network.com/corporate-documents/element-signature_logo_LinkedIn_41x28.jpg" doc="corporate-documents/element-signature_logo_LinkedIn_41x28.jpg" height="28" width="41" border="0"></a><br data-mce-bogus="1"></td><td style="margin: 0; font-size: 11px; font-family: Arial,sans-serif; color: #2b3c7a; line-height: 16px; width: 31.5pt; text-align: left;" data-mce-style="margin: 0; font-size: 11px; font-family: Arial,sans-serif; color: #2b3c7a; line-height: 16px; width: 31.5pt; text-align: left;" width="42" valign="top"><a href="https://twitter.com/LyraNetwork" style="border: none; text-decoration: none; margin: 0; float: left; display: inline-block; width: 42px;" data-mce-href="https://twitter.com/LyraNetwork" data-mce-style="border: none; text-decoration: none; margin: 0; float: left; display: inline-block; width: 42px;"><img src="cid:ebd5093b575f672e757e59e7c978d7b5d1ecfef7@zimbra" alt="" data-mce-src="/home/admin@lyra-network.com/corporate-documents/element-signature_logo_Twitter_42x28.jpg" doc="corporate-documents/element-signature_logo_Twitter_42x28.jpg" height="28" width="42" border="0"></a><br data-mce-bogus="1"></td><td style="margin: 0; font-size: 11px; font-family: Arial,sans-serif; color: #2b3c7a; line-height: 16px; width: 258.75pt; text-align: left;" data-mce-style="margin: 0; font-size: 11px; font-family: Arial,sans-serif; color: #2b3c7a; line-height: 16px; width: 258.75pt; text-align: left;" width="345" valign="top"><a href="https://payzen.eu" style="border: none; text-decoration: none; margin: 0; float: left; display: inline-block; width: 61px;" data-mce-href="https://payzen.eu" data-mce-style="border: none; text-decoration: none; margin: 0; float: left; display: inline-block; width: 61px;"><img src="cid:3c61f70c1921e2a4d5c92140344a2f50072f670d@zimbra" alt="" data-mce-src="/home/admin@lyra-network.com/corporate-documents/element-signature_payzen_61x28.jpg" doc="corporate-documents/element-signature_payzen_61x28.jpg" height="28" width="61" border="0"></a><br data-mce-bogus="1"></td></tr></tbody></table><table style="margin: 0; table-layout: fixed; border: none; width: 345pt;" data-mce-style="margin: 0; table-layout: fixed; border: none; width: 345pt;" width="460" cellspacing="0" cellpadding="0"><tbody><tr><td><hr style="background: #293b79 none repeat scroll 0% 0%; width: 100%; height: 4px; color: #293b79; margin: 0px;" data-mce-style="background: #293b79 none repeat scroll 0% 0%; width: 100%; height: 4px; color: #293b79; margin: 0px;"></td></tr></tbody></table><table style="margin: 0; table-layout: fixed; border: none; width: 345pt;" data-mce-style="margin: 0; table-layout: fixed; border: none; width: 345pt;" width="460" cellspacing="0" cellpadding="0"><tbody><tr><td style="margin: 0; font-size: 11px; font-family: Arial,sans-serif; color: #2b3c7a; line-height: 16px; width: 30.75pt; text-align: left;" data-mce-style="margin: 0; font-size: 11px; font-family: Arial,sans-serif; color: #2b3c7a; line-height: 16px; width: 30.75pt; text-align: left;"><div>Lyra Network, 109 rue de l'innovation, 31670 Labège, FRANCE</div></td></tr></tbody></table><div><br></div></div></div></body></html>