Live Migration with libvirtError

asked 2012-08-09 06:19:46 -0600

breakwindwp gravatar image

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/opens...)

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-08-10 11:01:59 -0600

tomasz-michal-klosinski gravatar image

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/

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-08-09 06:19:46 -0600

Seen: 91 times

Last updated: Aug 10 '12