RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 589864 - [RHEL6]: Migration failure with error 'internal error canonical hostname pointed to localhost'
Summary: [RHEL6]: Migration failure with error 'internal error canonical hostname poin...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.0
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Chris Lalancette
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 580827 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-05-07 07:01 UTC by dyuan
Modified: 2010-11-11 14:48 UTC (History)
12 users (show)

Fixed In Version: libvirt-0_8_1-8_el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-11 14:48:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description dyuan 2010-05-07 07:01:14 UTC
Description of problem:
If the hostname is added to 127.0.0.1, this will break things like libvirt live migration.


Version-Release number of selected component (if applicable):
NetworkManager-0.8.0-6.git20100408.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. when the /etc/hosts like this, live migration works fine:
# more /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

2. install the 'NetworkManager'
# yum install NetworkManager
# rpm -qa|grep NetworkManager
NetworkManager-gnome-0.8.0-6.git20100408.el6.x86_64
NetworkManager-0.8.0-6.git20100408.el6.x86_64
NetworkManager-glib-0.8.0-6.git20100408.el6.x86_64

3. check /etc/hosts again after system reboot
# reboot
# more /etc/hosts
127.0.0.1   dhcp-66-70-12.nay.redhat.com localhost.localdomain localhost
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

It leads to failure of migrate, refer to :
Bug 580827 - Migrate fail with error 'internal error canonical hostname pointed to localhost '

4. erase 'NetworkManager'
# yum erase NetworkManager

5. edit the /etc/hosts like this:
# more /etc/hosts
#127.0.0.1  dhcp-66-70-12.nay.redhat.com localhost.localdomain localhost
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

6. check /etc/hosts again after system reboot
# reboot
# more /etc/hosts
#127.0.0.1  dhcp-66-70-12.nay.redhat.com localhost.localdomain localhost
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6    

Actual results:

NetworkManager add the hostname to 127.0.0.1, lead to a failure of migration.

Expected results:

NetworkManager should not add the hostname to 127.0.0.1.

Additional info:
There are some bugs about the hostname being added to 127.0.0.1 by Anaconda.
Bug 529898  - Anaconda should not add the FQDN as 127.0.0.1
Bug 530343  - Anaconda should not add the FQDN as 127.0.0.1
Bug 555748  - Hostname mapped to 127.0.0.1 in /etc/hosts breaks rpc.svcgssd
Bug 506384  - Anaconda does not add hostname to /etc/hosts file

Comment 2 RHEL Program Management 2010-05-07 09:04:52 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 4 Ray Strode [halfline] 2010-05-12 18:57:28 UTC
I talked to clalance about this today, and the conclusion is this is actually a libvirt bug.

reassigning

Comment 5 Dan Williams 2010-05-12 18:58:41 UTC
If /etc/hosts contains the hostname on any other line than one including 127.0.0.1, NetworkManager will not add the hostname to a 127.0.0.1 line.  But your hostname *must* map to something (either in /etc/hosts or via DNS), otherwise quite a few other things like X and ssh will break...

Comment 7 Chris Lalancette 2010-05-14 13:52:52 UTC
*** Bug 580827 has been marked as a duplicate of this bug. ***

Comment 8 Chris Lalancette 2010-05-14 21:16:35 UTC
Yuan Dan,
     After discussing this problem with the NetworkManager people and other userspace people, it seems that this is actually a bug in libvirt.  I've come up with a patch which should help the situation; I've uploaded it to:

http://people.redhat.com/clalance/bz589864

Can you test this package out on a machine which still has the migration problem, and see if it fixes it for you?

Thanks,
Chris Lalancette

Comment 9 dyuan 2010-05-17 02:13:34 UTC
The same error as Bug 580827 after installed the following 5 packages on both machines in http://people.redhat.com/clalance/bz589864/
libvirt-0.8.1-3bz591661.el6.x86_64.rpm            
libvirt-devel-0.8.1-3bz591661.el6.x86_64.rpm
libvirt-client-0.8.1-3bz591661.el6.x86_64.rpm     
libvirt-python-0.8.1-3bz591661.el6.x86_64.rpm
libvirt-debuginfo-0.8.1-3bz591661.el6.x86_64.rpm

