<div dir="ltr">Do you have any 3.5 clusters? You can only upgrade to 4.0, if all the cluster are 3.6 compatibility.</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><pre cols="72"><span style="font-family:arial,helvetica,sans-serif">Yaniv Dary
Technical Product Manager
Red Hat Israel Ltd.
34 Jerusalem Road
Building A, 4th floor
Ra&#39;anana, Israel 4350109

Tel : +972 (9) 7692306
        8272306
Email: <a href="mailto:ydary@redhat.com" target="_blank">ydary@redhat.com</a>
IRC : ydary</span></pre>
</div></div></div></div></div>
<br><div class="gmail_quote">On Tue, Jun 28, 2016 at 1:22 PM, Ricky Schneberger <span dir="ltr">&lt;<a href="mailto:ricky@schneberger.se" target="_blank">ricky@schneberger.se</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 2016-06-28 10:21, Yedidyah Bar David wrote:<br>
&gt; On Tue, Jun 28, 2016 at 10:53 AM, Ricky Schneberger<br>
&gt; &lt;<a href="mailto:ricky@schneberger.se">ricky@schneberger.se</a>&gt; wrote:<br>
&gt;&gt; On 2016-06-27 19:15, Fernando Fuentes wrote:<br>
&gt;&gt;<br>
&gt;&gt; Ricky,<br>
&gt;&gt;<br>
&gt;&gt; I am under the impression that the DB migration was implemented in<br>
&gt;&gt; release 3.6.6.<br>
&gt;&gt;<br>
&gt;&gt; I might be wrong.<br>
&gt;&gt;<br>
&gt;&gt; <a href="https://www.ovirt.org/release/3.6.6/" rel="noreferrer" target="_blank">https://www.ovirt.org/release/3.6.6/</a><br>
&gt;&gt;<br>
&gt;&gt; What&#39;s New in 3.6.6?<br>
&gt;&gt; Enhancement<br>
&gt;&gt; oVirt Engine<br>
&gt;&gt;<br>
&gt;&gt; BZ 1241149 [RFE] Provide way to preform in-cluster upgrade of hosts from<br>
&gt;&gt; el6-&gt;el7.<br>
&gt;&gt; BZ 1332463 [RFE] restore: ensure that 3.6 on el6 backup can be restored<br>
&gt;&gt; on 3.6 on el7<br>
&gt;&gt; Feature:<br>
&gt;&gt;<br>
&gt;&gt; Allow engine-backup on el7 to restore backups taken on el6.<br>
&gt;&gt;<br>
&gt;&gt; Reason:<br>
&gt;&gt;<br>
&gt;&gt; engine 4.0 does not support el6. Users that want to upgrade from 3.6 on<br>
&gt;&gt; el6 to 4.0 on el7 have to do this by backing up the engine on 3.6/el6<br>
&gt;&gt; and restore on 4.0/el7.<br>
&gt;&gt;<br>
&gt;&gt; This feature, backported from 4.0, allows to do such a migration also in<br>
&gt;&gt; 3.6.<br>
&gt;&gt;<br>
&gt;&gt; Result:<br>
&gt;&gt;<br>
&gt;&gt; Using this flow, it&#39;s possible to migrate a el6 setup to el7:<br>
&gt;&gt;<br>
&gt;&gt; On the existing engine machine run:<br>
&gt;&gt; 1. engine-backup --mode=backup --file=engine-3.6.bck --log=backup.log<br>
&gt;&gt;<br>
&gt;&gt; On a new el7 machine:<br>
&gt;&gt; 2. Install engine, including dwh if it was set up on el6.<br>
&gt;&gt; 3. Copy engine-3.6.bck to the el7 machine<br>
&gt;&gt; 4. engine-backup --mode=restore --file=engine-3.6.bck --log=restore.log<br>
&gt;&gt; --provision-db --no-restore-permissions<br>
&gt;&gt; 5. engine-setup<br>
&gt;&gt;<br>
&gt;&gt; Check engine-backup documentation for other options, including using<br>
&gt;&gt; remote databases, extra grants/permissions, etc.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; One step forward, two backward....<br>
&gt;&gt;<br>
&gt;&gt; - upgrade the old EL6 to ovirt 3.6.6<br>
&gt;&gt; - engine-backup --mode=backup --file=engine-backup.tar.gz --log=backup.log<br>
&gt;&gt; - install <a href="http://resources.ovirt.org/pub/yum-repo/ovirt-release40.rpm" rel="noreferrer" target="_blank">http://resources.ovirt.org/pub/yum-repo/ovirt-release40.rpm</a>, to<br>
&gt;&gt; have ovirt-engine 4.0.0.6.<br>
&gt;&gt; - yum install ovirt-engine<br>
&gt;&gt; - engine-backup --mode=restore --no-restore-permissions --provision-db<br>
&gt;&gt; --file=engine-backup.tar.gz --log=engine-backup-restore.log<br>
&gt;&gt;<br>
&gt;&gt; Then I got this error...<br>
&gt;&gt;<br>
&gt;&gt; &quot;Preparing to restore:<br>
&gt;&gt; - Unpacking file &#39;engine-backup.tar.gz&#39;<br>
&gt;&gt; Restoring:<br>
&gt;&gt; - Files<br>
&gt;&gt; ------------------------------------------------------------------------------<br>
&gt;&gt; Please note:<br>
&gt;&gt;<br>
&gt;&gt; Operating system is different from the one used during backup.<br>
&gt;&gt; Current operating system: centos7<br>
&gt;&gt; Operating system at backup: centos6<br>
&gt;&gt;<br>
&gt;&gt; Apache httpd configuration will not be restored.<br>
&gt;&gt; You will be asked about it on the next engine-setup run.<br>
&gt;&gt; ------------------------------------------------------------------------------<br>
&gt;&gt; Provisioning PostgreSQL users/databases:<br>
&gt;&gt; - user &#39;engine&#39;, database &#39;engine&#39;<br>
&gt;&gt; Restoring:<br>
&gt;&gt; FATAL: Can&#39;t connect to database &#39;ovirt_engine_history&#39;. Please see<br>
&gt;&gt; &#39;/usr/bin/engine-backup --help&#39;.&quot;<br>
&gt;&gt;<br>
&gt; The backup/restore here is just like normal ones, so for details you can read<br>
&gt; the output of &#39;engine-backup --help&#39; or [1].<br>
&gt;<br>
&gt; In your specific case, you seem to have dwh in your backup.<br>
&gt;<br>
&gt; To restore it, you have to either prepare a database with the same credentials<br>
&gt; as the one used in the old machine, or, if it was automatically-provisioned by<br>
&gt; engine-setup, you can pass the option &#39;--provision-dwh-db&#39; to make engine-backup<br>
&gt; create it for you.<br>
&gt;<br>
&gt; I think I should add an option &#39;--provision-all-databases&#39; or something like<br>
&gt; that. Didn&#39;t feel very good about it so never done, and no-one asked for it...<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; [1] <a href="http://www.ovirt.org/develop/release-management/features/engine/engine-backup/" rel="noreferrer" target="_blank">http://www.ovirt.org/develop/release-management/features/engine/engine-backup/</a><br>
&gt;<br>
&gt;<br>
<br>
</div></div>#engine-backup --mode=restore --no-restore-permissions --provision-db<br>
--provision-dwh-db --provision-reports-db --file=engine-backup.tar.gz<br>
--log=engine-backup-restore.log<br>
<br>
Success with the restore!<br>
<br>
Thanks for pointing me out. What I did was just following the<br>
documentation, right or wrong.<br>
<br>
But when I run &quot;Engine-setup&quot; I got stucked with<br>
<br>
&quot;[ INFO  ] Stage: Setup validation<br>
[WARNING] Less than 16384MB of memory is available<br>
[ ERROR ] Failed to execute stage &#39;Setup validation&#39;: Trying to upgrade<br>
from unsupported versions: 3.5<br>
[ INFO  ] Stage: Clean up<br>
          Log file is located at<br>
/var/log/ovirt-engine/setup/ovirt-engine-setup-20160628120936-ix7pb8.log<br>
[ INFO  ] Generating answer file<br>
&#39;/var/lib/ovirt-engine/setup/answers/20160628121149-setup.conf&#39;<br>
[ INFO  ] Stage: Pre-termination<br>
[ INFO  ] Stage: Termination<br>
[ ERROR ] Execution of setup failed&quot;<br>
<br>
Seems to be something missing from an earlier db-upgrade?<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Ricky Schneberger<br>
<br>
------------------------------------<br>
<br>
<br>
Use PGP to protect your own privacy!<br>
<br>
Key fingerprint = 59E1 2B00 C28B 6E0D C8D1  D85B 39AA 7CD5 B88C 0B63<br>
Key-ID: 0xB88C0B63<br>
<br>
<br>
<br>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>