<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
</head><body style="font-family: Lucida Grande; font-size: 10pt;"
bgcolor="#FFFFFF" text="#000000"><div style="font-size:
10pt;font-family: Lucida Grande;"><span style="font-family: Lucida
Grande;">Hey Eric,<br>does from the two nodes a simple : <br>$ virsh
list --all works ?<br><br>also, have you enabled started the TCP socket
by enabling it into /etc/default/libvirt-bin<br><br><span
style="font-style: italic;">Before</span> :<br>libvirtd_opts="-d"<br><br><span
style="font-style: italic;">After : </span><br>libvirtd_opts="-d -l"<br></span><br>Restart
libvirtd and check the logs, by the way, you can safely ignore the
errors about power management or install the following package : <br>dbus<br><br>You
can also validate a manual migration by issuing the following command
from the node 1 : <br>$ virsh migrate --live $domain (get by virsh list)
qemu+tcp://user@node2/system<br><br>And check the output<br><br>Best
regards,<br>Razique<br><br><blockquote style="border: 0px none;"
cite="mid:CAN-_c-R6VWjUGm5juvESfWaxTeBwmXuA4YFhZeT2ayM4X3CRsw@mail.gmail.com"
type="cite"><div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="display:table;width:100%;border-top:1px solid
#EDEEF0;padding-top:5px"> <div
style="display:table-cell;vertical-align:middle;padding-right:6px;"><img
photoaddress="nextfool@gmail.com" photoname="Eric Luo"
src="cid:part1.03040003.04000306@gmail.com"
name="compose-unknown-contact.jpg" width="25px" height="25px"></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
<a moz-do-not-send="true" href="mailto:nextfool@gmail.com"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Eric Luo</a></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;">
<font color="#9FA2A5"><span style="padding-left:6px">28 mai 2012 08:24</span></font></div></div></div><div
style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody">Hello ,all<br>first ,let me
introduce my develop environment:<br>I have a computer with following
lshw information <br><br><span style="background-color:rgb(204,204,204)"> *-cpu<br>
description: CPU<br> product: AMD FX(tm)-6100 Six-Core
Processor<br>
vendor: Hynix Semiconductor (Hyundai Electronics)<br>
physical id: 4<br> bus info: cpu@0<br> version: AMD
FX(tm)-6100 Six-Core Processor<br> slot: Socket M2<br> size:
1400MHz<br> capacity: 1400MHz<br>
width: 64 bits<br> clock: 200MHz<br> *-memory<br>
description: System Memory<br> physical id: 29<br> slot:
System board or motherboard<br> size: 16GiB</span><br>Then ,I
installed ubuntu1204 LTS . <br>
Then,I started 3 VMs with virt-manager as my OpenStack testing cluster.I
named the 3VMs as<b> os0</b> <b>,os1</b> and<b> os2</b>.<br>I installed<b>
cloud controller on os0</b> ,and <b>nova-compute on both os1 and os2</b>.<br>
<br>I set up all the live-migration preparations instructed <br>here:<br><a
moz-do-not-send="true" target="_blank"
href="http://docs.openstack.org/trunk/openstack-compute/admin/content/configuring-live-migrations.html">http://docs.openstack.org/trunk/openstack-compute/admin/content/configuring-live-migrations.html</a> <br>
<div><br>and here:<br><a moz-do-not-send="true" target="_blank"
href="https://help.ubuntu.com/community/SettingUpNFSHowTo">https://help.ubuntu.com/community/SettingUpNFSHowTo</a> <br><br>BTW:I
found some error in the document ,<br><br>Update the libvirt
configurations. Modify /etc/libvirt/libvirt.conf:<br>
<br>before : #listen_tls = 0<br>after : listen_tls = 0<br><br>before :
#listen_tcp = 1<br>after : listen_tcp = 1<br><br>add: auth_tcp = "none"</div><div><br></div><div>here
,we should update the configuration file
/etc/libvirt/<b>libvirtd</b>.conf ,not
/etc/libvirt/libvirt.conf </div><div><br></div><div>After all are set ,I
just use the command "<b>nova live-migration vm1 os2</b>",here the vm1
is an instance running currently on <b>os1</b> and I wanted it to be
migrated to<b> os2</b><br>
<br>the command returned without any error or infor.I guess
it indicated the migration is done correctly .But I check the vm1 with
"nova show vm1",it is still running on <b>os1</b>!</div><div>I checked
the nova-compte.log file on both os1 and os2,and found the
following live_migration related<b> </b>entries :</div>
<div><br><br><div><font style="background-color:rgb(204,204,204)">2012-05-28
10:26:39 DEBUG nova.rpc.amqp [-] received {u'_context_roles':
[u'admin'], u'_msg_id': u'89dfda33bb7b4dd29d93867aaf1460ec',
u'_context_read_deleted':</font></div>
<div><font style="background-color:rgb(204,204,204)">u'no',
u'_context_request_id': u'req-f1415f26-f19e-4499-aa24-22e47b586378',
u'args': {u'instance_id': 15, u'block_migration': False, u'disk': None},
u'_context_</font></div>
<div><font style="background-color:rgb(204,204,204)">auth_token':
'<SANITIZED>', u'_context_is_admin': True, u'_context_project_id':
u'7fa3accbd2b543a2a59c5249b8d07281', u'_context_timestamp':
u'2012-05-28T02:26:3</font></div>
<div><font style="background-color:rgb(204,204,204)">9.026426',
u'_context_user_id': u'297ad61b9a67448186c08729ab0f1971', u'method': <b>u'pre_live_migration</b>',
u'_context_remote_address': u'192.168.0.221'} from (pid=7</font></div>
<div><font style="background-color:rgb(204,204,204)">290) _safe_log
/usr/lib/python2.7/dist-packages/nova/rpc/common.py:160</font></div><div><font
style="background-color:rgb(204,204,204)"><br></font></div><div><font
style="background-color:rgb(204,204,204)"><br>
</font></div><div><font style="background-color:rgb(204,204,204)">2012-05-28
11:22:09 DEBUG nova.service [-] <b>live_migration_retry_count </b>: 30
from (pid=16393) wait
/usr/lib/python2.7/dist-packages/nova/service.py:411</font></div>
<div><font style="background-color:rgb(204,204,204)"><br></font></div><div><font
style="background-color:rgb(204,204,204)">2012-05-28 11:22:09 DEBUG
nova.service [-] <b>live_migration_uri </b>: qemu+tcp://%s/system from
(pid=16393) wait /usr/lib/python2.7/dist-packages/nova/service.py:411</font></div>
<div><font style="background-color:rgb(204,204,204)"><br></font></div><div><font
style="background-color:rgb(204,204,204)">2012-05-28 11:22:09 DEBUG
nova.service [-] <b>live_migration_bandwidth </b>: 0 from (pid=16393)
wait /usr/lib/python2.7/dist-packages/nova/service.py:411</font></div>
<div><br></div><div><br></div>I didn't see any error in these log
files.</div><div><br></div><div>Then I checked the<b> /var/log/libvirt/libvirtd.log</b> on
both os1 and os2.and found the following.</div><div><br></div>
<div><div><span style="background-color:rgb(204,204,204)">2012-05-28
02:56:14.310+0000: 9481: error : virExecWithHook:328 : Cannot find
'pm-is-supported' in path: No such file or directory</span></div><div><span
style="background-color:rgb(204,204,204)">2012-05-28 02:56:14.310+0000:
9481: warning : qemuCapsInit:856 : Failed to get host power management
capabilities</span></div>
<div><span style="background-color:rgb(204,204,204)">2012-05-28
02:56:14.514+0000: 9480: error : virExecWithHook:328 : Cannot find
'pm-is-supported' in path: No such file or directory</span></div><div><span
style="background-color:rgb(204,204,204)">2012-05-28 02:56:14.515+0000:
9480: warning : qemuCapsInit:856 : Failed to get host power management
capabilities</span></div>
<div><span style="background-color:rgb(204,204,204)">2012-05-28
02:56:14.719+0000: 9482: error : virExecWithHook:328 : Cannot find
'pm-is-supported' in path: No such file or directory</span></div><div><span
style="background-color:rgb(204,204,204)">2012-05-28 02:56:14.719+0000:
9482: warning : qemuCapsInit:856 : Failed to get host power management
capabilities</span></div>
<div><span style="background-color:rgb(204,204,204)">2012-05-28
02:56:14.943+0000: 9484: error : virExecWithHook:328 : Cannot find
'pm-is-supported' in path: No such file or directory</span></div><div><span
style="background-color:rgb(204,204,204)">2012-05-28 02:56:14.944+0000:
9484: warning : qemuCapsInit:856 : Failed to get host power management
capabilities</span></div>
<div><span style="background-color:rgb(204,204,204)">2012-05-28
02:56:15.155+0000: 9481: error : virExecWithHook:328 : Cannot find
'pm-is-supported' in path: No such file or directory</span></div><div><span
style="background-color:rgb(204,204,204)">2012-05-28 02:56:15.155+0000:
9481: warning : qemuCapsInit:856 : Failed to get host power management
capabilities</span></div>
<div><span style="background-color:rgb(204,204,204)">2012-05-28
02:58:55.330+0000: 13514: info : libvirt version: 0.9.8</span></div><div><span
style="background-color:rgb(204,204,204)">2012-05-28 02:58:55.330+0000:
13514: error : qemuMonitorIORead:513 : Unable to read from monitor:
Connection reset by peer</span></div>
<div><span style="background-color:rgb(204,204,204)">2012-05-28
03:02:15.618+0000: 13518: error : qemuMonitorOpenUnix:295 : failed to
connect to monitor socket: No such process</span></div><div><span
style="background-color:rgb(204,204,204)">2012-05-28 03:02:15.618+0000:
13518: error : qemuProcessWaitForMonitor:1301 : internal error process
exited while connecting to monitor: char device re</span></div>
<div><span style="background-color:rgb(204,204,204)">to /dev/pts/3</span></div><div><span
style="background-color:rgb(204,204,204)"><font color="#ff6666">inet_listen_opts:
bind(ipv4,192.168.0.205,5900): Cannot assign requested address</font></span></div>
<div><span style="background-color:rgb(204,204,204)"><font
color="#ff6666">inet_listen_opts: FAILED</font></span></div></div><div><br></div><div>Please
note the above ,the last two lines I marked as red ,I googled the error
,and do found something maybe related here :</div>
<div><a moz-do-not-send="true" target="_blank"
href="https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=703851">https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=703851</a>
</div><div><br></div><div>I know the <span
style="background-color:rgb(204,204,204);color:rgb(255,102,102)">inet_listen_opts:
bind error </span>maybe related to my VNC settings in<b>
/etc/nova/nova.conf</b>,So I just commented all the vnc related lines in
/etc/nova/nova.conf</div>
<div>Then I run the </div><div> "<b>nova live-migration vm1 os2</b>"
again ,and "tail -f /var/log/nova/nova-compute.log" to both os1 and
os2.I found the the folloing:</div><div><br></div><div><div><span
style="background-color:rgb(204,204,204)">2012-05-28 03:21:02.700+0000:
8872: error : virNetSocketReadWire:996 : End of file while reading data:
Input/output error</span></div>
<div><span style="background-color:rgb(204,204,204)">2012-05-28
03:21:02.700+0000: 8872: error : virNetSocketReadWire:996 : End of file
while reading data: Input/output error</span></div><div><span
style="background-color:rgb(204,204,204)">2012-05-28 03:23:06.551+0000:
8879: error : virNetDevGetIndex:656 : Unable to get index for interface
vnet0: No such device</span></div>
<div><span style="background-color:rgb(204,204,204)">2012-05-28
03:24:36.992+0000: 8875: error : virNetClientProgramDispatchError:174 :
Unable to read from monitor: Connection reset by peer</span></div></div><div><span
style="background-color:rgb(204,204,204)"><br>
</span></div>note that the previous inet_listen_opts:bind error is not
showing this time ,but I got something new as above.<div><br></div><div><br></div><div>Well
,these are all problems I met.And here is my question :</div>
<div>1.Are these libvirt related problems showing only because I am
testing them on a "virtual "environment? I mean ,maybe I should buy some
more physical computer?</div><div>2.If not ,what should I do with this ?
Did anyone else get the same problem as I did?.</div>
<div>Please help me ,thank you very much in advance!</div><div><br></div><div><br></div><div><br></div><div>Eric
Luo</div><div>2012-05-28</div><div><br></div><div><br></div>
<div>_______________________________________________<br>Mailing list:
<a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>Post to :
<a class="moz-txt-link-abbreviated" href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>Unsubscribe :
<a class="moz-txt-link-freetext" href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><br>More help :
<a class="moz-txt-link-freetext" href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><br></div></div></blockquote><br><div
class="moz-signature">-- <br><span><span style="font-family: Lucida
Grande;">Nuage & Co - Razique Mahroua <br>
<span style="font-weight: bold;"><a class="moz-txt-link-abbreviated" href="mailto:razique.mahroua@gmail.com">razique.mahroua@gmail.com</a></span></span><span
style="color: rgb(51, 153, 153);"></span><span style="font-family:
monospace;"></span></span><br>
<br>
<div class="moz-signature"><span style="font-family: monospace;">
</span><img src="cid:part2.00070601.08080809@gmail.com" name="image.jpg"
alt=""></div>
<br>
<br>
</div></div></body></html>