# rpm -qa|grep libvirt
libvirt-python-0.8.1-3bz591661.el6.x86_64
libvirt-java-devel-0.4.2-2.el6.noarch
libvirt-devel-0.8.1-3bz591661.el6.x86_64
libvirt-client-0.8.1-3bz591661.el6.x86_64
libvirt-java-0.4.2-2.el6.noarch
libvirt-debuginfo-0.8.1-3bz591661.el6.x86_64
libvirt-0.8.1-3bz591661.el6.x86_64

restart NetworkManager on both source and target machines.
# service NetworkManager restart

on target machine:
# more /etc/hosts
10.66.70.12	dhcp-66-70-12.nay.redhat.com	localhost.localdomain   localhost
127.0.0.1	dhcp-66-70-12.nay.redhat.com	localhost.localdomain	localhost
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

on source machine:
# more /etc/hosts
10.66.70.12	dhcp-66-70-12.nay.redhat.com	localhost.localdomain   localhost
127.0.0.1	dhcp-66-70-43.nay.redhat.com	localhost.localdomain	localhost
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

# virsh migrate --live mig qemu+ssh://10.66.70.12/system
root.70.12's password: 
error: internal error canonical hostname pointed to localhost, but this is not allowed

Comment 10 Chris Lalancette 2010-05-17 14:19:05 UTC
(In reply to comment #9)
> # virsh migrate --live mig qemu+ssh://10.66.70.12/system
> root.70.12's password: 
> error: internal error canonical hostname pointed to localhost, but this is not
> allowed    

Hm, that doesn't seem right, we aren't even calling that function anymore.  Did you restart libvirtd on both the source and destination after upgrading the packages?  If not, then that's the problem.  Please restart libvirtd on both and re-test.

Thanks,
Chris Lalancette

Comment 11 dyuan 2010-05-18 07:22:42 UTC
1. erase current version
# yum erase libvirt libvirt-client

2. install from http://people.redhat.com/clalance/bz589864/
# ls 
libvirt-0.8.1-3bz591661.el6.x86_64.rpm
libvirt-client-0.8.1-3bz591661.el6.x86_64.rpm
libvirt-debuginfo-0.8.1-3bz591661.el6.x86_64.rpm
libvirt-devel-0.8.1-3bz591661.el6.x86_64.rpm
libvirt-python-0.8.1-3bz591661.el6.x86_64.rpm

# rpm -i libvirt*

3. restart libvirtd
# service libvirtd restart
Stopping libvirtd daemon:                                  [Failed]
Starting libvirtd daemon:                                  [  OK  ]

4. execute migrate
# virsh migrate --live mig qemu+ssh://10.66.70.12/system
root.70.12's password: 
error: internal error canonical hostname pointed to localhost, but this is not allowed

5. reboot system
# reboot

# rpm -qa|grep libvirt
libvirt-0.8.1-3bz591661.el6.x86_64
libvirt-client-0.8.1-3bz591661.el6.x86_64
libvirt-devel-0.8.1-3bz591661.el6.x86_64
libvirt-debuginfo-0.8.1-3bz591661.el6.x86_64
libvirt-python-0.8.1-3bz591661.el6.x86_64

# service libvirtd status
libvirtd (pid  2855) is running...

# service libvirtd restart
Stopping libvirtd daemon:                                  [  OK  ]
Starting libvirtd daemon:                                  [  OK  ]

# virsh migrate --live mig qemu+ssh://10.66.70.12/system
root.70.12's password: 
error: internal error canonical hostname pointed to localhost, but this is not allowed

Comment 12 Chris Lalancette 2010-05-19 14:59:44 UTC
I'm very sorry.  I uploaded the wrong RPM's to that location.  I couldn't understand why we were still getting the same error message until I noticed that the names on the packages were:

libvirt-0.8.1-3bz591661.el6.x86_64

So I apologize.  I've now uploaded what should be the correct packages to:

http://people.redhat.com/clalance/bz589864/

Could you re-test with those?

Thanks,
Chris Lalancette

Comment 13 dyuan 2010-05-20 11:11:43 UTC
Test with libvirt-0.8.1-3bz591661.el6.x86_64

no error 'error: internal error canonical hostname pointed to localhost, but this is not allowed' output , but the guest seems dead after migration, cannot respond any input.

Comment 14 dyuan 2010-05-20 11:14:27 UTC
(In reply to comment #13)
> Test with libvirt-0.8.1-3bz591661.el6.x86_64
> 
> no error 'error: internal error canonical hostname pointed to localhost, but
> this is not allowed' output , but the guest seems dead after migration, cannot
> respond any input.    

I will track the issue in bug 578889 using the latest version of libvirt-0.8.1-6.el6.
Bug 578889 - QEMU security driver kills disk access after migration

Comment 15 Chris Lalancette 2010-05-20 14:27:18 UTC
(In reply to comment #13)
> Test with libvirt-0.8.1-3bz591661.el6.x86_64
> 
> no error 'error: internal error canonical hostname pointed to localhost, but
> this is not allowed' output , but the guest seems dead after migration, cannot
> respond any input.    

Great!  The fact that the guest can't respond is a different bug (as you point out); libvirt is done with it by that time.  So this means that my patch to fix the libvirt portion of it at least works around the problem, even if it is not the greatest solution.  I'll get it queued up for RHEL.

Thanks,
Chris Lalancette

Comment 16 Chris Lalancette 2010-05-20 21:04:26 UTC
Oops.  While discussing it upstream, it seems like we want to make some changes to the actual patch.  I have one more libvirt package for you to test:

http://people.redhat.com/clalance/bz589864-bz591839/

Can you please verify that it still fixes the problem for you?

Thank you,
Chris Lalancette

Comment 17 dyuan 2010-05-21 02:14:57 UTC
I install the packages on 2 machines, one does work fine, but another doesnot.

libvirtd dead after start it for a while.

# cat /var/log/messages
May 21 10:05:07 dhcp-66-70-43 kernel: libvirtd[3730]: segfault at 100000004 ip 0000000100000004 sp 00007f1ea5c79cd0 error 14 in ld-2.12.so[3321400000+1e000]
May 21 10:05:09 dhcp-66-70-43 abrt[3774]: saved core dump of pid 3726 (/usr/sbin/libvirtd) to /var/cache/abrt/ccpp-1274407507-3726.new/coredump (90828800 bytes)
May 21 10:05:09 dhcp-66-70-43 abrtd: Directory 'ccpp-1274407507-3726' creation detected
May 21 10:05:09 dhcp-66-70-43 abrtd: Package 'libvirt' isn't signed with proper key
May 21 10:05:09 dhcp-66-70-43 abrtd: Corrupted or bad crash /var/cache/abrt/ccpp-1274407507-3726 (res:5), deleting

Comment 18 Chris Lalancette 2010-05-21 13:58:58 UTC
Hm, that's unfortunate.  Even worse is that it looks like abrtd deleted the core after it was done :(.  I took a look at the code and I can't see where my new code would cause a crash, so I am sort of at a loss here.  Here's what I would suggest:

1)  On the machine that had the problem, edit /etc/abrt/abrt.conf and set OpenGPGCheck = "no".  Hopefully that will keep abrtd from deleting the core next time.  Remember to restart abrtd after making this change.

2)  Install the libvirt -debuginfo package from the link above (I've now uploaded the debuginfo there).

3)  Run the test again; hopefully abrtd will collect the crash in something like /var/cache/abrt/ccpp-<number>/coredump

4)  Run "gdb /usr/sbin/libvirtd /var/cache/abrt/ccpp-<number>/coredump"

