Ask Your Question
0

Large number of VMs (~1000) and libvirt exception

asked 2013-09-05 08:08:07 -0600

pawel-koniszewski gravatar image

Hi,

I have a problem with uncaught exception in nova. I was not able to schedule one thousand of VMs, because the closer I was to schedule all needed VMs, the more VMs were throwing exceptions. This is what 'nova show' shows:

{u'message': u'AttributeError', u'code': 500, u'details': u'\'NoneType\' object has no attribute \'lookupByName\' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 224, in decorated_function return function(self, context, args, *kwargs) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1224, in run_instance do_run_instance() File "/usr/lib/python2.7/dist-packages/nova/openstack/common/lockutils.py", line 242, in inner retval = f(args, *kwargs)
File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1223, in do_run_instance
admin_password, is_first_time, node, instance)
File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 879, in _run_instance
self._set_instance_error_state(context, instance[\'uuid\'])
File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
self.gen.next() File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 790, in _run_instance
self._check_instance_exists(context, instance) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 987, in _check_instance_exists
if self.driver.instance_exists(instance[\'name\']): File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 647, in instance_exists
self._lookup_by_name(instance_name) File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2354, in _lookup_by_name
return self._conn.lookupByName(instance_name) ', u'created': u'2013-09-03T11:57:38Z'}

Any suggestions on that?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2013-09-06 02:57:10 -0600

gtt116 gravatar image

Hi, Pawel

You create 1,000 instances at one request? That was crazy!! wah

It seems like libvirt is crash or not connected.

2013/9/5 Paweł Koniszewski question235190@answers.launchpad.net

New question #235190 on OpenStack Compute (nova): https://answers.launchpad.net/nova/+question/235190 (https://answers.launchpad.net/nova/+q...)

Hi,

I have a problem with uncaught exception in nova. I was not able to schedule one thousand of VMs, because the closer I was to schedule all needed VMs, the more VMs were throwing exceptions. This is what 'nova show' shows:

{u'message': u'AttributeError', u'code': 500, u'details': u'\'NoneType\' object has no attribute \'lookupByName\' File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 224, in decorated_function return function(self, context, args, *kwargs) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1224, in run_instance do_run_instance() File "/usr/lib/python2.7/dist-packages/nova/openstack/common/lockutils.py", line 242, in inner retval = f(args, *kwargs) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1223, in do_run_instance admin_password, is_first_time, node, instance) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 879, in _run_instance self._set_instance_error_state(context, instance[\'uuid\']) File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__ self.gen.next() File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 790, in _run_instance self._check_instance_exists(context, instance) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 987, in _check_instance_exists if self.driver.instance_exists(instance[\'name\']): File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 647, in instance_exists self._lookup_by_name(instance_name) File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2354, in _lookup_by_name return self._conn.lookupByName(instance_name) ', u'created': u'2013-09-03T11:57:38Z'}

Any suggestions on that?


You received this question notification because you are an answer contact for OpenStack Compute (nova).


Best regards, gtt

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-09-05 08:08:07 -0600

Seen: 32 times

Last updated: Sep 06 '13