<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 9, 2017 at 12:30 PM, Nelson Lameiras <span dir="ltr"><<a href="mailto:nelson.lameiras@lyra-network.com" target="_blank">nelson.lameiras@lyra-network.<wbr>com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><div>Hello,<br></div><div><br></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></div></blockquote><div><br></div><div>IIRC we do not support this flow currently. I agree it might be useful. Would you like to open an RFE bz?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><div><br></div><div>Our test setup : </div><div>2 hosts with centos 7.3 with ovirt4.0 (latest updates)<br></div><div>1 ovirt-engine 4.0 (latest update)<br></div><div><br></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></div><div><br></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></div></blockquote><div><br></div><div>Indeed.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><div></div><div><br></div><div>This fails, according to a bug already posted on <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1420283" target="_blank">https://bugzilla.redhat.com/sh<wbr>ow_bug.cgi?id=1420283</a> which is resolved in future 4.1.1<br></div></div></div></blockquote><div><br></div><div>It might not be clear from the bug content, but:<br></div><div>1. It only affects RHV, not oVirt.<br></div><div>2. It does not fix your problem. It only allows the upgrade tool in version 4.1 to migrate a 3.6 engine to a _4.0_ appliance (not 4.1).<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><div></div><div><br></div><div>So I tried to manually patch the file corrected in gerrit <a href="https://gerrit.ovirt.org/#/c/71965/" target="_blank">https://gerrit.ovirt.org/#/c/7<wbr>1965/</a> and - after multiple tries - it still fails at the end with the following error : <br></div><div><br></div><div>...<br></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></div></div></div></blockquote><div><br></div><div>This is your real problem.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><div> |- HE_APPLIANCE_ENGINE_RESTORE_FA<wbr>IL<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></div><div>When checking upgrade log, there's not much more error information other than :<br></div><div><br></div><div>2017-03-08 18:08:30 INFO otopi.plugins.gr_he_common.eng<wbr>ine.health health._closeup:127 Running engine-setup on the appliance<br>2017-03-08 18:08:44 DEBUG otopi.plugins.otopi.dialog.hum<wbr>an dialog.__logString:204 DIALOG:SEND |- Preparing to restore:<br>2017-03-08 18:08:44 DEBUG otopi.plugins.otopi.dialog.hum<wbr>an dialog.__logString:204 DIALOG:SEND |- - Unpacking file '/root/engine_backup.tar.gz'<br>2017-03-08 18:08:44 DEBUG otopi.plugins.otopi.dialog.hum<wbr>an 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.hum<wbr>an dialog.__logString:204 DIALOG:SEND |- HE_APPLIANCE_ENGINE_RESTORE_FA<wbr>IL<br>2017-03-08 18:08:44 ERROR otopi.plugins.gr_he_common.eng<wbr>ine.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-packa<wbr>ges/otopi/context.py", line 132, in _executeMethod<br> method['method']()<br> File "/usr/share/ovirt-hosted-engin<wbr>e-setup/scripts/../plugins/gr-<wbr>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> </div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><div>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></div></div></div></blockquote><div><br></div><div>Indeed.<br><br></div><div>If you want to "fix" that, you can try to patch engine-backup - search in it for VALID_BACKUP_RESTORE_PAIRS, there is a comment about enabling 4.0->4.1 upgrade. But as I wrote, this is not supported, and I am not aware of anyone testing it - so things might break later on.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><div>2017-03-08 18:08:44 DEBUG otopi.context context.dumpEnvironment:760 ENVIRONMENT DUMP - BEGIN<br></div><div><br></div><div>In "new" engine setup log, the only thing which catched my eye is :<br></div><div><br></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.<wbr>dnfpackager.Plugin._boot<br>2017-03-08 18:08:45 DEBUG otopi.plugins.otopi.packagers.<wbr>dnfpackager dnfpackager._boot:163 Cannot initialize minidnf<br>Traceback (most recent call last):<br> File "/usr/share/otopi/plugins/otop<wbr>i/packagers/dnfpackager.py", line 150, in _boot<br> constants.PackEnv.DNF_DISABLED<wbr>_PLUGINS<br> File "/usr/share/otopi/plugins/otop<wbr>i/packagers/dnfpackager.py", line 60, in _getMiniDNF<br> from otopi import minidnf<br> File "/usr/lib/python2.7/site-packa<wbr>ges/otopi/minidnf.py", line 16, in <module><br> import dnf<br>ImportError: No module named dnf<br></div></div></div></blockquote><div><br></div><div>This is just unrelated noise, will be cleared by bz 1404253.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><div>2017-03-08 18:08:45 DEBUG otopi.context context.dumpEnvironment:760 ENVIRONMENT DUMP - BEGIN<br></div><div><br></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" target="_blank">runvm.py</a>) should be enough to make it work, but maybe this can bring some new information to you.<br></div><div>Really hopping that 4.1.1 oVirt will resolve this issue as we are eager to start using appliances.<br></div></div></div></blockquote><div><br></div><div>Please note that the engine appliance is not really an appliance in the most strict sense of the word, such as e.g. ovirt-node. Once you install it, it behaves like a normal machine. To upgrade it, you follow normal upgrade procedures. So even if you somehow manage to do what you want (by patching engine-backup and probably fixing other things as needed, or by opening an RFE bz and waiting for it to be handled), it will not help you much when you eventually want to upgrade to 4.2 and later. You are of course welcome to open an RFE for this as well, but it will likely require quite a lot more work, and not sure it's worth it.<br><br></div><div>Best,<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><div></div><div><br></div><div>(I can provide you with more/full log files if necessary)<br></div><div><br></div><div><div>cordialement, regards,</div><div><br></div><table style="margin:0px;table-layout:fixed;border-width:medium;border-style:none;border-color:-moz-use-text-color;width:345pt;padding:0px" width="460" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="margin:0px;font-size:11px;font-family:arial,sans-serif;color:rgb(43,60,122);line-height:16px;width:86.25pt;text-align:left" valign="top" width="115"><a href="https://www.lyra-network.com/" style="border-width:medium;border-style:none;border-color:-moz-use-text-color;text-decoration:none;width:100%;display:block;clear:both" target="_blank"><img src="cid:2d73caa90af1eb7aeb4cb1bde4b870be1e954fc6@zimbra" alt="" height="94" width="115" border="0"></a><br></td><td style="margin:0px;font-size:11px;font-family:arial,sans-serif;color:rgb(43,60,122);line-height:16px;width:258.75pt" valign="top" width="345"><table style="margin:0px;width:258.75pt;table-layout:fixed;border-width:medium;border-style:none;border-color:-moz-use-text-color" width="345" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-size:16px;font-family:arial,sans-serif;color:rgb(43,60,122);line-height:18px;font-weight:bold">Nelson LAMEIRAS</td></tr><tr><td style="font-family:arial,sans-serif;color:rgb(43,60,122);font-size:11px;line-height:16px">Ingénieur Systèmes et Réseaux<span style="font-family:arial,sans-serif;color:rgb(51,122,183);font-size:11px"> / Systems and Networks engineer</span></td></tr><tr><td style="line-height:16px;font-family:"arial",sans-serif;color:rgb(43,60,122);font-size:11px"><span style="font-family:arial,sans-serif;color:rgb(43,60,122);font-size:11px">Tel: <a href="tel:+33%205%2032%2009%2009%2070" value="+33532090970" target="_blank">+33 5 32 09 09 70</a></span></td></tr><tr><td style="line-height:16px;font-family:"arial",sans-serif;color:rgb(43,60,122);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" target="_blank">nelson.lameiras@lyra-network.c<wbr>om</a><br></td></tr><tr><td style="line-height:16px;font-family:"arial",sans-serif;color:rgb(43,60,122);font-size:11px"><a href="https://www.lyra-network.com/" style="font-size:11px;font-family:arial,sans-serif;line-height:16px;border-width:medium;border-style:none;border-color:-moz-use-text-color;text-decoration:none" target="_blank">www.lyra-network.com</a> <a href="https://payzen.eu" style="font-size:11px;font-family:arial,sans-serif;line-height:16px;border-width:medium;border-style:none;border-color:-moz-use-text-color;text-decoration:none" target="_blank"> | www.payzen.eu</a><br></td></tr></tbody></table></td></tr></tbody></table><table style="margin:0px;table-layout:fixed;border-width:medium;border-style:none;border-color:-moz-use-text-color;width:345pt" width="460" cellpadding="0" cellspacing="0"><tbody><tr><td style="margin:0px;font-size:11px;font-family:arial,sans-serif;color:rgb(43,60,122);line-height:16px;width:24pt;text-align:left" valign="top" width="32"><a href="https://www.youtube.com/channel/UCrVl1CO_Jlu3KbiRH-tQ_vA" style="border-width:medium;border-style:none;border-color:-moz-use-text-color;text-decoration:none;margin:0px;float:left;display:inline-block;width:32px" target="_blank"><img src="cid:3ab05240a7d61766c65061d295bb6ab763776f35@zimbra" alt="" height="28" width="32" border="0"></a><br></td><td style="margin:0px;font-size:11px;font-family:arial,sans-serif;color:rgb(43,60,122);line-height:16px;width:30.75pt;text-align:left" valign="top" width="41"><a href="https://www.linkedin.com/company/lyra-network_2" style="border-width:medium;border-style:none;border-color:-moz-use-text-color;text-decoration:none;margin:0px;float:left;display:inline-block;width:41px" target="_blank"><img src="cid:8abb8ba852f9dac790947a0613276631ef5d9907@zimbra" height="28" width="41" border="0"></a><br></td><td style="margin:0px;font-size:11px;font-family:arial,sans-serif;color:rgb(43,60,122);line-height:16px;width:31.5pt;text-align:left" valign="top" width="42"><a href="https://twitter.com/LyraNetwork" style="border-width:medium;border-style:none;border-color:-moz-use-text-color;text-decoration:none;margin:0px;float:left;display:inline-block;width:42px" target="_blank"><img src="cid:ebd5093b575f672e757e59e7c978d7b5d1ecfef7@zimbra" alt="" height="28" width="42" border="0"></a><br></td><td style="margin:0px;font-size:11px;font-family:arial,sans-serif;color:rgb(43,60,122);line-height:16px;width:258.75pt;text-align:left" valign="top" width="345"><a href="https://payzen.eu" style="border-width:medium;border-style:none;border-color:-moz-use-text-color;text-decoration:none;margin:0px;float:left;display:inline-block;width:61px" target="_blank"><img src="cid:3c61f70c1921e2a4d5c92140344a2f50072f670d@zimbra" alt="" height="28" width="61" border="0"></a><br></td></tr></tbody></table><table style="margin:0px;table-layout:fixed;border-width:medium;border-style:none;border-color:-moz-use-text-color;width:345pt" width="460" cellpadding="0" cellspacing="0"><tbody><tr><td><hr style="background:rgb(41,59,121) none repeat scroll 0% 0%;width:100%;height:4px;color:rgb(41,59,121);margin:0px"></td></tr></tbody></table><table style="margin:0px;table-layout:fixed;border-width:medium;border-style:none;border-color:-moz-use-text-color;width:345pt" width="460" cellpadding="0" cellspacing="0"><tbody><tr><td style="margin:0px;font-size:11px;font-family:arial,sans-serif;color:rgb(43,60,122);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></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail-m_-6184870592476797296m_-351733390752830091m_-6636162887500706159gmail_signature">Didi<br></div>
</div></div>