5)  Run "thread apply all bt".

Then give me the output from step 5).

That should hopefully give me a stack trace of where things failed, so I can debug it further.

Thanks,
Chris Lalancette

Comment 19 dyuan 2010-05-24 05:25:22 UTC
(gdb) thread apply all bt

Thread 7 (Thread 10564):
#0  0x000000332240b3bc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00000000004331f6 in virCondWait ()
#2  0x0000000000419a65 in qemudWorker ()
#3  0x0000003322407761 in start_thread () from /lib64/libpthread.so.0
#4  0x0000003321ce14fd in clone () from /lib64/libc.so.6

Thread 6 (Thread 10559):
#0  0x0000003322407fbd in pthread_join () from /lib64/libpthread.so.0
#1  0x000000000041cc03 in main ()

Thread 5 (Thread 10565):
#0  0x000000332240b3bc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00000000004331f6 in virCondWait ()
#2  0x0000000000419a65 in qemudWorker ()
#3  0x0000003322407761 in start_thread () from /lib64/libpthread.so.0
#4  0x0000003321ce14fd in clone () from /lib64/libc.so.6

Thread 4 (Thread 10563):
#0  0x000000332240b3bc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00000000004331f6 in virCondWait ()
#2  0x0000000000419a65 in qemudWorker ()
#3  0x0000003322407761 in start_thread () from /lib64/libpthread.so.0
#4  0x0000003321ce14fd in clone () from /lib64/libc.so.6

