<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=UTF-8" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em; MARGIN-TOP: 0px
}
OL {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
UL {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
DIV.FoxDiv20131028163155568763 {
FONT-SIZE: 10.5pt; FONT-FAMILY: 微软雅黑; COLOR: #000000; LINE-HEIGHT: 1.5
}
DIV.FoxDiv20131028165303875093 {
FONT-SIZE: 10.5pt; FONT-FAMILY: 微软雅黑; COLOR: #000080; MARGIN: 10px; LINE-HEIGHT: 1.5
}
BODY {
FONT-SIZE: 10.5pt; FONT-FAMILY: 微软雅黑; COLOR: #000080; LINE-HEIGHT: 1.5
}
</STYLE>
<META name=GENERATOR content="MSHTML 10.00.9200.16721">
<STYLE>BLOCKQUOTE {
MARGIN-TOP: 0px
}
OL {
MARGIN-TOP: 0px
}
UL {
MARGIN-TOP: 0px
}
</STYLE>
</HEAD>
<BODY style="MARGIN: 10px">
<DIV>
<DIV>root@compute1:/etc/default# cat libvirt-bin|grep libvirtd_opts</DIV>
<DIV>libvirtd_opts="-d"</DIV>
<DIV> </DIV>
<DIV>root@compute1:/etc/default# service libvirt-bin restart</DIV>
<DIV>libvirt-bin stop/waiting</DIV>
<DIV>libvirt-bin start/running, process 3146</DIV>
<DIV> </DIV>
<DIV>root@compute1:/etc/default# ps -ef|grep libvirtd</DIV>
<DIV>root 3146 1 29 16:51
? 00:00:02 /usr/sbin/libvirtd -d</DIV>
<DIV>root 3274 3061 0 16:52
pts/0 00:00:00 grep --color=auto libvirtd</DIV>
<DIV>root@compute1:/etc/default#</DIV>
<DIV>root@compute1:/etc/default#</DIV>
<DIV>root@compute1:/etc/default# vi libvirt-bin</DIV>
<DIV> </DIV>
<DIV>root@compute1:/etc/default# cat libvirt-bin|grep libvirtd_opts</DIV>
<DIV>libvirtd_opts="-d -l -f /etc/libvirt/libvirtd.conf"</DIV>
<DIV> </DIV>
<DIV>root@compute1:/etc/default# service libvirt-bin restart</DIV>
<DIV>libvirt-bin stop/waiting</DIV>
<DIV>libvirt-bin start/running, process 3288</DIV>
<DIV> </DIV>
<DIV>root@compute1:/etc/default# ps -ef|grep libvirtd</DIV>
<DIV>root 3460 3061 0 16:52
pts/0 00:00:00 grep --color=auto libvirtd</DIV>
<DIV>root@compute1:/etc/default#</DIV></DIV>
<DIV><SPAN> </DIV>
<DIV>
<DIV></DIV></DIV></SPAN>
<DIV> </DIV>
<DIV
style="BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; PADDING-BOTTOM: 0cm; PADDING-TOP: 3pt; PADDING-LEFT: 0cm; BORDER-LEFT: medium none; PADDING-RIGHT: 0cm">
<DIV
style="FONT-SIZE: 12px; FONT-FAMILY: tahoma; BACKGROUND: #efefef; COLOR: #000000; PADDING-BOTTOM: 8px; PADDING-TOP: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px">
<DIV><B>发件人:</B> <A href="mailto:dongjh@nci.com.cn">董建华</A></DIV>
<DIV><B>发送时间:</B> 2013-10-28 16:40</DIV>
<DIV><B>收件人:</B> <A href="mailto:menghuizhanguo@gmail.com">止语</A>; <A
href="mailto:openstack@lists.openstack.org">openstack</A></DIV>
<DIV><B>主题:</B> Re: 回复:[Openstack] Nova live-migration failed(libvirt
Connection refused)</DIV></DIV></DIV>
<DIV>
<DIV class=FoxDiv20131028165303875093 style="BACKGROUND-COLOR: white">
<STYLE>BLOCKQUOTE {
MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em; MARGIN-TOP: 0px
}
OL {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
UL {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
DIV.FoxDiv20131028163155568763 {
FONT-SIZE: 10.5pt; FONT-FAMILY: 微软雅黑; COLOR: #000000; LINE-HEIGHT: 1.5
}
</STYLE>
<META name=GENERATOR content="MSHTML 10.00.9200.16721">
<DIV>
<DIV><SPAN>
<DIV
style="FONT-SIZE: 10pt; FONT-FAMILY: verdana; COLOR: #000000; LINE-HEIGHT: 1.5">
<DIV style="FONT-SIZE: 22px"><FONT size=2></FONT></DIV>
<DIV>
<DIV>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.</DIV>
<DIV> </DIV>
<DIV>
<DIV style="FONT-WEIGHT: bold">cat /etc/default/libvirt-bin</DIV>
<DIV># Defaults for libvirt-bin initscript (/etc/init.d/libvirt-bin)</DIV>
<DIV># This is a POSIX shell fragment</DIV>
<DIV> </DIV>
<DIV># Start libvirtd to handle qemu/kvm:</DIV>
<DIV>start_libvirtd="yes"</DIV>
<DIV> </DIV>
<DIV># options passed to libvirtd, add "-l" to listen on tcp</DIV>
<DIV>libvirtd_opts="-d -l -f /etc/libvirt/libvirtd.conf"</DIV>
<DIV> </DIV>
<DIV>
<DIV style="FONT-WEIGHT: bold">root@compute1:/etc/libvirt# cat
/etc/libvirt/libvirtd.conf|grep -v "#"</DIV>
<DIV> </DIV>
<DIV>listen_tcp = 1</DIV>
<DIV> </DIV>
<DIV>tcp_port = "16509"</DIV>
<DIV> </DIV>
<DIV>listen_addr = "10.10.10.182"</DIV>
<DIV> </DIV>
<DIV>unix_sock_group = "libvirtd"</DIV>
<DIV> </DIV>
<DIV>unix_sock_rw_perms = "0770"</DIV>
<DIV> </DIV>
<DIV>auth_unix_ro = "none"</DIV>
<DIV> </DIV>
<DIV>auth_unix_rw = "none"</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV style="FONT-STYLE: italic">Note:10.10.10.182 is the compute node's internal
IP.</DIV></DIV></DIV>
<DIV> </DIV>
<DIV> </DIV></DIV></DIV></SPAN></DIV></DIV>
<DIV
style="BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; PADDING-BOTTOM: 0cm; PADDING-TOP: 3pt; PADDING-LEFT: 0cm; BORDER-LEFT: medium none; PADDING-RIGHT: 0cm">
<DIV
style="FONT-SIZE: 12px; FONT-FAMILY: tahoma; BACKGROUND: #efefef; COLOR: #000000; PADDING-BOTTOM: 8px; PADDING-TOP: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px">
<DIV><B>发件人:</B> <A href="mailto:menghuizhanguo@gmail.com">止语</A></DIV>
<DIV><B>发送时间:</B> 2013-10-28 16:29</DIV>
<DIV><B>收件人:</B> <A href="mailto:dongjh@nci.com.cn">董建华</A>; <A
href="mailto:openstack@lists.openstack.org">Openstack Milis</A></DIV>
<DIV><B>主题:</B> 回复:[Openstack] Nova live-migration failed(libvirt
Connection refused)</DIV></DIV></DIV>
<DIV>
<DIV class=FoxDiv20131028163155568763 style="BACKGROUND-COLOR: white">check the
port in /etc/libvirt/libvirtd.conf :)
<DIV>
<DIV><BR></DIV>
<DIV><BR></DIV>
<DIV
style="FONT-SIZE: 12px; FONT-FAMILY: Arial Narrow; PADDING-BOTTOM: 2px; PADDING-TOP: 2px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px">------------------ 原始邮件 ------------------</DIV>
<DIV
style="FONT-SIZE: 12px; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px">
<DIV><B>发件人:</B> "董建华";<dongjh@nci.com.cn>;</DIV>
<DIV><B>发送时间:</B> 2013年10月28日(星期一) 下午3:12</DIV>
<DIV><B>收件人:</B> "openstack"<openstack@lists.openstack.org>;
<WBR></DIV>
<DIV></DIV>
<DIV><B>主题:</B> [Openstack] Nova live-migration failed(libvirt Connection
refused)</DIV></DIV>
<DIV><BR></DIV>
<STYLE>BLOCKQUOTE {
MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em; MARGIN-TOP: 0px
}
OL {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
UL {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
P {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
</STYLE>
<DIV><SPAN style="FONT-WEIGHT: bold">Hello,</SPAN></DIV>
<DIV><SPAN style="FONT-WEIGHT: bold"></SPAN> </DIV>
<DIV><SPAN style="FONT-WEIGHT: bold">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
?</SPAN></DIV>
<DIV><SPAN style="FONT-WEIGHT: bold"></SPAN> </DIV>
<DIV><SPAN style="FONT-WEIGHT: bold">The hypervisor is KVM.</SPAN></DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV><SPAN></SPAN>
<DIV>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</DIV>
<DIV>2013-10-28 14:54:51.868 3086 AUDIT nova.compute.resource_tracker [-]
Auditing locally available compute resources</DIV>
<DIV>2013-10-28 14:54:52.460 3086 AUDIT nova.compute.resource_tracker [-] Free
ram (MB): 14978</DIV>
<DIV>2013-10-28 14:54:52.460 3086 AUDIT nova.compute.resource_tracker [-] Free
disk (GB): 491</DIV>
<DIV>2013-10-28 14:54:52.461 3086 AUDIT nova.compute.resource_tracker [-] Free
VCPUS: 7</DIV>
<DIV>2013-10-28 14:54:52.535 3086 INFO nova.compute.resource_tracker [-]
Compute_service record updated for compute2:compute2</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>
<DIV>root@compute1:~# netstat -na|grep 16509</DIV>
<DIV>root@compute1:~#</DIV></DIV></DIV><SPAN></SPAN></DIV></DIV></DIV></DIV></DIV></BODY></HTML>