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

董建华 dongjh at nci.com.cn
Mon Oct 28 09:22:21 UTC 2013


Thanks, as you suggested, i uncomment the following line, the daemon can start now, going to test the Live-Migration.

#listen_tls = 0 

发件人: menghuizhanguo
发送时间: 2013-10-28 17:10
收件人: 董建华; openstack
主题: Reply: Re:[Openstack] Nova live-migration failed(libvirt Connection refused)
disable the tls listen





------------------ Original ------------------
Sender: "董建华"<dongjh at nci.com.cn>;
Send time: Monday, Oct 28, 2013 5:05 PM
To: "止语"<menghuizhanguo at gmail.com>; "openstack"<openstack at lists.openstack.org>; 
Subject: Re: Re:[Openstack] Nova live-migration failed(libvirt Connection refused)


 
root at compute1:/etc/default# libvirtd -l -f /etc/libvirt/libvirtd.conf
2013-10-28 09:03:50.514+0000: 3777: info : libvirt version: 1.1.1
2013-10-28 09:03:50.514+0000: 3777: error : virNetTLSContextCheckCertFile:117 : Cannot read CA certificate '/etc/pki/CA/cacert.pem': No such file or directory


发件人: 董建华
发送时间: 2013-10-28 16:59
收件人: 止语; openstack
主题: Re: 回复:[Openstack] Nova live-migration failed(libvirt Connection refused)
When doing Live-Migration, the error message said failed to connect 'compute1:16509', compute1 can be resolved to 10.10.10.182 on any node.

发件人: 止语
发送时间: 2013-10-28 16:55
收件人: 董建华; Openstack Milis
主题: 回复: 回复:[Openstack] Nova live-migration failed(libvirt Connection refused)
and I am not sure  listen_addr = "10.10.10.182", the other nodes could access it . "0.0.0.0"?





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


run libvirtd deamon manually to see what happed 





------------------ 原始邮件 ------------------
发件人: "董建华";<dongjh at nci.com.cn>;
发送时间: 2013年10月28日(星期一) 下午4:40
收件人: "止语"<menghuizhanguo at gmail.com>; "openstack"<openstack at lists.openstack.org>; 
主题: 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/4a885e73/attachment.html>


More information about the Openstack mailing list