[Openstack] Live Migration with libvirtError

Qiu Zhigang qiuzhigang at fronware.com
Thu Aug 9 09:18:45 UTC 2012


Hi

 

Is libvirt service running ? plz check the status of libvirt service.

 

Best Regards,

Qiu Zhigang

 

From: openstack-bounces+qiuzhigang=fronware.com at lists.launchpad.net
[mailto:openstack-bounces+qiuzhigang=fronware.com at lists.launchpad.net] On
Behalf Of 王鹏
Sent: Thursday, August 09, 2012 2:55 PM
To: openstack at lists.launchpad.net
Subject: [Openstack] Live Migration with libvirtError

 

HI everyone,
when I test live migration use NFS ,that's my sitting according to
 
<http://docs.openstack.org/essex/openstack-compute/admin/content/configuring
-live-migrations.html>
http://docs.openstack.org/essex/openstack-compute/admin/content/configuring-
live-migrations.html

1.add this line /var/lib/nova/instances *(rw,sync,fsid=0,no_root_squash) in
/etc/exports
2.mount -t nfs 172.18.32.7:/var/lib/nova/instances /var/lib/nova/instances
at compute
and change some setting in libvirt.conf and libvird-bin.conf add a option -l
3.restart service

then I create instance in compute node ,find error
that's my nova-compute.log as follow:
2012-08-09 13:13:03 ERROR nova.manager [-] Error during
ComputeManager.update_available_resource: Failed to connect socket to
'/var/run/libvirt/libvirt-sock': No such file or directory
2012-08-09 13:13:03 TRACE nova.manager Traceback (most recent call last):
2012-08-09 13:13:03 TRACE nova.manager File
"/usr/lib/python2.7/dist-packages/nova/manager.py", line 155, in
periodic_tasks
2012-08-09 13:13:03 TRACE nova.manager task(self, context)
2012-08-09 13:13:03 TRACE nova.manager File
"/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2409, in
update_available_resource
2012-08-09 13:13:03 TRACE nova.manager
self.driver.update_available_resource(context, self.host)
2012-08-09 13:13:03 TRACE nova.manager File
"/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line
1936, in update_available_resource
2012-08-09 13:13:03 TRACE nova.manager 'vcpus_used': self.get_vcpu_used(),
2012-08-09 13:13:03 TRACE nova.manager File
"/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line
1742, in get_vcpu_used
2012-08-09 13:13:03 TRACE nova.manager for dom_id in
self._conn.listDomainsID():
2012-08-09 13:13:03 TRACE nova.manager File
"/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line
298, in _get_connection
2012-08-09 13:13:03 TRACE nova.manager self.read_only)
2012-08-09 13:13:03 TRACE nova.manager File
"/usr/lib/python2.7/dist-packages/nova/virt/libvirt/connection.py", line
341, in _connect
2012-08-09 13:13:03 TRACE nova.manager return libvirt.openAuth(uri, auth, 0)
2012-08-09 13:13:03 TRACE nova.manager File
"/usr/lib/python2.7/dist-packages/libvirt.py", line 102, in openAuth
2012-08-09 13:13:03 TRACE nova.manager if ret is None:raise
libvirtError('virConnectOpenAuth() failed')
2012-08-09 13:13:03 TRACE nova.manager libvirtError: Failed to connect
socket to '/var/run/libvirt/libvirt-sock': No such file or directory
2012-08-09 13:13:03 TRACE nova.manager

what's /var/run/libvirt/libvirt-sock'?
why this error?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120809/a5029262/attachment.html>


More information about the Openstack mailing list