分享

求助 !急!你们肯定遇到过的,创建云主机失败,500错误,No valid host was found...

小弟,controller节点4G+20G,compute:2.5G+20G,用的初始镜像cirros,VMware软件。


下面补上日志找到的错误
[root@controller nova]# cat nova-conductor.log
2017-03-15 21:23:54.702 4523 ERROR nova.conductor.manager [req-5bd1b889-5741-4aff-9afc-e9a080b1bbd9 4e79debf8c5e4014b90ca6a1ecda7a40 03fb0e6b84e84d0f86d69bb26f0d72b9 - - -] [instance: 77c9aab7-bf59-409d-99e5-efae9457fcaa] Failed to deallocate networks
2017-03-15 21:23:54.702 4523 ERROR nova.conductor.manager [instance: 77c9aab7-bf59-409d-99e5-efae9457fcaa] Traceback (most recent call last):
2017-03-15 21:23:54.702 4523 ERROR nova.conductor.manager [instance: 77c9aab7-bf59-409d-99e5-efae9457fcaa]   File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 290, in _cleanup_allocated_networks
2017-03-15 21:23:54.702 4523 ERROR nova.conductor.manager [instance: 77c9aab7-bf59-409d-99e5-efae9457fcaa]     context, instance, requested_networks=requested_networks)
2017-03-15 21:23:54.702 4523 ERROR nova.conductor.manager [instance: 77c9aab7-bf59-409d-99e5-efae9457fcaa]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1174, in deallocate_for_instance
2017-03-15 21:23:54.702 4523 ERROR nova.conductor.manager [instance: 77c9aab7-bf59-409d-99e5-efae9457fcaa]     self._unbind_ports(context, ports_to_skip, neutron)
2017-03-15 21:23:54.702 4523 ERROR nova.conductor.manager [instance: 77c9aab7-bf59-409d-99e5-efae9457fcaa]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 497, in _unbind_ports
2017-03-15 21:23:54.702 4523 ERROR nova.conductor.manager [instance: 77c9aab7-bf59-409d-99e5-efae9457fcaa]     get_client(context, admin=True))
2017-03-15 21:23:54.702 4523 ERROR nova.conductor.manager [instance: 77c9aab7-bf59-409d-99e5-efae9457fcaa]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 136, in get_client
2017-03-15 21:23:54.702 4523 ERROR nova.conductor.manager [instance: 77c9aab7-bf59-409d-99e5-efae9457fcaa]     _ADMIN_AUTH = _load_auth_plugin(CONF)
2017-03-15 21:23:54.702 4523 ERROR nova.conductor.manager [instance: 77c9aab7-bf59-409d-99e5-efae9457fcaa]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 73, in _load_auth_plugin
2017-03-15 21:23:54.702 4523 ERROR nova.conductor.manager [instance: 77c9aab7-bf59-409d-99e5-efae9457fcaa]     raise neutron_client_exc.Unauthorized(message=err_msg)
2017-03-15 21:23:54.702 4523 ERROR nova.conductor.manager [instance: 77c9aab7-bf59-409d-99e5-efae9457fcaa] Unauthorized: Unknown auth type: None
2017-03-15 21:23:54.702 4523 ERROR nova.conductor.manager [instance: 77c9aab7-bf59-409d-99e5-efae9457fcaa]
2017-03-15 21:25:09.763 4523 ERROR nova.scheduler.utils [req-4b8e184b-323f-43ae-8c6b-ab0f4cfe71c4 4e79debf8c5e4014b90ca6a1ecda7a40 03fb0e6b84e84d0f86d69bb26f0d72b9 - - -] [instance: 4cbf3f90-92df-4384-9bab-6807d8fc1cd8] Error from last host: compute (node compute): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1779, in _do_build_and_run_instance\n    filter_properties)\n', u'  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1976, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance 4cbf3f90-92df-4384-9bab-6807d8fc1cd8 was re-scheduled: Binding failed for port 333e2adc-e721-4650-b1d3-cd38708e1fce, please check neutron logs for more information.\n']
2017-03-15 21:25:09.828 4523 WARNING nova.scheduler.utils [req-4b8e184b-323f-43ae-8c6b-ab0f4cfe71c4 4e79debf8c5e4014b90ca6a1ecda7a40 03fb0e6b84e84d0f86d69bb26f0d72b9 - - -] Failed to compute_task_build_instances: No valid host was found. There are not enough hosts available.
Traceback (most recent call last):

  File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 199, in inner
    return func(*args, **kwargs)

  File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 104, in select_destinations
    dests = self.driver.select_destinations(ctxt, spec_obj)

  File "/usr/lib/python2.7/site-packages/nova/scheduler/filter_scheduler.py", line 74, in select_destinations
    raise exception.NoValidHost(reason=reason)

