Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Large number of VMs (~1000) and libvirt exception


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/", line 224, in decorated_function return function(self, context, args, *kwargs) File "/usr/lib/python2.7/dist-packages/nova/compute/", line 1224, in run_instance do_run_instance() File "/usr/lib/python2.7/dist-packages/nova/openstack/common/", line 242, in inner retval = f(args, *kwargs)
File "/usr/lib/python2.7/dist-packages/nova/compute/", line 1223, in do_run_instance
admin_password, is_first_time, node, instance)
File "/usr/lib/python2.7/dist-packages/nova/compute/", line 879, in _run_instance
self._set_instance_error_state(context, instance[\'uuid\'])
File "/usr/lib/python2.7/", line 24, in __exit__ File "/usr/lib/python2.7/dist-packages/nova/compute/", line 790, in _run_instance
self._check_instance_exists(context, instance) File "/usr/lib/python2.7/dist-packages/nova/compute/", line 987, in _check_instance_exists
if self.driver.instance_exists(instance[\'name\']): File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/", line 647, in instance_exists
self._lookup_by_name(instance_name) File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/", line 2354, in _lookup_by_name
return self._conn.lookupByName(instance_name) ', u'created': u'2013-09-03T11:57:38Z'}

Any suggestions on that?