Thread 3 (Thread 10560):
#0  0x0000003321cd7e03 in poll () from /lib64/libc.so.6
#1  0x0000000000416bf5 in virEventRunOnce ()
#2  0x0000000000418b46 in qemudOneLoop ()
#3  0x0000000000418e13 in qemudRunLoop ()
---Type <return> to continue, or q <return> to quit---
#4  0x0000003322407761 in start_thread () from /lib64/libpthread.so.0
#5  0x0000003321ce14fd in clone () from /lib64/libc.so.6

Thread 2 (Thread 10562):
#0  0x000000332240b3bc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00000000004331f6 in virCondWait ()
#2  0x0000000000419a65 in qemudWorker ()
#3  0x0000003322407761 in start_thread () from /lib64/libpthread.so.0
#4  0x0000003321ce14fd in clone () from /lib64/libc.so.6

Thread 1 (Thread 10561):
#0  0x0000003321d108e3 in xdr_string_internal () from /lib64/libc.so.6
#1  0x000000000042b05e in xdr_remote_nonnull_string ()
#2  0x0000003321d11f70 in xdr_reference_internal () from /lib64/libc.so.6
#3  0x0000003321d11f31 in xdr_pointer () from /lib64/libc.so.6
#4  0x000000000042ac33 in xdr_remote_string ()
#5  0x000000000042ae69 in xdr_remote_open_args ()
#6  0x0000000000428347 in remoteDispatchClientCall ()
#7  0x0000000000428823 in remoteDispatchClientRequest ()
#8  0x0000000000419af8 in qemudWorker ()
#9  0x0000003322407761 in start_thread () from /lib64/libpthread.so.0
#10 0x0000003321ce14fd in clone () from /lib64/libc.so.6
(gdb)

Comment 20 dyuan 2010-05-24 05:43:26 UTC
reproduce it through the following simple command:

# virsh list --all
 Id Name                 State
----------------------------------

# virsh list --all
 Id Name                 State
----------------------------------
#####list --all show nothing but no error reported.

# virsh pool-list --all
Name                 State      Autostart 
-----------------------------------------

# virsh pool-list --all
error: server closed connection: 
error: failed to connect to the hypervisor
#####pool-list will lead to the libvirtd dead.
  
the correct result should be like this:
# virsh list --all
 Id Name                 State
----------------------------------
  - demo                 shut off

# virsh pool-list --all
Name                 State      Autostart 
-----------------------------------------
default              active     yes     

additional info:

