<?xml version="1.0" encoding="utf-16"?><html><head>
<style id="signatureStyle"><!--#xbaf36d997b7f497, #xbaf36d997b7f497, #xbaf36d997b7f497, #xbaf36d997b7f497 #xb71224f920234978acc74f4d23143069, #xbaf36d997b7f497
{font-family: Tahoma; font-size: 12pt;}
#xbaf36d997b7f497, #xbaf36d997b7f497
{font-family: 'Segoe UI'; font-size: 12pt;}
#xbaf36d997b7f497 #xb71224f920234978acc74f4d23143069 p.MsoNormal, #xbaf36d997b7f497 p.MsoNormal
{margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;}
#xbaf36d997b7f497 #xb71224f920234978acc74f4d23143069 div.WordSection1, #xbaf36d997b7f497 div.WordSection1
{page: WordSection1;}
#xbaf36d997b7f497 a:link
{color: rgb(5, 99, 193); text-decoration: underline;}
--></style>
<style><![CDATA[#x87d978c56880415e9594d7fe317f30f3 #x0ec1289986994fb5ac309827edd33abe,#x87d978c56880415e9594d7fe317f30f3{
        font-family:Tahoma;
        font-size:12pt;
}#x0ec1289986994fb5ac309827edd33abe #xbaf36d997b7f497,#x0ec1289986994fb5ac309827edd33abe #xbaf36d997b7f497,#x0ec1289986994fb5ac309827edd33abe #xbaf36d997b7f497,#x0ec1289986994fb5ac309827edd33abe #xbaf36d997b7f497 #xb71224f920234978acc74f4d23143069,#x0ec1289986994fb5ac309827edd33abe #xbaf36d997b7f497{
        font-family:Tahoma;
        font-size:12pt;
}
#x0ec1289986994fb5ac309827edd33abe #xbaf36d997b7f497,#x0ec1289986994fb5ac309827edd33abe #xbaf36d997b7f497{
        font-family:'Segoe UI';
        font-size:12pt;
}
#x0ec1289986994fb5ac309827edd33abe #xbaf36d997b7f497 #xb71224f920234978acc74f4d23143069 p.MsoNormal,#x0ec1289986994fb5ac309827edd33abe #xbaf36d997b7f497 p.MsoNormal{
        margin:0cm 0cm 0.0001pt;
        font-size:11pt;
        font-family:Calibri,sans-serif;
}
#x0ec1289986994fb5ac309827edd33abe #xbaf36d997b7f497 #xb71224f920234978acc74f4d23143069 div.WordSection1,#x0ec1289986994fb5ac309827edd33abe #xbaf36d997b7f497 div.WordSection1{
        page:WordSection1;
}
#x0ec1289986994fb5ac309827edd33abe{
        font-family:Tahoma;
        font-size:12pt;
}]]><!--body
{font-family: Tahoma; font-size: 12pt;}
--></style>
</head>
<body><div>Hi</div><div><br /></div><div>Well I've got myself into a fine mess. </div><div><br /></div><div>host01 was setup with hosted-engine v4.1. <span style="font-size: 12pt;">This was successful. </span></div><div><span style="font-size: 12pt;">Imported 3 VMs from a v3.6 OVirt AIO instance. (This OVirt 3.6 is still running with more VMs on it)</span></div><div>Tried to add host02 to the new Ovirt 4.1 setup. This partially succeeded but I couldn't add any storage domains to it. Cannot remember why. </div><div>In Ovirt engine UI I removed host02. </div><div>I reinstalled host02 with Centos7, tried to add it and Ovirt UI told me it was already there (but it wasn't listed in the UI). </div><div>Renamed the reinstalled host02 to host03, changed the ipaddress, reconfig the DNS server and added host03 into the Ovirt Engine UI. </div><div>All good, and I was able to import more VMs to it. </div><div>I was also able to shutdown a VM on host01 assign it to host03 and start the VM. Cool, everything working. </div><div>The above was all last couple of weeks. </div><div><br /></div><div>This week I performed some yum updates on the Engine VM. No reboot. </div><div>Today noticed that the Ovirt services in the Engine VM were in a endless restart loop. They would be up for a 5 minutes and then die. </div><div>Looking into /var/log/ovirt-engine/engine.log and I could only see errors relating to host02. Ovirt was trying to find it and failing. Then falling over. </div><div>I ran "hosted-engine --clean-metadata" thinking it would cleanup and remove bad references to hosts, but now realise that was a really bad idea as it didn't do what I'd hoped. </div><div>At this point the sequence below worked, I could login to Ovirt UI but after 5 minutes the services would be off</div><div><div>
<span style="color: rgb(34, 34, 34); font-family: Verdana, Arial, Helvetica, sans-serif; font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);">service ovirt-engine restart</span></div></div><div><span style="color: rgb(34, 34, 34); font-family: Verdana, Arial, Helvetica, sans-serif; font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);"><div>
<span style="font-variant-ligatures: normal;">service ovirt-websocket-proxy restart</span></div><div><span style="font-variant-ligatures: normal;"><div>
<span style="font-variant-ligatures: normal;">service httpd restart</span></div></span></div></span></div><div><br /></div><div>I saw some reference to having to remove hosts from the database by hand in situations where under the hood of Ovirt a decommission host was still listed, but wasn't showing in the GUI. </div><div>So I removed reference to host02 (vds_id and host_id) in the following tables in this order. </div><div><span style="font-size: 12pt;">vds_dynamic</span></div><div><div id="x0ec1289986994fb5ac309827edd33abe">
<div><div><span style="font-size: 12pt;">vds_statistics</span></div><div><div id="x87d978c56880415e9594d7fe317f30f3">
<div><div><div id="x0ec1289986994fb5ac309827edd33abe"><div><div>vds_static</div><div></div></div></div></div></div></div></div><div></div></div></div></div><div>host_device</div><div><br /></div><div>Now when I try to start ovirt-websocket it will not start</div><div>service ovirt-websocket start<br />Redirecting to /bin/systemctl start ovirt-websocket.service<br />Failed to start ovirt-websocket.service: Unit not found.</div><div><br /></div><div>I'm now thinking that I need to do the following in the engine VM</div><div><div>
<pre class="highlight plaintext"><code># engine-cleanup
# yum remove ovirt-engine
# yum install ovirt-engine
# engine-setup </code></pre></div></div><div>But to run engine-cleanup I need to put the engine-vm into maintenance mode and because of the --clean-metadata that I ran earlier on host01 I cannot do that. </div><div><br /></div><div>What is the best course of action from here?</div><div><br /></div><div id="signature_old"><div id="xbaf36d997b7f497">
<div class="WordSection1">
<div id="xb71224f920234978acc74f4d23143069"><div class="WordSection1"><p class="MsoNormal"><font face="Tahoma"><span style="font-size: 16px;">Cheers</span></font></p><p class="MsoNormal"><br /></p><p class="MsoNormal"><font face="Tahoma"><span style="font-size: 16px;">Andrew</span></font></p></div></div></div></div></div>
</body></html>