NoValidHost: No valid host was found. There are not enough hosts available.

2017-03-15 21:25:09.829 4523 WARNING nova.scheduler.utils [req-4b8e184b-323f-43ae-8c6b-ab0f4cfe71c4 4e79debf8c5e4014b90ca6a1ecda7a40 03fb0e6b84e84d0f86d69bb26f0d72b9 - - -] [instance: 4cbf3f90-92df-4384-9bab-6807d8fc1cd8] Setting instance to ERROR state.
2017-03-15 21:25:09.998 4523 ERROR nova.conductor.manager [req-4b8e184b-323f-43ae-8c6b-ab0f4cfe71c4 4e79debf8c5e4014b90ca6a1ecda7a40 03fb0e6b84e84d0f86d69bb26f0d72b9 - - -] [instance: 4cbf3f90-92df-4384-9bab-6807d8fc1cd8] Failed to deallocate networks
2017-03-15 21:25:09.998 4523 ERROR nova.conductor.manager [instance: 4cbf3f90-92df-4384-9bab-6807d8fc1cd8] Traceback (most recent call last):
2017-03-15 21:25:09.998 4523 ERROR nova.conductor.manager [instance: 4cbf3f90-92df-4384-9bab-6807d8fc1cd8]   File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 290, in _cleanup_allocated_networks
2017-03-15 21:25:09.998 4523 ERROR nova.conductor.manager [instance: 4cbf3f90-92df-4384-9bab-6807d8fc1cd8]     context, instance, requested_networks=requested_networks)
2017-03-15 21:25:09.998 4523 ERROR nova.conductor.manager [instance: 4cbf3f90-92df-4384-9bab-6807d8fc1cd8]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1174, in deallocate_for_instance
2017-03-15 21:25:09.998 4523 ERROR nova.conductor.manager [instance: 4cbf3f90-92df-4384-9bab-6807d8fc1cd8]     self._unbind_ports(context, ports_to_skip, neutron)
2017-03-15 21:25:09.998 4523 ERROR nova.conductor.manager [instance: 4cbf3f90-92df-4384-9bab-6807d8fc1cd8]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 497, in _unbind_ports
2017-03-15 21:25:09.998 4523 ERROR nova.conductor.manager [instance: 4cbf3f90-92df-4384-9bab-6807d8fc1cd8]     get_client(context, admin=True))
2017-03-15 21:25:09.998 4523 ERROR nova.conductor.manager [instance: 4cbf3f90-92df-4384-9bab-6807d8fc1cd8]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 136, in get_client
2017-03-15 21:25:09.998 4523 ERROR nova.conductor.manager [instance: 4cbf3f90-92df-4384-9bab-6807d8fc1cd8]     _ADMIN_AUTH = _load_auth_plugin(CONF)
2017-03-15 21:25:09.998 4523 ERROR nova.conductor.manager [instance: 4cbf3f90-92df-4384-9bab-6807d8fc1cd8]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 73, in _load_auth_plugin
2017-03-15 21:25:09.998 4523 ERROR nova.conductor.manager [instance: 4cbf3f90-92df-4384-9bab-6807d8fc1cd8]     raise neutron_client_exc.Unauthorized(message=err_msg)
2017-03-15 21:25:09.998 4523 ERROR nova.conductor.manager [instance: 4cbf3f90-92df-4384-9bab-6807d8fc1cd8] Unauthorized: Unknown auth type: None
2017-03-15 21:25:09.998 4523 ERROR nova.conductor.manager [instance: 4cbf3f90-92df-4384-9bab-6807d8fc1cd8]
2017-03-15 21:34:53.224 4523 ERROR nova.scheduler.utils [req-3a3d4124-ea2c-424e-93c5-9cd67b3d31cb 4e79debf8c5e4014b90ca6a1ecda7a40 03fb0e6b84e84d0f86d69bb26f0d72b9 - - -] [instance: a440353a-7a3d-4bc4-a257-9a6d71df9fec] Error from last host: compute (node compute): [u'Traceback (most recent call last):\n', u'  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1779, in _do_build_and_run_instance\n    filter_properties)\n', u'  File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1976, in _build_and_run_instance\n    instance_uuid=instance.uuid, reason=six.text_type(e))\n', u'RescheduledException: Build of instance a440353a-7a3d-4bc4-a257-9a6d71df9fec was re-scheduled: Binding failed for port 99b956da-3d32-4b19-a5ce-e38a2624731a, please check neutron logs for more information.\n']
2017-03-15 21:34:53.337 4523 WARNING nova.scheduler.utils [req-3a3d4124-ea2c-424e-93c5-9cd67b3d31cb 4e79debf8c5e4014b90ca6a1ecda7a40 03fb0e6b84e84d0f86d69bb26f0d72b9 - - -] Failed to compute_task_build_instances: No valid host was found. There are not enough hosts available.
Traceback (most recent call last):

  File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 199, in inner
    return func(*args, **kwargs)

  File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 104, in select_destinations
    dests = self.driver.select_destinations(ctxt, spec_obj)

  File "/usr/lib/python2.7/site-packages/nova/scheduler/filter_scheduler.py", line 74, in select_destinations
    raise exception.NoValidHost(reason=reason)

