<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 17, 2016 at 8:28 AM, Michal Skrivanek <span dir="ltr"><<a target="_blank" href="mailto:michal.skrivanek@redhat.com">michal.skrivanek@redhat.com</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div style="word-wrap:break-word"><br><div><span class="gmail-"><blockquote type="cite"><div>On 27 Oct 2016, at 15:54, knarra <<a target="_blank" href="mailto:knarra@redhat.com">knarra@redhat.com</a>> wrote:</div><br class="gmail-m_-5765233784902841979Apple-interchange-newline"><div>
<div bgcolor="#FFFFFF"><p>Hi,</p><p> I have installed latest upstream master on RHEL7.2. When i
try to put a host in maintenance which runs HE vm i see that vm
does not get migrated to another host and host is stuck in
"preparing for maintenace" state. I see the following errors in
the vdsm.log . Can you please help me understand why this error is
seen? <br></p></div></div></blockquote><div><br></div></span>seems to be caused by OVS hook issue</div><div>update to latest and try again, if it’s still not working remove the ovs hook(s)</div></div></blockquote><div><br></div><div>This VM was created in a version that was missing the graphics parameter, so I do not think an upgrade will help.<br></div><div>Maybe shutting down the VM after the system upgrade may help, but that is not always practical.<br><br></div><div>The patch that aimed to fix this is this: <a href="https://gerrit.ovirt.org/#/c/64300">https://gerrit.ovirt.org/#/c/64300</a><br></div><div>Unfortunately it is stuck on review.<br><br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div style="word-wrap:break-word"><div><br><blockquote type="cite"><div><div><div class="gmail-h5"><div bgcolor="#FFFFFF"><p>
</p><p>
</p>
<ol style="font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">2016-10-27
16:40:22,742 ERROR (Thread-3293) [virt.vm]
(vmId='21e0e248-19bf-47b3-<wbr>b72f-6a3740d9ff43') Hook script
execution failed: internal error: Child process (LC_ALL=C PAT</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">H=/usr/local/sbin:/usr/local/<wbr>bin:/usr/sbin:/usr/bin
/etc/libvirt/hooks/qemu HostedEngine migrate begin -)
unexpected exit status 1: Traceback (most recent call last):</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/libexec/vdsm/vm_migrate_<wbr>hook.py", line 51, in main</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">
_process_domxml(tree)</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/libexec/vdsm/vm_migrate_<wbr>hook.py", line 80, in
_process_domxml</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">
_set_graphics(devices, target_vm_conf)</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/libexec/vdsm/vm_migrate_<wbr>hook.py", line 156, in
_set_graphics</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">
target_display_network, target_display_ip =
_vmconf_display(target_vm_<wbr>conf)</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/libexec/vdsm/vm_migrate_<wbr>hook.py", line 177, in
_vmconf_display</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">
raise VmMigrationHookError('VM conf graphics not detected')</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">VmMigrationHookError:
VM conf graphics not detected</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">Traceback
(most recent call last):</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/libexec/vdsm/vm_migrate_<wbr>hook.py", line 201, in
<module></div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">
main(*sys.argv[1:])</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/libexec/vdsm/vm_migrate_<wbr>hook.py", line 51, in main</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">
_process_domxml(tree)</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/libexec/vdsm/vm_migrate_<wbr>hoo (migration:261)</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">2016-10-27
16:40:22,757 ERROR (Thread-3293) [virt.vm]
(vmId='21e0e248-19bf-47b3-<wbr>b72f-6a3740d9ff43') Failed to
migrate (migration:390)</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">Traceback
(most recent call last):</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/share/vdsm/virt/<wbr>migration.py", line 372, in run</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">
self._<wbr>startUnderlyingMigration(time.<wbr>time())</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/share/vdsm/virt/<wbr>migration.py", line 447, in
_startUnderlyingMigration</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">
self._perform_with_downtime_<wbr>thread(duri, muri)</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/share/vdsm/virt/<wbr>migration.py", line 498, in
_perform_with_downtime_thread</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">
self._perform_migration(duri, muri)</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/share/vdsm/virt/<wbr>migration.py", line 485, in
_perform_migration</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">
self._vm._dom.migrateToURI3(<wbr>duri, params, flags)</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/lib/python2.7/site-<wbr>packages/vdsm/virt/virdomain.<wbr>py",
line 69, in f</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> ret
= attr(*args, **kwargs)</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/lib/python2.7/site-<wbr>packages/vdsm/<wbr>libvirtconnection.py",
line 123, in wrapper</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> ret
= f(*args, **kwargs)</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/lib/python2.7/site-<wbr>packages/vdsm/utils.py", line 899, in
wrapper</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">
return func(inst, *args, **kwargs)</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/lib64/python2.7/site-<wbr>packages/libvirt.py", line 1836, in
migrateToURI3</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">:</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> if
ret == -1: raise libvirtError ('virDomainMigrateToURI3()
failed', dom=self)</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">libvirtError:
Hook script execution failed: internal error: Child process
(LC_ALL=C
PATH=/usr/local/sbin:/usr/<wbr>local/bin:/usr/sbin:/usr/bin
/etc/libvirt/hooks/qemu HostedEngine migrate begin -)
unexpected exit status 1: Traceback (most recent call last):</div>
</li>
<li style="font-weight:normal;vertical-align:top;background:rgb(240,240,240) none repeat scroll 0% 0%">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/libexec/vdsm/vm_migrate_<wbr>hook.py", line 51, in main</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">
_process_domxml(tree)</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/libexec/vdsm/vm_migrate_<wbr>hook.py", line 80, in
_process_domxml</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">
_set_graphics(devices, target_vm_conf)</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/libexec/vdsm/vm_migrate_<wbr>hook.py", line 156, in
_set_graphics</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">
target_display_network, target_display_ip =
_vmconf_display(target_vm_<wbr>conf)</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/libexec/vdsm/vm_migrate_<wbr>hook.py", line 177, in
_vmconf_display</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">
raise VmMigrationHookError('VM conf graphics not detected')</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">VmMigrationHookError:
VM conf graphics not detected</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">Traceback
(most recent call last):</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/libexec/vdsm/vm_migrate_<wbr>hook.py", line 201, in
<module></div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">
main(*sys.argv[1:])</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/libexec/vdsm/vm_migrate_<wbr>hook.py", line 51, in main</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%">
_process_domxml(tree)</div>
</li>
<li style="font-weight:normal;vertical-align:top">
<div style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:1em;line-height:1.2em;font-family:monospace;margin:0px;padding:0px;vertical-align:top;background:transparent none repeat scroll 0% 0%"> File
"/usr/libexec/vdsm/vm_migrate_<wbr>hoo</div>
</li>
</ol><p>Thanks</p><p>kasturi.<br>
</p>
</div></div></div>
______________________________<wbr>_________________<br>Users mailing list<br><a target="_blank" href="mailto:Users@ovirt.org">Users@ovirt.org</a><br><a target="_blank" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br></div></blockquote></div><br></div><br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a target="_blank" rel="noreferrer" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>