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

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


root at compute1:/etc/default# cat libvirt-bin|grep libvirtd_opts
libvirtd_opts="-d"

root at compute1:/etc/default# service libvirt-bin restart
libvirt-bin stop/waiting
libvirt-bin start/running, process 3146

root at compute1:/etc/default# ps -ef|grep libvirtd
root      3146     1 29 16:51 ?        00:00:02 /usr/sbin/libvirtd -d
root      3274  3061  0 16:52 pts/0    00:00:00 grep --color=auto libvirtd
root at compute1:/etc/default#
root at compute1:/etc/default#
root at compute1:/etc/default# vi libvirt-bin

root at compute1:/etc/default# cat libvirt-bin|grep libvirtd_opts
libvirtd_opts="-d -l -f /etc/libvirt/libvirtd.conf"

root at compute1:/etc/default# service libvirt-bin restart
libvirt-bin stop/waiting
libvirt-bin start/running, process 3288

root at compute1:/etc/default# ps -ef|grep libvirtd
root      3460  3061  0 16:52 pts/0    00:00:00 grep --color=auto libvirtd
root at compute1:/etc/default#


发件人: 董建华
发送时间: 2013-10-28 16:40
收件人: 止语; openstack
主题: Re: 回复:[Openstack] Nova live-migration failed(libvirt Connection refused)
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:
start_libvirtd="yes"

# 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 = "10.10.10.182"

unix_sock_group = "libvirtd"

unix_sock_rw_perms = "0770"

auth_unix_ro = "none"

auth_unix_rw = "none"


Note:10.10.10.182 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)


Hello,

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/d89e9475/attachment.html>


More information about the Openstack mailing list