NoValidHost: No valid host was found. There are not enough hosts available.


















linuxbrdge不停报错

[root@controller neutron]# cat linuxbridge-agent.log
2017-03-15 22:54:38.301 5095 INFO neutron.plugins.ml2.drivers.agent._common_agent [req-cb75602f-4c10-4c38-8619-21b47e66c6d4 - - - - -] Linux bridge agent Agent out of sync with plugin!
2017-03-15 22:54:38.302 5095 INFO neutron.agent.securitygroups_rpc [req-cb75602f-4c10-4c38-8619-21b47e66c6d4 - - - - -] Preparing filters for devices set(['tap95031d27-bd', 'tap0ccb65a7-30', 'tap1e282c83-25'])
2017-03-15 22:54:39.035 5095 INFO neutron.plugins.ml2.drivers.agent._common_agent [req-cb75602f-4c10-4c38-8619-21b47e66c6d4 - - - - -] Port tap95031d27-bd updated. Details: {u'profile': {}, u'network_qos_policy_id': None, u'qos_policy_id': None, u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'231a2c1d-c405-4381-baf3-2fea85f6fce0', u'segmentation_id': 42, u'device_owner': u'network:router_interface', u'physical_network': None, u'mac_address': u'fa:16:3e:41:63:47', u'device': u'tap95031d27-bd', u'port_security_enabled': False, u'port_id': u'95031d27-bd89-4823-b669-b372c3bb8326', u'fixed_ips': [{u'subnet_id': u'1edaf2bd-b9c2-4498-8cdf-a64db07b5548', u'ip_address': u'10.168.124.1'}], u'network_type': u'vxlan', u'security_groups': []}
2017-03-15 22:54:39.054 5095 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.arp_protect [req-cb75602f-4c10-4c38-8619-21b47e66c6d4 - - - - -] Skipping ARP spoofing rules for port 'tap95031d27-bd' because it has port security disabled
2017-03-15 22:54:39.400 5095 INFO neutron.plugins.ml2.drivers.agent._common_agent [req-cb75602f-4c10-4c38-8619-21b47e66c6d4 - - - - -] Port tap0ccb65a7-30 updated. Details: {u'profile': {}, u'network_qos_policy_id': None, u'qos_policy_id': None, u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'05ca2f4d-5e1b-420d-a665-61bcf8212716', u'segmentation_id': None, u'device_owner': u'network:router_gateway', u'physical_network': u'provider', u'mac_address': u'fa:16:3e:5d:b5:9a', u'device': u'tap0ccb65a7-30', u'port_security_enabled': False, u'port_id': u'0ccb65a7-307b-4958-a117-1cb2cef2ce56', u'fixed_ips': [{u'subnet_id': u'7594614b-e978-44af-9272-9b48477c4710', u'ip_address': u'192.168.106.206'}], u'network_type': u'flat', u'security_groups': []}
2017-03-15 22:54:39.407 5095 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.arp_protect [req-cb75602f-4c10-4c38-8619-21b47e66c6d4 - - - - -] Skipping ARP spoofing rules for port 'tap0ccb65a7-30' because it has port security disabled
2017-03-15 22:54:39.446 5095 ERROR neutron.agent.linux.utils [req-cb75602f-4c10-4c38-8619-21b47e66c6d4 - - - - -] Exit code: 2; Stdin: ; Stdout: ; Stderr: RTNETLINK answers: File exists