# virsh pool-list --all
13:44:04.727: debug : virInitialize:341 : register drivers
13:44:04.727: debug : virRegisterDriver:929 : registering Test as driver 0
13:44:04.727: debug : virRegisterNetworkDriver:735 : registering Test as network driver 0
13:44:04.727: debug : virRegisterInterfaceDriver:766 : registering Test as interface driver 0
13:44:04.727: debug : virRegisterStorageDriver:797 : registering Test as storage driver 0
13:44:04.727: debug : virRegisterDeviceMonitor:828 : registering Test as device driver 0
13:44:04.727: debug : virRegisterSecretDriver:859 : registering Test as secret driver 0
13:44:04.727: debug : virRegisterNWFilterDriver:890 : registering Test as network filter driver 0
13:44:04.727: debug : virRegisterDriver:929 : registering ESX as driver 1
13:44:04.727: debug : virRegisterInterfaceDriver:766 : registering ESX as interface driver 1
13:44:04.727: debug : virRegisterNetworkDriver:735 : registering ESX as network driver 1
13:44:04.727: debug : virRegisterStorageDriver:797 : registering ESX as storage driver 1
13:44:04.728: debug : virRegisterDeviceMonitor:828 : registering ESX as device driver 1
13:44:04.728: debug : virRegisterSecretDriver:859 : registering ESX as secret driver 1
13:44:04.728: debug : virRegisterNWFilterDriver:890 : registering ESX as network filter driver 1
13:44:04.728: debug : virRegisterDriver:929 : registering remote as driver 2
13:44:04.728: debug : virRegisterNetworkDriver:735 : registering remote as network driver 2
13:44:04.728: debug : virRegisterInterfaceDriver:766 : registering remote as interface driver 2
13:44:04.728: debug : virRegisterStorageDriver:797 : registering remote as storage driver 2
13:44:04.728: debug : virRegisterDeviceMonitor:828 : registering remote as device driver 2
13:44:04.728: debug : virRegisterSecretDriver:859 : registering remote as secret driver 2
13:44:04.728: debug : virRegisterNWFilterDriver:890 : registering remote as network filter driver 2
13:44:04.728: debug : virConnectOpenAuth:1471 : name=(null), auth=0x7fee59515ac0, flags=0
13:44:04.728: debug : do_open:1208 : no name, allowing driver auto-select
13:44:04.728: debug : do_open:1216 : trying driver 0 (Test) ...
13:44:04.728: debug : do_open:1222 : driver 0 Test returned DECLINED
13:44:04.728: debug : do_open:1216 : trying driver 1 (ESX) ...
13:44:04.728: debug : do_open:1222 : driver 1 ESX returned DECLINED
13:44:04.728: debug : do_open:1216 : trying driver 2 (remote) ...
13:44:04.728: debug : remoteOpen:1093 : Auto-probe remote URI
13:44:04.728: debug : doRemoteOpen:570 : proceeding with name = 
13:44:04.728: debug : remoteIO:9748 : Do proc=66 serial=0 length=28 wait=(nil)
13:44:04.728: debug : remoteIO:9823 : We have the buck 66 0x7fee532ca010 0x7fee532ca010
13:44:04.728: debug : remoteIODecodeMessageLength:9179 : Got length, now need 64 total (60 more)
13:44:04.728: debug : remoteIOEventLoop:9674 : Giving up the buck 66 0x7fee532ca010 (nil)
13:44:04.728: debug : remoteIO:9854 : All done with our call 66 (nil) 0x7fee532ca010
13:44:04.728: debug : remoteIO:9748 : Do proc=1 serial=1 length=40 wait=(nil)
13:44:04.728: debug : remoteIO:9823 : We have the buck 1 0x2184cc0 0x2184cc0
13:44:05.832: debug : remoteIOEventLoop:9695 : Giving up the buck due to I/O error 1 0x2184cc0 (nil)
13:44:05.832: debug : do_open:1222 : driver 2 remote returned ERROR
13:44:05.832: debug : virUnrefConnect:294 : unref connection 0x2181730 1
13:44:05.832: debug : virReleaseConnect:249 : release connection 0x2181730
error: server closed connection: 
error: failed to connect to the hypervisor

Comment 21 Chris Lalancette 2010-05-24 19:55:52 UTC
(In reply to comment #20)
> reproduce it through the following simple command:
> 
> # virsh list --all
>  Id Name                 State
> ----------------------------------
> 
> # virsh list --all
>  Id Name                 State
> ----------------------------------
> #####list --all show nothing but no error reported.
> 
> # virsh pool-list --all
> Name                 State      Autostart 
> -----------------------------------------
> 
> # virsh pool-list --all
> error: server closed connection: 
> error: failed to connect to the hypervisor
> #####pool-list will lead to the libvirtd dead.

Hm, unfortunately I wasn't able to reproduce this failure.  Every time I do virsh list or virsh pool-list, it does the correct thing.  I probably have some configuration on my machine different than yours, which is causing the discrepancy.  Can you either:

1)  Give me access to this machine? (I'll need the IP address and root password), or
2)  Upload the abrtd core you've collected somewhere, so I can take a look at what caused the crash.

Thanks,
Chris Lalancette

Comment 23 Chris Lalancette 2010-05-25 13:12:41 UTC
OK, thanks for the access information.  With that, I was able to log in and poke around.  I think the problem ended up being that I built the package locally on one of my test boxes and not in brew (which was having problems at the time).  With the original package I gave you, running your reproducer in Comment #20 caused the crash.  I then rebuilt the same package in brew (which is now working), installed it on your machine, and it seems to be working now.

