Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenStack: Dev

Live Migration with libvirtError

 

 

OpenStack dev RSS feed   Index | Next | Previous | View Threaded


breakwindwp at gmail

Aug 8, 2012, 11:55 PM

Post #1 of 5 (145 views)
Permalink
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

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?


qiuzhigang at fronware

Aug 9, 2012, 2:18 AM

Post #2 of 5 (136 views)
Permalink
Re: Live Migration with libvirtError [In reply to]

Hi



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



Best Regards,

Qiu Zhigang



From: openstack-bounces+qiuzhigang=fronware.com [at] lists
[mailto:openstack-bounces+qiuzhigang=fronware.com [at] lists] On
Behalf Of
Sent: Thursday, August 09, 2012 2:55 PM
To: openstack [at] lists
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?


leanderbb at gmail

Aug 9, 2012, 2:27 AM

Post #3 of 5 (133 views)
Permalink
Re: Live Migration with libvirtError [In reply to]

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 [at] gmail> 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 [at] lists
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
>


--
Cumprimentos / Regards,
Leander


P at draigBrady

Aug 9, 2012, 2:45 AM

Post #4 of 5 (133 views)
Permalink
Re: Live Migration with libvirtError [In reply to]

On 08/09/2012 07:55 AM, 王鹏 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 TRACE nova.manager libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory

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

That usually means libvirtd isn't running.
I'd double check the libvirt option settings you changed,
and then check in /var/log/libvirt/

For reference, here are the Fedora notes for configuring the feature:
https://fedoraproject.org/wiki/Getting_started_with_OpenStack_EPEL#Live_Migration_of_VM_instances

cheers,
Pádraig.

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack [at] lists
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp


suzuki at midokura

Aug 9, 2012, 2:55 AM

Post #5 of 5 (133 views)
Permalink
Re: Live Migration with libvirtError [In reply to]

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 [at] gmail> 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 [at] gmail> 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 [at] lists
>> Unsubscribe : https://launchpad.net/~openstack
>> More help : https://help.launchpad.net/ListHelp
>>
>
>
>
> --
> Cumprimentos / Regards,
> Leander
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack [at] lists
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack [at] lists
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp

OpenStack dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.