在centos7.1上,部署kilo版,启动vm,在/var/log/nova-compute.log 中,报出如下问题:初步估计与网络有关。
nova service-list、neutron agent-list都正确。
2015-09-30 15:28:16.078 16003 ERROR nova.compute.manager [-] Instance failed network setup after 1 attempt(s)
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager Traceback (most recent call last):
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1770, in _allocate_network_async
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager dhcp_options=dhcp_options)
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 495, in allocate_for_instance
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager **search_opts).get('security_groups')
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 99, in with_params
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager ret = self.function(instance, *args, **kwargs)
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 665, in list_security_groups
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager retrieve_all, **_params)
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 304, in list
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager for r in self._pagination(collection, path, **params):
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 317, in _pagination
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager res = self.get(path, params=params)
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 290, in get
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager headers=headers, params=params)
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 267, in retry_request
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager headers=headers, params=params)
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 208, in do_request
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager self._handle_fault_response(status_code, replybody)
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 182, in _handle_fault_response
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager exception_handler_v20(status_code, des_error_body)
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 80, in exception_handler_v20
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager message=message)
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager NeutronClientException: 404 Not Found
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager The resource could not be found.
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager
2015-09-30 15:28:16.078 16003 TRACE nova.compute.manager
2015-09-30 15:28:30.399 16003 ERROR nova.compute.manager [req-484fde97-d579-48e8-a8f4-09f28bf563a9 - - - - -] [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] Instance failed to spawn
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] Traceback (most recent call last):
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2442, in _build_resources
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] yield resources
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2314, in _build_and_run_instance
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] block_device_info=block_device_info)
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2351, in spawn
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] write_to_disk=True)
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4158, in _get_guest_xml
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] network_info_str = str(network_info)
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/nova/network/model.py", line 480, in __str__
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] return self._sync_wrapper(fn, *args, **kwargs)
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/nova/network/model.py", line 463, in _sync_wrapper
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] self.wait()
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/nova/network/model.py", line 495, in wait
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] self[:] = self._gt.wait()
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 175, in wait
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] return self._exit_event.wait()
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/eventlet/event.py", line 125, in wait
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] current.throw(*self._exc)
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 214, in main
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] result = function(*args, **kwargs)
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1770, in _allocate_network_async
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] dhcp_options=dhcp_options)
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 495, in allocate_for_instance
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] **search_opts).get('security_groups')
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 99, in with_params
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] ret = self.function(instance, *args, **kwargs)
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 665, in list_security_groups
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] retrieve_all, **_params)
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 304, in list
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] for r in self._pagination(collection, path, **params):
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 317, in _pagination
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] res = self.get(path, params=params)
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 290, in get
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] headers=headers, params=params)
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 267, in retry_request
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] headers=headers, params=params)
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 208, in do_request
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] self._handle_fault_response(status_code, replybody)
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 182, in _handle_fault_response
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] exception_handler_v20(status_code, des_error_body)
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 80, in exception_handler_v20
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] message=message)
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] NeutronClientException: 404 Not Found
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6]
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6] The resource could not be found.
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6]
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6]
2015-09-30 15:28:30.399 16003 TRACE nova.compute.manager [instance: 3dc9d90a-707c-4974-b3ae-8fc62325daa6]
2015-09-30 15:28:30.586 16003 ERROR nova.network.neutronv2.api [req-484fde97-d579-48e8-a8f4-09f28bf563a9 - - - - -] Unable to clear device ID for port 'None'
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api Traceback (most recent call last):
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 366, in _unbind_ports
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api port_client.update_port(port_id, port_req_body)
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 99, in with_params
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api ret = self.function(instance, *args, **kwargs)
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 512, in update_port
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api return self.put(self.port_path % (port), body=body)
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 299, in put
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api headers=headers, params=params)
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 267, in retry_request
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api headers=headers, params=params)
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 208, in do_request
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api self._handle_fault_response(status_code, replybody)
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 182, in _handle_fault_response
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api exception_handler_v20(status_code, des_error_body)
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 80, in exception_handler_v20
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api message=message)
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api NeutronClientException: 404 Not Found
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api The resource could not be found.
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api
2015-09-30 15:28:30.586 16003 TRACE nova.network.neutronv2.api
|
|