openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #15643
Re: Live Migration with libvirtError
Hi
Probably, before We had same problem.
Could you check libvirt log and resolve your host domain and nova.conf
vncserver_listen part?
(vncserver_listen=0.0.0.0)
Thanks!
Suzuki
On Thu, Aug 9, 2012 at 6:27 PM, Leander Bessa Beernaert
<leanderbb@xxxxxxxxx> wrote:
> Hello,
>
> I'm no expert on the subject, but i think you should just use "mount -t nfs
> 172.18.32.7:/ /var/lib/nova/instances" instead of "mount -t nfs
> 172.18.32.7:/var/lib/nova/instances /var/lib/nova/instances". Also from the
> stack trace it seems your libvirtd is not running.
>
> On Thu, Aug 9, 2012 at 7:55 AM, 王鹏 <breakwindwp@xxxxxxxxx> wrote:
>>
>> 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?
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to : openstack@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~openstack
>> More help : https://help.launchpad.net/ListHelp
>>
>
>
>
> --
> Cumprimentos / Regards,
> Leander
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
References