2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent [req-cb75602f-4c10-4c38-8619-21b47e66c6d4 - - - - -] Error in agent loop. Devices info: {'current': set(['tap95031d27-bd', 'tap0ccb65a7-30', 'tap1e282c83-25']), 'timestamps': {'tap95031d27-bd': 15, 'tap0ccb65a7-30': 10, 'tap1e282c83-25': 12}, 'removed': set([]), 'added': set(['tap95031d27-bd', 'tap0ccb65a7-30', 'tap1e282c83-25']), 'updated': set([])}
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent Traceback (most recent call last):
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py", line 452, in daemon_loop
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     sync = self.process_network_devices(device_info)
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 154, in wrapper
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     return f(*args, **kwargs)
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py", line 209, in process_network_devices
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     resync_a = self.treat_devices_added_updated(devices_added_updated)
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 154, in wrapper
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     return f(*args, **kwargs)
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py", line 226, in treat_devices_added_updated
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     self._process_device_if_exists(device_details)
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py", line 253, in _process_device_if_exists
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     device, device_details['device_owner'])
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 511, in plug_interface
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     tap_name, device_owner)
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 452, in add_tap_interface
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     return False
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     self.force_reraise()
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     six.reraise(self.type_, self.value, self.tb)
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 444, in add_tap_interface
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     tap_device_name, device_owner)
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 476, in _add_tap_interface
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     segmentation_id)
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 428, in ensure_physical_in_bridge
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     physical_interface)
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 246, in ensure_flat_bridge
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     gateway):
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 387, in ensure_bridge
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     self.update_interface_ip_details(bridge_name, interface, ips, gateway)
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/linuxbridge/agent/linuxbridge_neutron_agent.py", line 326, in update_interface_ip_details
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     dst_device.addr.add(cidr=ip['cidr'])
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 577, in add
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     self._as_root([net.version], tuple(args))
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 364, in _as_root
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     use_root_namespace=use_root_namespace)
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 95, in _as_root
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     log_fail_as_error=self.log_fail_as_error)
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/ip_lib.py", line 104, in _execute
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     log_fail_as_error=log_fail_as_error)
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py", line 138, in execute
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     raise RuntimeError(msg)
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent RuntimeError: Exit code: 2; Stdin: ; Stdout: ; Stderr: RTNETLINK answers: File exists
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent
2017-03-15 22:54:39.456 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent
2017-03-15 22:54:40.301 5095 INFO neutron.plugins.ml2.drivers.agent._common_agent [req-cb75602f-4c10-4c38-8619-21b47e66c6d4 - - - - -] Linux bridge agent Agent out of sync with plugin!
2017-03-15 22:54:40.302 5095 INFO neutron.agent.securitygroups_rpc [req-cb75602f-4c10-4c38-8619-21b47e66c6d4 - - - - -] Preparing filters for devices set(['tap95031d27-bd', 'tap0ccb65a7-30', 'tap1e282c83-25'])
2017-03-15 22:54:41.028 5095 INFO neutron.plugins.ml2.drivers.agent._common_agent [req-cb75602f-4c10-4c38-8619-21b47e66c6d4 - - - - -] Port tap95031d27-bd updated. Details: {u'profile': {}, u'network_qos_policy_id': None, u'qos_policy_id': None, u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'231a2c1d-c405-4381-baf3-2fea85f6fce0', u'segmentation_id': 42, u'device_owner': u'network:router_interface', u'physical_network': None, u'mac_address': u'fa:16:3e:41:63:47', u'device': u'tap95031d27-bd', u'port_security_enabled': False, u'port_id': u'95031d27-bd89-4823-b669-b372c3bb8326', u'fixed_ips': [{u'subnet_id': u'1edaf2bd-b9c2-4498-8cdf-a64db07b5548', u'ip_address': u'10.168.124.1'}], u'network_type': u'vxlan', u'security_groups': []}
2017-03-15 22:54:41.044 5095 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.arp_protect [req-cb75602f-4c10-4c38-8619-21b47e66c6d4 - - - - -] Skipping ARP spoofing rules for port 'tap95031d27-bd' because it has port security disabled
2017-03-15 22:54:41.314 5095 INFO neutron.plugins.ml2.drivers.agent._common_agent [req-cb75602f-4c10-4c38-8619-21b47e66c6d4 - - - - -] Port tap0ccb65a7-30 updated. Details: {u'profile': {}, u'network_qos_policy_id': None, u'qos_policy_id': None, u'allowed_address_pairs': [], u'admin_state_up': True, u'network_id': u'05ca2f4d-5e1b-420d-a665-61bcf8212716', u'segmentation_id': None, u'device_owner': u'network:router_gateway', u'physical_network': u'provider', u'mac_address': u'fa:16:3e:5d:b5:9a', u'device': u'tap0ccb65a7-30', u'port_security_enabled': False, u'port_id': u'0ccb65a7-307b-4958-a117-1cb2cef2ce56', u'fixed_ips': [{u'subnet_id': u'7594614b-e978-44af-9272-9b48477c4710', u'ip_address': u'192.168.106.206'}], u'network_type': u'flat', u'security_groups': []}
2017-03-15 22:54:41.323 5095 INFO neutron.plugins.ml2.drivers.linuxbridge.agent.arp_protect [req-cb75602f-4c10-4c38-8619-21b47e66c6d4 - - - - -] Skipping ARP spoofing rules for port 'tap0ccb65a7-30' because it has port security disabled
2017-03-15 22:54:41.399 5095 ERROR neutron.agent.linux.utils [req-cb75602f-4c10-4c38-8619-21b47e66c6d4 - - - - -] Exit code: 2; Stdin: ; Stdout: ; Stderr: RTNETLINK answers: File exists

