[Openstack] 回复: Nova live-migration failed(libvirt Connection refused)

董建华 dongjh at nci.com.cn
Mon Oct 28 08:40:18 UTC 2013

After making the following changes, the libvirtd daemon failed to start... but if i remove "-f /etc/libvirt/libvirtd.conf" from /etc/default/libvirt-bin, the livbirted daemon can start after running 'service libvirt-bin restart.

cat /etc/default/libvirt-bin
# Defaults for libvirt-bin initscript (/etc/init.d/libvirt-bin)
# This is a POSIX shell fragment

# Start libvirtd to handle qemu/kvm:

# options passed to libvirtd, add "-l" to listen on tcp
libvirtd_opts="-d -l -f /etc/libvirt/libvirtd.conf"

root at compute1:/etc/libvirt# cat /etc/libvirt/libvirtd.conf|grep -v "#"

listen_tcp = 1

tcp_port = "16509"

listen_addr = ""

unix_sock_group = "libvirtd"

unix_sock_rw_perms = "0770"

auth_unix_ro = "none"

auth_unix_rw = "none"

Note: is the compute node's internal IP.

发件人: 止语
发送时间: 2013-10-28 16:29
收件人: 董建华; Openstack Milis
主题: 回复:[Openstack] Nova live-migration failed(libvirt Connection refused)
check the port in /etc/libvirt/libvirtd.conf :)

------------------ 原始邮件 ------------------
发件人: "董建华";<dongjh at nci.com.cn>;
发送时间: 2013年10月28日(星期一) 下午3:12
收件人: "openstack"<openstack at lists.openstack.org>; 
主题: [Openstack] Nova live-migration failed(libvirt Connection refused)


I was trying to migrate one instance from the compute node compute2 to another node compute1, but failed, the nova-compute.log said compute2 failed to connect the 16509 port on compute1, i noticed that the 16509 port is not opened on compute1, is there any additional configuration for Live-Migration ? Which service listens on port 16509 ?

The hypervisor is KVM.

2013-10-28 14:54:38.948 3086 ERROR nova.virt.libvirt.driver [-] [instance: 861c668c-57c1-4429-8884-1b272463faf5] Live Migration failure: operation failed: Failed to connect to remote libvirt URI qemu+tcp://compute1/system: unable to connect to server at 'compute1:16509': Connection refused
2013-10-28 14:54:51.868 3086 AUDIT nova.compute.resource_tracker [-] Auditing locally available compute resources
2013-10-28 14:54:52.460 3086 AUDIT nova.compute.resource_tracker [-] Free ram (MB): 14978
2013-10-28 14:54:52.460 3086 AUDIT nova.compute.resource_tracker [-] Free disk (GB): 491
2013-10-28 14:54:52.461 3086 AUDIT nova.compute.resource_tracker [-] Free VCPUS: 7
2013-10-28 14:54:52.535 3086 INFO nova.compute.resource_tracker [-] Compute_service record updated for compute2:compute2

root at compute1:~# netstat -na|grep 16509
root at compute1:~#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20131028/144134c5/attachment.html>

More information about the Openstack mailing list