Live Migration with libvirtError

Asked by WangPeng

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

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?

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Tomasz Kłosiński (tomasz-michal-klosinski) said :
#1

Probably libvirt doesn't have access to this file. Maybe it is because of the different uids and gids - when you use shared disk space, than you have to check whether users and groups have the same uids and gids on different computers (or you may use idmapd). Otherwise nova on one computer will create the file that belongs to nova but on the other computer (becuase of the different uid) it will be belonging to different user (or some number if given user doesn't exist).

Check the uids and gids on that computer:
ls -l /var/run/libvirt/

Can you help with this problem?

Provide an answer of your own, or ask WangPeng for more information if necessary.

To post a message you must log in.