2017-03-15 22:54:41.410 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent [req-cb75602f-4c10-4c38-8619-21b47e66c6d4 - - - - -] Error in agent loop. Devices info: {'current': set(['tap95031d27-bd', 'tap0ccb65a7-30', 'tap1e282c83-25']), 'timestamps': {'tap95031d27-bd': 15, 'tap0ccb65a7-30': 10, 'tap1e282c83-25': 12}, 'removed': set([]), 'added': set(['tap95031d27-bd', 'tap0ccb65a7-30', 'tap1e282c83-25']), 'updated': set([])}
2017-03-15 22:54:41.410 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent Traceback (most recent call last):
2017-03-15 22:54:41.410 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py", line 452, in daemon_loop
2017-03-15 22:54:41.410 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     sync = self.process_network_devices(device_info)
2017-03-15 22:54:41.410 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 154, in wrapper
2017-03-15 22:54:41.410 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     return f(*args, **kwargs)
2017-03-15 22:54:41.410 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py", line 209, in process_network_devices
2017-03-15 22:54:41.410 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     resync_a = self.treat_devices_added_updated(devices_added_updated)
2017-03-15 22:54:41.410 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 154, in wrapper
2017-03-15 22:54:41.410 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent     return f(*args, **kwargs)
2017-03-15 22:54:41.410 5095 ERROR neutron.plugins.ml2.drivers.agent._common_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/agent/_common_agent.py", line 226, in treat_devices_added_updated












