Hosted-Engine Agent broken

--_000_94c8a2d4a7c347269b1e642ba1690946epsaero_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi All, after upgrading my engine to 4.2 and upgrading my hosts to the latest vers= ions the HA for the hosted engine is not working anymore. The Agent fails w= ith the following errors. Did I miss anything while upgrading ? The Engine = is still running - what would be the correct approach to get the HA service= s up and running ? ovirt-ha-agent ovirt_hosted_engine_ha.agent.agent.Agent ERROR Traceback (mo= st recent call last): Fil= e "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/agent.py",= line 191, in _run_agent r= eturn action(he) Fil= e "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/agent.py",= line 64, in action_proper r= eturn he.start_monitoring() Fil= e "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/hosted_eng= ine.py", line 421, in start_monitoring s= elf._config.refresh_vm_conf() Fil= e "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/env/config.py", = line 496, in refresh_vm_conf c= ontent_from_ovf =3D self._get_vm_conf_content_from_ovf_store() Fil= e "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/env/config.py", = line 438, in _get_vm_conf_content_from_ovf_store c= onf =3D ovf2VmParams.confFromOvf(heovf) Fil= e "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/ovf/ovf2VmPa= rams.py", line 283, in confFromOvf v= mConf =3D toDict(ovf) Fil= e "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/ovf/ovf2VmPa= rams.py", line 210, in toDict v= mParams['vmId'] =3D tree.find('Content/Section').attrib[OVF_NS + 'id'] Fil= e "lxml.etree.pyx", line 2272, in lxml.etree._Attrib.__getitem__ (src/lxml/= lxml.etree.c:55336) KeyEr= ror: '{http://schemas.dmtf.org/ovf/envelope/1/}id' ovirt-ha-agent ovirt_hosted_engine_ha.agent.agent.Agent ERROR Trying to res= tart agent ovirt-ha-agent ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine ERRO= R Unable to refresh vm.conf from the shared storage. Has this HE cluster co= rrectly reached 3.6 level? If anyone could give a hint on where to look at would be very helpful. Thank you, Sven --_000_94c8a2d4a7c347269b1e642ba1690946epsaero_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
</span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"> &= nbsp; &nbs=
</p> <p class=3D"MsoNormal"><span lang=3D"EN-US"> &= nbsp; &nbs=
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-fareast-language:EN-US;} a:link, span.MsoHyperlink {mso-style-priority:99; color:#0563C1; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:#954F72; text-decoration:underline;} span.E-MailFormatvorlage17 {mso-style-type:personal-compose; font-family:"Calibri","sans-serif"; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-family:"Calibri","sans-serif"; mso-fareast-language:EN-US;} @page WordSection1 {size:612.0pt 792.0pt; margin:70.85pt 70.85pt 2.0cm 70.85pt;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3D"DE" link=3D"#0563C1" vlink=3D"#954F72"> <div class=3D"WordSection1"> <p class=3D"MsoNormal">Hi All, <o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">after upgrading my engine to 4.= 2 and upgrading my hosts to the latest versions the HA for the hosted= engine is not working anymore. The Agent fails with the following errors. = Did I miss anything while upgrading ? The Engine is still running – what would be the correct approach to get = the HA services up and running ? <o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">ovirt-ha-agent ovirt_hosted_eng= ine_ha.agent.agent.Agent ERROR Traceback (most recent call last):<o:p></o:p= p; &= nbsp; &nbs= p; &= nbsp; &nbs= p; File "/usr/lib/python2.7/site-packages/ovirt_host= ed_engine_ha/agent/agent.py", line 191, in _run_agent<o:p></o:p></span= p; &= nbsp; &nbs= p; &= nbsp; &nbs= p; return action(he)<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"> &= nbsp; &nbs= p; &= nbsp; &nbs= p; &= nbsp; &nbs= p; File "/usr/lib/python2.7/site-packages/ovirt_host= ed_engine_ha/agent/agent.py", line 64, in action_proper<o:p></o:p></sp= an></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"> &= nbsp; &nbs= p; &= nbsp; &nbs= p; &= nbsp; &nbs= p; return he.start_monitoring()<o:p></o:p></s= pan></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"> &= nbsp; &nbs= p; &= nbsp; &nbs= p; &= nbsp; &nbs= p; File "/usr/lib/python2.7/site-packages/ovirt_host= ed_engine_ha/agent/hosted_engine.py", line 421, in start_monitoring<o:= p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"> &= nbsp; &nbs= p; &= nbsp; &nbs= p; &= nbsp; &nbs= p; self._config.refresh_vm_conf()<o:p></o:p><= /span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"> &= nbsp; &nbs= p; &= nbsp; &nbs= p; = &nb= sp; File "/usr/lib/python2.7/site-packages/ovirt_host= ed_engine_ha/env/config.py", line 496, in refresh_vm_conf<o:p></o:p></= span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"> &= nbsp; &nbs= p; &= nbsp; &nbs= p; &= nbsp; &nbs= p; content_from_ovf =3D self._get_vm_conf_con= tent_from_ovf_store()<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"> &= nbsp; &nbs= p; &= nbsp; &nbs= p; &= nbsp; &nbs= p; File "/usr/lib/python2.7/site-packages/ovirt_host= ed_engine_ha/env/config.py", line 438, in _get_vm_conf_content_from_ov= f_store<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"> &= nbsp; &nbs= p; &= nbsp; &nbs= p; = &nb= sp; conf =3D ovf2VmParams.confFromOvf(heovf)<o= :p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"> &= nbsp; &nbs= p; &= nbsp; &nbs= p; &= nbsp; &nbs= p; File "/usr/lib/python2.7/site-packages/ovirt_host= ed_engine_ha/lib/ovf/ovf2VmParams.py", line 283, in confFromOvf<o:p></= o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"> &= nbsp; &nbs= p; &= nbsp; &nbs= p; &= nbsp; &nbs= p; vmConf =3D toDict(ovf)<o:p></o:p></span></= p> <p class=3D"MsoNormal"><span lang=3D"EN-US"> &= nbsp; &nbs= p; &= nbsp; &nbs= p; &= nbsp; &nbs= p; File "/usr/lib/python2.7/site-packages/ovirt_host= ed_engine_ha/lib/ovf/ovf2VmParams.py", line 210, in toDict<o:p></o:p><= /span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"> &= nbsp; &nbs= p; &= nbsp; &nbs= p; &= nbsp; &nbs= p; vmParams['vmId'] =3D tree.find('Content/Se= ction').attrib[OVF_NS + 'id']<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"> &= nbsp; &nbs= p; &= nbsp; &nbs= p; &= nbsp; &nbs= p; File "lxml.etree.pyx", line 2272, in lxml.et= ree._Attrib.__getitem__ (src/lxml/lxml.etree.c:55336)<o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"> &= nbsp; &nbs= p; &= nbsp; &nbs= p; &= nbsp; &nbs= p; KeyError: '{http://schemas.dmtf.org/ovf/envelope/1/}id'<o:p></o:p>= </span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">ovirt-ha-agent ovirt_hosted_eng= ine_ha.agent.agent.Agent ERROR Trying to restart agent<o:p></o:p></span></p=
<p class=3D"MsoNormal"><span lang=3D"EN-US">ovirt-ha-agent ovirt_hosted_eng= ine_ha.agent.hosted_engine.HostedEngine ERROR Unable to refresh vm.conf fro= m the shared storage. Has this HE cluster correctly reached 3.6 level?<o:p>= </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">If anyone could give a hint on = where to look at would be very helpful. <o:p></o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span lang=3D"EN-US">Thank you, <o:p></o:p></span></= p> <p class=3D"MsoNormal"><span lang=3D"EN-US">Sven <o:p></o:p></span></p> </div> </body> </html> --_000_94c8a2d4a7c347269b1e642ba1690946epsaero_--

Hi, make sure you have at least ovirt-hosted-engine-ha-2.2.1 and the service was properly restarted. The situation you are describing can happen when you run older hosted engine agent with 4.2 ovirt-engine. It was tracked as: https://bugzilla.redhat.com/1518887 Best regards Martin Sivak On Fri, Mar 16, 2018 at 2:09 PM, Sven Achtelik <Sven.Achtelik@eps.aero> wrote:
Hi All,
after upgrading my engine to 4.2 and upgrading my hosts to the latest versions the HA for the hosted engine is not working anymore. The Agent fails with the following errors. Did I miss anything while upgrading ? The Engine is still running – what would be the correct approach to get the HA services up and running ?
ovirt-ha-agent ovirt_hosted_engine_ha.agent.agent.Agent ERROR Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/agent.py", line 191, in _run_agent
return action(he)
File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/agent.py", line 64, in action_proper
return he.start_monitoring()
File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py", line 421, in start_monitoring
self._config.refresh_vm_conf()
File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/env/config.py", line 496, in refresh_vm_conf
content_from_ovf = self._get_vm_conf_content_from_ovf_store()
File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/env/config.py", line 438, in _get_vm_conf_content_from_ovf_store
conf = ovf2VmParams.confFromOvf(heovf)
File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/ovf/ovf2VmParams.py", line 283, in confFromOvf
vmConf = toDict(ovf)
File "/usr/lib/python2.7/site-packages/ovirt_hosted_engine_ha/lib/ovf/ovf2VmParams.py", line 210, in toDict
vmParams['vmId'] = tree.find('Content/Section').attrib[OVF_NS + 'id']
File "lxml.etree.pyx", line 2272, in lxml.etree._Attrib.__getitem__ (src/lxml/lxml.etree.c:55336)
KeyError: '{http://schemas.dmtf.org/ovf/envelope/1/}id'
ovirt-ha-agent ovirt_hosted_engine_ha.agent.agent.Agent ERROR Trying to restart agent
ovirt-ha-agent ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine ERROR Unable to refresh vm.conf from the shared storage. Has this HE cluster correctly reached 3.6 level?
If anyone could give a hint on where to look at would be very helpful.
Thank you,
Sven
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (2)
-
Martin Sivak
-
Sven Achtelik