<div dir="ltr">Things are getting more clear to me, thanks!<div>And this whole upgrade is something I should prepare well and not try to do in a few hours at night :) <br><br>Resuming, there are multiple solutions:</div><div><br></div><div>1. upgrade el6 to el7 </div><div>no go => I need to upgrade postgresql and redhat warns about upgrading 6.6 to 7 because of newer packages</div><div><span style="line-height:1.5">2. install a new HE on new Host new storage domain</span><br></div><div><div>a lot of work => I have to <span style="line-height:1.5">turn off VMs,</span><span style="line-height:1.5"> import storage domain into new setup and reinstall hosts.</span></div></div><div><div>3. install a new HE on new Host existing storage domain</div><div>possibly not without issues => I have to manually update references to the hosted storage or better wait till there is an upgrade tool.</div></div><div>4. (re)install HE in current VMS container.</div><div>=> I can keep my Hosts and reference to the storage domain. </div><div><br><div class="gmail_quote"><div class="GmSign">So I guess my best bet is to go for option 4. </div><div class="GmSign"><br></div><div class="GmSign">The flow I am planning to follow would be:<br></div><div class="GmSign"><br></div><div class="GmSign"><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:13px">1. Move to global maintenance ( keep VMs running )</span><br style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:13px"><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:13px">2. backup ( I have also a complete disk install of old hosted-engine )</span></div><div class="GmSign">3. reboot with different conf, to boot from cd</div><div class="GmSign">4. acces console and run install +<span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:13px"> import the backup in the </span><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:13px">engine vm</span></div><div class="GmSign"><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:13px">? 5. run engine-setup to configure new install with engine restore data</span></div><div class="GmSign"><span style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:13px">6. reboot hosted-engine</span><br style="color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:13px"></div><div class="GmSign"><span style="font-size:13px;color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif">7. Remove from global maintenance</span><br style="font-size:13px;color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif"></div><div class="GmSign"><span style="font-size:13px;color:rgb(33,33,33);font-family:"helvetica neue",helvetica,arial,sans-serif">8. launch web gui and I should be able to manage all still running VMs again.</span></div><div class="GmSign"><br></div><div class="GmSign">Would above be working or am I missing something and <span style="line-height:1.5">I doubt step 5. Is this needed?</span></div><div class="GmSign"><br></div><div class="GmSign">Best Regards,</div><div class="GmSign">Paul</div><div class="GmSign"><br></div><div class="GmSign"><br></div><div class="GmSign"><br></div><div dir="ltr">Op do 30 jun. 2016 om 14:44 schreef Simone Tiraboschi <<a href="mailto:stirabos@redhat.com">stirabos@redhat.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Jun 30, 2016 at 8:34 AM, Paul Groeneweg | Pazion <<a href="mailto:paul@pazion.nl" target="_blank">paul@pazion.nl</a>> wrote:<br>
> Hi Yedidyah,<br>
><br>
> Thank you for the comprehensive answers.<br>
><br>
> I think I go for a complete reinstall ( read also OS upgrade tool is not<br>
> adviced on 6.6 or higher as there might be newer packages as on 7 ). No<br>
> doubting to re-use current VM or setup from scratch ( fresh host with new<br>
> hosted-engine and existing storage domein ).<br>
<br>
If you are planning to redeploy hosted-engien from scratch and<br>
restoring on the new engine DB a backup of the previous one, please<br>
carefully consider this:<br>
<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1240466#c21" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1240466#c21</a><br>
<br>
So, if you choose that path you'll have also to manually remove any<br>
reference to the previous hosted-engine from the restored DB.<br>
I'd strongly suggest you to wait for the upgrade tool to be fixed<br>
since manually doing this upgrade can be really error prone.<br>
<br>
> You explain the steps ( 1 to 6 ), but then don't talk about storage domain<br>
> import.<br>
> Does it mean, when I reinstall the hosted-engine in the current he VM and<br>
> restore an engine-backup ( step 5 ) I am able to start vm from Host and it<br>
> is still connected to the master storage ( so no need for storage import) ?<br>
><br>
> Best Regards,<br>
> Paul Groeneweg<br>
><br>
><br>
> Op do 30 jun. 2016 om 08:00 schreef Yedidyah Bar David <<a href="mailto:didi@redhat.com" target="_blank">didi@redhat.com</a>>:<br>
>><br>
>> On Wed, Jun 29, 2016 at 10:07 PM, Paul Groeneweg | Pazion<br>
>> <<a href="mailto:paul@pazion.nl" target="_blank">paul@pazion.nl</a>> wrote:<br>
>> ><br>
>> > I am looking for a way to get my hosted-engine running on el7 so I can<br>
>> > upgrade to oVirt 4.0. Currently my hosts already run el7, but my<br>
>> > hosted-engine is still el6.<br>
>> ><br>
>> > I read<br>
>> ><br>
>> > <a href="https://www.ovirt.org/documentation/how-to/hosted-engine-host-OS-upgrade/" rel="noreferrer" target="_blank">https://www.ovirt.org/documentation/how-to/hosted-engine-host-OS-upgrade/</a><br>
>> > but this is only about the hosts.<br>
>> ><br>
>> > I read <a href="https://www.ovirt.org/documentation/how-to/hosted-engine/" rel="noreferrer" target="_blank">https://www.ovirt.org/documentation/how-to/hosted-engine/</a>, but it<br>
>> > only mentions upgrade of the hosted-engine software, not the OS.<br>
>> ><br>
>> > I understood I can do a fresh hosted-engine install, and then import my<br>
>> > storage domain to the new hosted engine, but:<br>
>> ><br>
>> > - Do I need to restore my hosted engine database? ( like described here:<br>
>> ><br>
>> > <a href="http://www.ovirt.org/develop/developer-guide/engine/migrate-to-hosted-engine/" rel="noreferrer" target="_blank">http://www.ovirt.org/develop/developer-guide/engine/migrate-to-hosted-engine/</a><br>
>> > )<br>
>><br>
>> You might not have to, if you only care about the imported VMs from your<br>
>> storage. This will not keep other configuration, such as<br>
>> users/roles/permissions<br>
>> etc.<br>
>><br>
>> > - Can I directly install hosted-engine 4.0 and then import the storage<br>
>> > domain? Or should I install same hosted-engine version?<br>
>><br>
>> AFAIK 4.0 engine can import 3.6 storage domains without problem.<br>
>><br>
>> > - Do I first need another master storage domain or can I directly import<br>
>> > my<br>
>> > old master storage domain?<br>
>><br>
>> No idea. Even if you do, you can create a small empty one and later remove<br>
>> it.<br>
>><br>
>> > - When importing the storage domain what is the risk it fails ( I have<br>
>> > backups, but it would cost a day to restore all )<br>
>><br>
>> No idea, but IIRC we got many successful reports and at most few failures<br>
>> for this.<br>
>><br>
>> > - How long would import take? few minutes or hours? ( I want to keep<br>
>> > down<br>
>> > time as low as possible ).<br>
>><br>
>> Again no idea. Perhaps do some test?<br>
>><br>
>> ><br>
>> > Another option would be upgrade the OS ( with redhat-upgrade-tool ) or<br>
>> > is<br>
>> > this a path for disaster?<br>
>><br>
>> Didn't work for us well, so we decided to not support it. If you decide to<br>
>> try,<br>
>> make sure you test carefully beforehand. From ovirt's POV:<br>
>> 1. You'll need to handle postgresql upgrade.<br>
>> 2. Right after OS upgrade, you'll still have (I think) el6 packages<br>
>> of the engine. It will hopefully be in a good-enough state for upgrade<br>
>> to 4.0, but we didn't test this.<br>
>> 3. Specifically, if upgrade fails, rollback will most likely not work,<br>
>> so you'll have to manually handle this - take a full vm backup and make<br>
>> sure you can restore it.<br>
>><br>
>> ><br>
>> > I hope someone can tell me how I can smoothly upgrade my hosted-engine<br>
>> > up to<br>
>> > el7 and run oVirt 4.<br>
>><br>
>> We are working on a tool/wizard to help with this process. It used to<br>
>> work,<br>
>> but at some point it was decided that one of the actions it does is risky<br>
>> and was blocked, thus the tool is broken currently.<br>
>><br>
>> You can invoke the tool by running: 'hosted-engine --upgrade-appliance'.<br>
>> As noted above, this is currently broken.<br>
>><br>
>> There are several open bugs about it, e.g.:<br>
>><br>
>> <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1319457" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1319457</a><br>
>> <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1343425" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1343425</a><br>
>> <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1343593" rel="noreferrer" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1343593</a> (closed, this is<br>
>> what broke the tool)<br>
>><br>
>> Basically, you can manually do what the tool is supposed to do:<br>
>> 1. Make sure state is clean and stable (no running/pending storage<br>
>> actions,<br>
>> no VMs in the middle of migration etc), all clusters are compat level 3.6,<br>
>> etc.<br>
>> 2. Move to global maintenance<br>
>> 3. backup the engine using engine-backup and keep the backup elsewhere<br>
>> 4. Reinstall engine vm with el7 and 4.0 engine (the tool will use the<br>
>> engine<br>
>> appliance, you might too but not sure how exactly).<br>
>> 5. Restore the backup and run engine-setup.<br>
>> 6. If all looks ok, leave global maintenance.<br>
>><br>
>> If you manually keep a full backup of the engine vm before step 4,<br>
>> you might be able to restore this backup if there are problems.<br>
>> Doing this in the provided tool is currently the main blocking issue<br>
>> for it. Hopefully will be provided in 4.0.1.<br>
>><br>
>> Best,<br>
>> --<br>
>> Didi<br>
><br>
><br>
> _______________________________________________<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/listinfo/users</a><br>
><br>
</blockquote></div></div></div>