[root@controller neutron]# cat metadata-agent.log
2017-03-15 20:59:06.137 5086 INFO neutron.common.config [-] Logging enabled!
2017-03-15 20:59:06.138 5086 INFO neutron.common.config [-] /usr/bin/neutron-metadata-agent version 9.0.0
2017-03-15 20:59:06.142 5086 WARNING oslo_config.cfg [-] Option "rabbit_host" from group "oslo_messaging_rabbit" is deprecated for removal.  Its value may be silently ignored in the future.
2017-03-15 20:59:06.143 5086 WARNING oslo_config.cfg [-] Option "rabbit_password" from group "oslo_messaging_rabbit" is deprecated for removal.  Its value may be silently ignored in the future.
2017-03-15 20:59:06.143 5086 WARNING oslo_config.cfg [-] Option "rabbit_userid" from group "oslo_messaging_rabbit" is deprecated for removal.  Its value may be silently ignored in the future.
2017-03-15 20:59:06.155 5086 INFO oslo_service.service [req-2d359aaa-68cb-48b6-87dc-460a0228a5c4 - - - - -] Starting 1 workers
2017-03-15 20:59:06.229 5129 INFO eventlet.wsgi.server [-] (5129) wsgi starting up on http:/var/lib/neutron/metadata_proxy
2017-03-15 21:00:06.505 5086 ERROR neutron.agent.metadata.agent [-] Failed reporting state!
2017-03-15 21:00:06.505 5086 ERROR neutron.agent.metadata.agent Traceback (most recent call last):
2017-03-15 21:00:06.505 5086 ERROR neutron.agent.metadata.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/metadata/agent.py", line 262, in _report_state
2017-03-15 21:00:06.505 5086 ERROR neutron.agent.metadata.agent     use_call=self.agent_state.get('start_flag'))
2017-03-15 21:00:06.505 5086 ERROR neutron.agent.metadata.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/rpc.py", line 88, in report_state
2017-03-15 21:00:06.505 5086 ERROR neutron.agent.metadata.agent     return method(context, 'report_state', **kwargs)
2017-03-15 21:00:06.505 5086 ERROR neutron.agent.metadata.agent   File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/client.py", line 169, in call
2017-03-15 21:00:06.505 5086 ERROR neutron.agent.metadata.agent     retry=self.retry)
2017-03-15 21:00:06.505 5086 ERROR neutron.agent.metadata.agent   File "/usr/lib/python2.7/site-packages/oslo_messaging/transport.py", line 97, in _send
2017-03-15 21:00:06.505 5086 ERROR neutron.agent.metadata.agent     timeout=timeout, retry=retry)
2017-03-15 21:00:06.505 5086 ERROR neutron.agent.metadata.agent   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 464, in send
2017-03-15 21:00:06.505 5086 ERROR neutron.agent.metadata.agent     retry=retry)
2017-03-15 21:00:06.505 5086 ERROR neutron.agent.metadata.agent   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 453, in _send
2017-03-15 21:00:06.505 5086 ERROR neutron.agent.metadata.agent     result = self._waiter.wait(msg_id, timeout)
2017-03-15 21:00:06.505 5086 ERROR neutron.agent.metadata.agent   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 336, in wait
2017-03-15 21:00:06.505 5086 ERROR neutron.agent.metadata.agent     message = self.waiters.get(msg_id, timeout=timeout)
2017-03-15 21:00:06.505 5086 ERROR neutron.agent.metadata.agent   File "/usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py", line 238, in get
2017-03-15 21:00:06.505 5086 ERROR neutron.agent.metadata.agent     'to message ID %s' % msg_id)
2017-03-15 21:00:06.505 5086 ERROR neutron.agent.metadata.agent MessagingTimeout: Timed out waiting for a reply to message ID 82b94c3b84b64ae09dd4d5429fc8f687
2017-03-15 21:00:06.505 5086 ERROR neutron.agent.metadata.agent
2017-03-15 21:00:06.507 5086 WARNING oslo.service.loopingcall [-] Function 'neutron.agent.metadata.agent.UnixDomainMetadataProxy._report_state' run outlasted interval by 30.29 sec




创建就报错

创建就报错

日志信息

日志信息

已有(4)人评论

跳转到指定楼层
767230024 发表于 2017-3-16 08:34:57
easthome001 发表于 2017-3-15 12:59
先检测下服务是否正常,另外你的哪个版本

检测Nova组件:

newton
回复

使用道具 举报

hyj 发表于 2017-3-15 12:03:32
http://www.aboutyun.com/thread-11203-1-1.html
跟这个类似,楼主检测下nova相关服务及neutron相关服务。
只要各个组件正常,创建实例肯定没有问题的。
回复

使用道具 举报

easthome001 发表于 2017-3-15 12:59:01

回帖奖励 +1 云币

先检测下服务是否正常,另外你的哪个版本

检测Nova组件:
kilo以前版本
[mw_shl_code=bash,true]nova service-list
[/mw_shl_code]
M版本
[mw_shl_code=bash,true]openstack compute service list
[/mw_shl_code]

重启 nova-conductor
[mw_shl_code=bash,true]service nova-conductor restart
[/mw_shl_code]



检测网络组件
[mw_shl_code=bash,true]neutron agent-list[/mw_shl_code]

回复

使用道具 举报

767230024 发表于 2017-3-16 08:38:06
hyj 发表于 2017-3-15 12:03
http://www.aboutyun.com/thread-11203-1-1.html
跟这个类似,楼主检测下nova相关服务及neutron相关服务。 ...

各个组件都是起来的。。我看看,感谢层主的建议
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条