<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br> <BR><div>> Date: Mon, 29 Jul 2013 09:56:30 +0200<br>> From: mkletzan@redhat.com<br>> To: danken@redhat.com<br>> CC: cybertimber2000@hotmail.com; users@ovirt.org<br>> Subject: Re: [Users] oVirt 3.2 - Migration failed due to error: migrateerr<br>> <br>> On 07/27/2013 09:50 PM, Dan Kenigsberg wrote:<br>> > On Fri, Jul 26, 2013 at 02:03:28PM -0400, Nicholas Kesick wrote:<br>> >>> Date: Fri, 26 Jul 2013 05:52:44 +0300<br>> >>> From: iheim@redhat.com<br>> >>> To: cybertimber2000@hotmail.com<br>> >>> CC: danken@redhat.com; users@ovirt.org<br>> >>> Subject: Re: [Users] oVirt 3.2 - Migration failed due to error: migrateerr<br>> >>><br>> >>> On 07/26/2013 05:40 AM, Nicholas Kesick wrote:<br>> >>>><br>> >>>> Replies inline.<br>> >>>> > Date: Thu, 25 Jul 2013 22:27:17 +0300<br>> >>>> > From: danken@redhat.com<br>> >>>> > To: cybertimber2000@hotmail.com<br>> >>>> > CC: users@ovirt.org<br>> >>>> > Subject: Re: [Users] oVirt 3.2 - Migration failed due to error:<br>> >>>> migrateerr<br>> >>>> ><br>> >>>> > On Thu, Jul 25, 2013 at 11:54:40AM -0400, Nicholas Kesick wrote:<br>> >>>> > > When I try to migrate a VM, any VM, between my two hosts, I receive<br>> >>>> an error that says Migration failed due to error: migrateerr. Looking in<br>> >>>> the log I don't see any thing that jumps out other than the final message<br>> >>>> > ><br>> >>>> > > VDSGenericException: VDSErrorException: Failed to MigrateStatusVDS,<br>> >>>> error = Fatal error during migration<br>> >>>> > ><br>> >>>> > > Ovirt-engine is version 3.2.2-1.1.fc18.noarch, firewalld is<br>> >>>> disabled, and selinux is permissive.<br>> >>>> ><br>> >>>> > Please do not say this in public, you're hurting Dan Walsh's feelings ;-)<br>> >>>> ><br>> >>>> I recall seeing his blog posts, and I agree. Not sure when I set it to<br>> >>>> permissive... maybe to get the 3.2 install w/ Firewalld setup to<br>> >>>> complete? I remember that was fixed in 3.2.1. I'll set it back to enforcing.<br>> >>>> > ><br>> >>>> > > ovirt-node version is 2.6.1 on both hosts.<br>> >>>> > ><br>> >>>> > > Any suggestions would be welcome!<br>> >>>> > ><br>> >>>> ><br>> >>>> > I'd love to see /etc/vdsm/vdsm.log from source and destination. The<br>> >>>> > intersting parts start with vmMigrate at the source and with<br>> >>>> > vmMigrationCreate at the destination.<br>> >>>> Hmm, I probably should have pulled that sooner. So, I cleared the active<br>> >>>> VDSM (while nothing was running) and libvirtd.log, booted one vm, and<br>> >>>> tried to migrate it. Attached are the logs. It looks like it boils down<br>> >>>> to (from the source):<br>> >>>> Traceback (most recent call last):<br>> >>>> File "/usr/share/vdsm/vm.py", line 271, in run<br>> >>>> File "/usr/share/vdsm/libvirtvm.py", line 505, in<br>> >>>> _startUnderlyingMigration<br>> >>>> File "/usr/share/vdsm/libvirtvm.py", line 541, in f<br>> >>>> File "/usr/lib64/python2.7/site-packages/vdsm/libvirtconnection.py",<br>> >>>> line 111, in wrapper<br>> >>>> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1178, in<br>> >>>> migrateToURI2<br>> >>>> libvirtError: internal error Attempt to migrate guest to the same host<br>> >>>> localhost<br>> >>>> Does this mean my UUIDs are the same?<br>> >>>> http://vaunaspada.babel.it/blog/?p=613<br>> >>>> As far as the destination, I'm really not understanding what's going on<br>> >>>> on the destination between "Destination VM creation succeeded" and<br>> >>>> ":destroy Called" that would lead to it failing, except for what's after<br>> >>>> the traceback:<br>> >>>> Traceback (most recent call last):<br>> >>>> File "/usr/share/vdsm/vm.py", line 696, in _startUnderlyingVm<br>> >>>> File "/usr/share/vdsm/libvirtvm.py", line 1907, in<br>> >>>> _waitForIncomingMigrationFinish<br>> >>>> File "/usr/lib64/python2.7/site-packages/vdsm/libvirtconnection.py",<br>> >>>> line 111, in wrapper<br>> >>>> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2822, in<br>> >>>> lookupByUUIDString<br>> >>>> libvirtError: Domain not found: no domain with matching uuid<br>> >>>> '50171e1b-cf21-41d8-80f3-88ab1b980091'<br>> >>>> But that is the ID of the VM by the looks of it.<br>> >>>> Sorry Itamar, nothing was written to libvirtd.log after I cleared it.<br>> > <br>> > It could be that libvirtd is still writing to the files that you removed<br>> > from the filesystem. To make sure libvirtd writes to your new file,<br>> > restart the service. There may be clues there on why libvirt thinks that<br>> > the source and destination are one and the same.<br>> > <br>> <br>> When clearing the logs, it should be enough to do '><br>> /path/to/libvirtd.log' (in bash).<br>> </div><div>Just checked and it seems some things were logged in there during my testing on Friday. I'll attach those.<br>> >>><br>> >>> Thread-800::ERROR::2013-07-26 01:57:16,198::vm::198::vm.Vm::(_recover) <br>> >>> vmId=`50171e1b-cf21-41d8-80f3-88ab1b980091`::internal error Attempt to <br>> >>> migrate guest to the same host localhost<br>> >>> Thread-800::ERROR::2013-07-26 01:57:16,377::vm::286::vm.Vm::(run) <br>> >>> vmId=`50171e1b-cf21-41d8-80f3-88ab1b980091`::Failed to migrate<br>> >>> Traceback (most recent call last):<br>> >>> File "/usr/share/vdsm/vm.py", line 271, in run<br>> >>> File "/usr/share/vdsm/libvirtvm.py", line 505, in <br>> >>> _startUnderlyingMigration<br>> >>> File "/usr/share/vdsm/libvirtvm.py", line 541, in f<br>> >>> File "/usr/lib64/python2.7/site-packages/vdsm/libvirtconnection.py", <br>> >>> line 111, in wrapper<br>> >>> File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1178, in <br>> >>> migrateToURI2<br>> >>> libvirtError: internal error Attempt to migrate guest to the same host <br>> >>> localhost<br>> >>><br>> >>> what are your hostnames?<br>> >><br>> >> "host001" on 192.168.0.103 and "host002" on 192.168.0.104<br>> >> Even tried changing it, no luck.<br>> >><br>> <br>> Are they resolving properly on those hosts? Is there a DNS or<br>> /etc/hosts entry related to this?<br>> </div><div>There are /etc/hosts entries on both hosts to each other, and a "ping host001" "ping host002" resolves correctly.</div><div>I do however note that the terminal session says <a href="mailto:root@localhost">root@localhost</a>. I wonder if running hostnamectl set-hostname {name} will fix anything.</div><div> </div><div>...and after running hostnamectl set-hostname {name}, migrations are working! I think maybe I found a bug:</div><div>With the node in maintenance mode, from the oVirt Node (SSH or local) if you go to Network, change the hostname ({newname}), and then go down to the configured System NIC and press enter, it says it is Setting Hostname. Now, if you press F2, the terminal will show <a href="mailto:root@{newname">root@{newname</a>}. If you reboot however, under network it will say {newname}, but pressing F2 for the terminal will show <a href="mailto:root@localhost. If">root@localhost. If</a> it's localhost, it won't migrate.</div><div>So, it looks like the hostname isn't getting written persistantly. Even a hostnamectl set-hostname {name} gets lost on reboot. Or am I doing something wrong?</div><div><br>> >> Could it be because the oVirt Node - Network tab - does not have any DNS servers specified?<br>> > <br>> > I do not think so. We do not see "name resolution" errors, or name<br>> > resolutions at all.<br>> > <br>> > What does libvirt (src + dst) say about<br>> > <br>> > virsh -r capabilities|grep uuid<br>> > <br>> > ? If uuids happen to be the same, you get the bug that you are<br>> > reporting.<br>> > </div><div>host 001:</div><div>virsh -r capabilities|grep uuid<br> <uuid>a4dc7de7-e2d3-45f5-b75a-7101f71d2b17</uuid></div><div> </div><div>host002:<br>virsh -r capabilities|grep uuid<br> <uuid>ce66bb7f-fbbb-432b-9f62-5bcf5cb732e4</uuid></div><div><br>> <br>> Although, as Dan says, having the same UUID for both hosts will report<br>> the same error even when hostnames are different.<br>> <br>> Do you have an UUID set in your libvirtd.conf? What do you have in the<br>> following files (if they exist) on both hosts?<br>> <br>> /sys/devices/virtual/dmi/id/product_uuid</div><div>host001:</div><div>cat /sys/devices/virtual/dmi/id/product_uuid<br>44454C4C-3700-1047-8048-C3C04F4C4631</div><div> </div><div>host002:</div><div>cat /sys/devices/virtual/dmi/id/product_uuid<br>44454C4C-5900-1054-8034-B3C04F4E4631</div><div> </div><div>Those match what I see on the webadmin under hosts > hostname > hardware information<br></div><div><br>> /sys/class/dmi/id/product_uuid</div><div>host001:</div><div>cat /sys/class/dmi/id/product_uuid<br>44454C4C-3700-1047-8048-C3C04F4C4631</div><div> </div><div>host002:<br>cat /sys/class/dmi/id/product_uuid<br>44454C4C-5900-1054-8034-B3C04F4E4631<br><br>> <br>> Martin<br></div>                                            </div></body>
</html>