[Openstack] Creating VM takes long time NeutronClientException: 404 Not Found

ZHOU TAO A tao.a.zhou at alcatel-lucent.com
Fri Jun 6 03:26:22 UTC 2014


Hi, All

When I create a VM, it takes a long time to come up.
I checked the compute log and found  lines below. The error would appear 
3 or 4 times before my VM come up.

2014-06-06 11:12:40.740 3030 ERROR nova.compute.manager 
[req-c2dc31c8-d065-461a-8fcc-33e397cf5325 
8ed64db4e9dc48be846aac238aa534ce 79544fc386eb45e69b5b40599fb163c2] 
[instance: b71254f5-8b99-40bc-9022-1ae881a652d9] Instance failed to spawn
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9] Traceback (most recent call last):
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1423, 
in _spawn
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]     block_device_info)
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 
2080, in spawn
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]     admin_pass=admin_password)
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 
2477, in _create_image
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]     net = 
netutils.get_injected_network_template(network_info)
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/nova/virt/netutils.py", line 74, in 
get_injected_network_template
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]     if not (network_info and 
template):
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/nova/network/model.py", line 379, in 
__len__
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]     return self._sync_wrapper(fn, 
*args, **kwargs)
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/nova/network/model.py", line 366, in 
_sync_wrapper
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]     self.wait()
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/nova/network/model.py", line 398, in wait
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]     self[:] = self._gt.wait()
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/eventlet/greenthread.py", line 166, in 
wait
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]     return self._exit_event.wait()
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/eventlet/event.py", line 120, in wait
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]     current.throw(*self._exc)
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/eventlet/greenthread.py", line 192, in 
main
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]     result = function(*args, **kwargs)
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1244, 
in _allocate_network_async
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]     dhcp_options=dhcp_options)
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/nova/network/neutronv2/api.py", line 
275, in allocate_for_instance
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9] **search_opts).get('security_groups')
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 
108, in with_params
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]     ret = self.function(instance, 
*args, **kwargs)
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 
466, in list_security_groups
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]     retrieve_all, **_params)
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 
1197, in list
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]     for r in 
self._pagination(collection, path, **params):
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 
1210, in _pagination
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]     res = self.get(path, 
params=params)
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 
1183, in get
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]     headers=headers, params=params)
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 
1168, in retry_request
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]     headers=headers, params=params)
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 
1111, in do_request
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9] 
self._handle_fault_response(status_code, replybody)
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 
1081, in _handle_fault_response
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9] exception_handler_v20(status_code, 
des_error_body)
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]   File 
"/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 
88, in exception_handler_v20
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]     message=message)
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9] NeutronClientException: 404 Not Found
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9] The resource could not be found.
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]
2014-06-06 11:12:40.740 3030 TRACE nova.compute.manager [instance: 
b71254f5-8b99-40bc-9022-1ae881a652d9]
2014-06-06 11:12:41.104 3030 WARNING nova.compute.manager [-] Found 1 in 
the database and 0 on the hypervisor.
2014-06-06 11:12:43.609 3030 ERROR nova.virt.libvirt.driver [-] 
[instance: b71254f5-8b99-40bc-9022-1ae881a652d9] During wait destroy, 
instance disappeared.
2014-06-06 11:12:44.026 3030 ERROR nova.compute.manager 
[req-c2dc31c8-d065-461a-8fcc-33e397cf5325 
8ed64db4e9dc48be846aac238aa534ce 79544fc386eb45e69b5b40599fb163c2] 
[instance: b71254f5-8b99-40bc-9022-1ae881a652d9] Error: 404 Not Found

The resource could not be found.


Any idea on this?

Thanks

Tao




More information about the Openstack mailing list