If you could now try to test out the original problem here (which is the live migration problem), that would be great.

Thanks again,
Chris Lalancette

Comment 24 dyuan 2010-05-26 02:11:59 UTC
Re-test the live migration with the packages(from http://people.redhat.com/clalance/bz589864-bz591839/) again, it does work fine, of course the hostname have been added to 127.0.0.1 :-)


Yuan Dan

Comment 25 Chris Lalancette 2010-05-26 12:25:31 UTC
(In reply to comment #24)
> Re-test the live migration with the packages(from
> http://people.redhat.com/clalance/bz589864-bz591839/) again, it does work fine,
> of course the hostname have been added to 127.0.0.1 :-)

Perfect, thank you very much!

Chris Lalancette

Comment 26 Chris Lalancette 2010-05-26 13:10:28 UTC
This is now upstream as:

0117b7da68fdb7435655318881fc925d43396e26

Chris Lalancette

Comment 27 IBM Bug Proxy 2010-05-26 17:21:40 UTC
------- Comment From edpollar.com 2010-05-26 13:05 EDT-------
reverse mirror of RHBZ589864 - [RHEL6]: Migration failure with error 'internal error canonical hostname pointed to localhost'

https://bugzilla.redhat.com/show_bug.cgi?id=589864

Comment 28 Dave Allan 2010-06-10 21:32:14 UTC
libvirt-0_8_1-8_el6 has been built in RHEL-6-candidate with the fix.

Dave

Comment 29 IBM Bug Proxy 2010-06-11 15:11:05 UTC
------- Comment From tpnoonan.com 2010-06-11 11:10 EDT-------
will be in snapshot7, may be in prebeta2 build

Comment 30 dyuan 2010-06-12 06:28:59 UTC
verified PASSED with libvirt-0.8.1-8.el6.

Comment 31 IBM Bug Proxy 2010-06-16 12:40:41 UTC
------- Comment From dkalaker.com 2010-06-16 08:31 EDT-------
> verified PASSED with libvirt-0.8.1-8.el6.

Hello Redhat,

I have verified the migration on rhel6 pre beta2 with the network manager installed and the migration works fine.

Thanks!!!
Deepti.

Comment 32 IBM Bug Proxy 2010-06-22 21:20:42 UTC
------- Comment From edpollar.com 2010-06-22 17:16 EDT-------
looks like this has been tested both at IBM and Red Hat. I am going to set it to closed, if ther eis a problem we can reopen.

Comment 34 Nan Zhang 2010-09-09 09:46:40 UTC
Verified with libvirt-0.8.1-27.el6.x86_64 & qemu-kvm-0.12.1.2-2.113.el6.x86_64.

On source:
# cat /etc/hosts
10.66.93.181	dhcp-93-181.nay.redhat.com	dhcp-93-181	# Added by NetworkManager
127.0.0.1	localhost.localdomain	localhost
::1	dhcp-93-181.nay.redhat.com	dhcp-93-181	localhost6.localdomain6	localhost6
# service NetworkManager restart
Stopping NetworkManager daemon:                            [  OK  ]
Setting network parameters...                              [  OK  ]
Starting NetworkManager daemon:                            [  OK  ]
# virsh start rhel6
Domain rhel6 started

# virsh list --all
 Id Name                 State
----------------------------------
  1 rhel6                running

# virsh migrate --live rhel6 qemu+ssh://10.66.65.186/system
root.65.186's password:

On target:
# cat /etc/hosts
10.66.65.186	dhcp-65-186.nay.redhat.com	# Added by NetworkManager
127.0.0.1	localhost.localdomain	localhost
::1	dhcp-65-186.nay.redhat.com	localhost6.localdomain6	localhost6
# service NetworkManager restart
Stopping NetworkManager daemon:                            [  OK  ]
Setting network parameters...                              [  OK  ]
Starting NetworkManager daemon:                            [  OK  ]
# virsh list
 Id Name                 State
----------------------------------
  4 rhel6                running

Comment 35 releng-rhel@redhat.com 2010-11-11 14:48:45 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.