分享

N版本创建虚拟机问题

一下是错误日志........

2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746] Traceback (most recent call last):
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2078, in _build_resources
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     yield resources
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1920, in _build_and_run_instance
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     block_device_info=block_device_info)
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2592, in spawn
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     write_to_disk=True)
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4624, in _get_guest_xml
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     network_info_str = str(network_info)
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/nova/network/model.py", line 525, in __str__
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     return self._sync_wrapper(fn, *args, **kwargs)
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/nova/network/model.py", line 508, in _sync_wrapper
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     self.wait()
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/nova/network/model.py", line 540, in wait
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     self[:] = self._gt.wait()
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 175, in wait
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     return self._exit_event.wait()
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/eventlet/event.py", line 121, in wait
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     return hubs.get_hub().switch()
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/eventlet/hubs/hub.py", line 294, in switch
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     return self.greenlet.switch()
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/eventlet/greenthread.py", line 214, in main
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     result = function(*args, **kwargs)
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/nova/utils.py", line 1066, in context_wrapper
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     return func(*args, **kwargs)
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1414, in _allocate_network_async
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     six.reraise(*exc_info)
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1397, in _allocate_network_async
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     bind_host_id=bind_host_id)
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 881, in allocate_for_instance
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     bind_host_id, dhcp_opts, available_macs)
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 1000, in _update_ports_for_instance
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     vif.destroy()
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     self.force_reraise()
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     six.reraise(self.type_, self.value, self.tb)
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 970, in _update_ports_for_instance
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     port_client, instance, port_id, port_req_body)
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 437, in _update_port
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     _ensure_no_port_binding_failure(port)
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 175, in _ensure_no_port_binding_failure
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]     raise exception.PortBindingFailed(port_id=port['id'])
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746] PortBindingFailed: Binding failed for port 15c0f1f8-3283-40ab-9f77-950e73e919e6, please check neutron logs for more information.
2017-02-06 20:09:31.474 4277 ERROR nova.compute.manager [instance: c47bdb3d-8b98-42dd-a19f-0a5fd920b746]



到了neutron节点的日志去看...发现是以下问题...请问有没有坛友遇到过....麻烦给点提示..谢谢

2017-02-06 20:17:21.474 1677 INFO neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [req-3fbc6abb-88d8-45e2-8fe1-c88217e0439e - - - - -] Agent out of sync with plugin!
2017-02-06 20:17:22.227 1677 WARNING neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [req-3fbc6abb-88d8-45e2-8fe1-c88217e0439e - - - - -] Device a6873490-aff7-44b7-9619-efb4ad5dece8 not defined on plugin or binding failed
2017-02-06 20:17:22.228 1677 WARNING neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [req-3fbc6abb-88d8-45e2-8fe1-c88217e0439e - - - - -] Device 71cd9e3d-2863-43c7-a462-5f01d09a6dba not defined on plugin or binding failed
2017-02-06 20:17:22.229 1677 WARNING neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [req-3fbc6abb-88d8-45e2-8fe1-c88217e0439e - - - - -] Device b8c1bb56-930d-4341-b3b1-f93c14ae8830 not defined on plugin or binding failed
2017-02-06 20:17:22.230 1677 WARNING neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [req-3fbc6abb-88d8-45e2-8fe1-c88217e0439e - - - - -] Device 6e2fcc82-a446-4308-ab21-2459dbd6a5ec not defined on plugin or binding failed
2017-02-06 20:17:22.234 1677 INFO neutron.agent.securitygroups_rpc [req-3fbc6abb-88d8-45e2-8fe1-c88217e0439e - - - - -] Preparing filters for devices set([u'a6873490-aff7-44b7-9619-efb4ad5dece8', u'71cd9e3d-2863-43c7-a462-5f01d09a6dba', u'b8c1bb56-930d-4341-b3b1-f93c14ae8830', u'6e2fcc82-a446-4308-ab21-2459dbd6a5ec'])
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent [req-3fbc6abb-88d8-45e2-8fe1-c88217e0439e - - - - -] Error while processing VIF ports
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent Traceback (most recent call last):
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py", line 2047, in rpc_loop
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     port_info, ovs_restarted)
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 154, in wrapper
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     return f(*args, **kwargs)
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py", line 1655, in process_network_ports
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     port_info.get('updated', set()))
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/neutron/agent/securitygroups_rpc.py", line 265, in setup_port_filters
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     self.prepare_devices_filter(new_devices)
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/neutron/agent/securitygroups_rpc.py", line 130, in decorated_function
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     *args, **kwargs)
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/neutron/agent/securitygroups_rpc.py", line 138, in prepare_devices_filter
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     self._apply_port_filter(device_ids)
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/neutron/agent/securitygroups_rpc.py", line 163, in _apply_port_filter
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     self.firewall.prepare_port_filter(device)
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib64/python2.7/contextlib.py", line 24, in __exit__
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     self.gen.next()
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/neutron/agent/firewall.py", line 139, in defer_apply
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     self.filter_defer_apply_off()
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/iptables_firewall.py", line 838, in filter_defer_apply_off
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     self.iptables.defer_apply_off()
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/iptables_manager.py", line 431, in defer_apply_off
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     self._apply()
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/iptables_manager.py", line 444, in _apply
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     with lockutils.lock(lock_name, utils.SYNCHRONIZED_PREFIX, True):
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     return self.gen.next()
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 216, in lock
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     ext_lock.acquire(delay=delay)
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/fasteners/process_lock.py", line 151, in acquire
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     self._do_open()
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/fasteners/process_lock.py", line 115, in _do_open
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     made_basedir = _ensure_tree(basedir)
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib/python2.7/site-packages/fasteners/process_lock.py", line 37, in _ensure_tree
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     os.makedirs(path)
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib64/python2.7/os.py", line 150, in makedirs
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     makedirs(head, mode)
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent   File "/usr/lib64/python2.7/os.py", line 157, in makedirs
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent     mkdir(name, mode)
2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent OSError: [Errno 13] Permission denied: '/var/lib/nova'

2017-02-06 20:17:22.304 1677 ERROR neutron.plugins.ml2.drivers.openvswitch.agent.ovs_neutron_agent


请问有人遇到过么




已有(9)人评论

跳转到指定楼层
xiehuilj 发表于 2017-2-7 12:20:54
这个日志是openvswtich agnet的.....网络节点..
回复

使用道具 举报

xiehuilj 发表于 2017-2-7 12:21:27
2017-02-06 20:18:58.441 30004 INFO neutron.agent.linux.interface [-] Device qg-08a60f64-7e already exists
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager [-] Failure applying iptables rules
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager Traceback (most recent call last):
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/iptables_manager.py", line 417, in defer_apply
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager     self.defer_apply_off()
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/iptables_manager.py", line 431, in defer_apply_off
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager     self._apply()
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/iptables_manager.py", line 444, in _apply
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager     with lockutils.lock(lock_name, utils.SYNCHRONIZED_PREFIX, True):
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager   File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager     return self.gen.next()
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager   File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 216, in lock
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager     ext_lock.acquire(delay=delay)
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager   File "/usr/lib/python2.7/site-packages/fasteners/process_lock.py", line 151, in acquire
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager     self._do_open()
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager   File "/usr/lib/python2.7/site-packages/fasteners/process_lock.py", line 115, in _do_open
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager     made_basedir = _ensure_tree(basedir)
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager   File "/usr/lib/python2.7/site-packages/fasteners/process_lock.py", line 37, in _ensure_tree
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager     os.makedirs(path)
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager   File "/usr/lib64/python2.7/os.py", line 150, in makedirs
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager     makedirs(head, mode)
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager   File "/usr/lib64/python2.7/os.py", line 157, in makedirs
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager     mkdir(name, mode)
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager OSError: [Errno 13] Permission denied: '/var/lib/nova'
2017-02-06 20:18:58.635 30004 ERROR neutron.agent.linux.iptables_manager
2017-02-06 20:18:58.637 30004 ERROR neutron.agent.l3.router_info [-] Failed to process floating IPs.
2017-02-06 20:18:58.637 30004 ERROR neutron.agent.l3.router_info Traceback (most recent call last):
2017-02-06 20:18:58.637 30004 ERROR neutron.agent.l3.router_info   File "/usr/lib/python2.7/site-packages/neutron/agent/l3/router_info.py", line 845, in process_external
2017-02-06 20:18:58.637 30004 ERROR neutron.agent.l3.router_info     self.process_snat_dnat_for_fip()
2017-02-06 20:18:58.637 30004 ERROR neutron.agent.l3.router_info   File "/usr/lib64/python2.7/contextlib.py", line 24, in __exit__
2017-02-06 20:18:58.637 30004 ERROR neutron.agent.l3.router_info     self.gen.next()
2017-02-06 20:18:58.637 30004 ERROR neutron.agent.l3.router_info   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/iptables_manager.py", line 424, in defer_apply
2017-02-06 20:18:58.637 30004 ERROR neutron.agent.l3.router_info     raise n_exc.IpTablesApplyException(msg)
2017-02-06 20:18:58.637 30004 ERROR neutron.agent.l3.router_info IpTablesApplyException: Failure applying iptables rules
2017-02-06 20:18:58.637 30004 ERROR neutron.agent.l3.router_info
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager [-] Failure applying iptables rules
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager Traceback (most recent call last):
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/iptables_manager.py", line 417, in defer_apply
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager     self.defer_apply_off()
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/iptables_manager.py", line 431, in defer_apply_off
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager     self._apply()
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/iptables_manager.py", line 444, in _apply
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager     with lockutils.lock(lock_name, utils.SYNCHRONIZED_PREFIX, True):
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager   File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager     return self.gen.next()
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager   File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 216, in lock
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager     ext_lock.acquire(delay=delay)
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager   File "/usr/lib/python2.7/site-packages/fasteners/process_lock.py", line 151, in acquire
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager     self._do_open()
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager   File "/usr/lib/python2.7/site-packages/fasteners/process_lock.py", line 115, in _do_open
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager     made_basedir = _ensure_tree(basedir)
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager   File "/usr/lib/python2.7/site-packages/fasteners/process_lock.py", line 37, in _ensure_tree
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager     os.makedirs(path)
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager   File "/usr/lib64/python2.7/os.py", line 150, in makedirs
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager     makedirs(head, mode)
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager   File "/usr/lib64/python2.7/os.py", line 157, in makedirs
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager     mkdir(name, mode)
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager OSError: [Errno 13] Permission denied: '/var/lib/nova'
2017-02-06 20:18:58.641 30004 ERROR neutron.agent.linux.iptables_manager
2017-02-06 20:18:58.642 30004 ERROR neutron.agent.l3.router_info [-] Failure applying iptables rules
2017-02-06 20:18:58.642 30004 ERROR neutron.agent.l3.router_info Traceback (most recent call last):
2017-02-06 20:18:58.642 30004 ERROR neutron.agent.l3.router_info   File "/usr/lib/python2.7/site-packages/neutron/common/utils.py", line 239, in call
2017-02-06 20:18:58.642 30004 ERROR neutron.agent.l3.router_info     return func(*args, **kwargs)
2017-02-06 20:18:58.642 30004 ERROR neutron.agent.l3.router_info   File "/usr/lib/python2.7/site-packages/neutron/agent/l3/router_info.py", line 1063, in process
2017-02-06 20:18:58.642 30004 ERROR neutron.agent.l3.router_info     self.process_address_scope()
2017-02-06 20:18:58.642 30004 ERROR neutron.agent.l3.router_info   File "/usr/lib/python2.7/site-packages/neutron/agent/l3/router_info.py", line 1028, in process_address_scope
2017-02-06 20:18:58.642 30004 ERROR neutron.agent.l3.router_info     self.process_floating_ip_address_scope_rules()
2017-02-06 20:18:58.642 30004 ERROR neutron.agent.l3.router_info   File "/usr/lib64/python2.7/contextlib.py", line 24, in __exit__
2017-02-06 20:18:58.642 30004 ERROR neutron.agent.l3.router_info     self.gen.next()
2017-02-06 20:18:58.642 30004 ERROR neutron.agent.l3.router_info   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/iptables_manager.py", line 424, in defer_apply
2017-02-06 20:18:58.642 30004 ERROR neutron.agent.l3.router_info     raise n_exc.IpTablesApplyException(msg)
2017-02-06 20:18:58.642 30004 ERROR neutron.agent.l3.router_info IpTablesApplyException: Failure applying iptables rules
2017-02-06 20:18:58.642 30004 ERROR neutron.agent.l3.router_info
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent [-] Failed to process compatible router: b97e747c-151b-49b9-96b3-9fe9097e8cbf
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent Traceback (most recent call last):
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/l3/agent.py", line 508, in _process_router_update
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent     self._process_router_if_compatible(router)
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/l3/agent.py", line 445, in _process_router_if_compatible
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent     self._process_updated_router(router)
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/l3/agent.py", line 460, in _process_updated_router
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent     ri.process(self)
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/common/utils.py", line 242, in call
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent     self.logger(e)
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent     self.force_reraise()
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent     six.reraise(self.type_, self.value, self.tb)
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/common/utils.py", line 239, in call
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent     return func(*args, **kwargs)
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/l3/router_info.py", line 1063, in process
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent     self.process_address_scope()
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/l3/router_info.py", line 1028, in process_address_scope
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent     self.process_floating_ip_address_scope_rules()
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent   File "/usr/lib64/python2.7/contextlib.py", line 24, in __exit__
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent     self.gen.next()
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent   File "/usr/lib/python2.7/site-packages/neutron/agent/linux/iptables_manager.py", line 424, in defer_apply
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent     raise n_exc.IpTablesApplyException(msg)
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent IpTablesApplyException: Failure applying iptables rules
2017-02-06 20:18:58.644 30004 ERROR neutron.agent.l3.agent



这个错误是 L3 agent的错误日志....

回复

使用道具 举报

xiehuilj 发表于 2017-2-7 12:23:41
这个是 ML2的配置

DEFAULT]
verbose = True
[ml2]
type_drivers = flat,vlan,gre,vxlan
tenant_network_types = vxlan
mechanism_drivers = openvswitch,l2population
extension_drivers = port_security
[ml2_type_flat]
flat_networks = provider
[ml2_type_geneve]
[ml2_type_gre]
[ml2_type_vlan]
[ml2_type_vxlan]
vni_ranges = 1:1000
[securitygroup]
enable_security_group = True
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_ipset = True


这个是openvswitch的配置

[DEFAULT]
verbose = True
[agent]
tunnel_types=vxlan
l2_population=True
prevent_arp_spoofing=True
[ovs]
local_ip=192.168.1.100
bridge_mappings=provider:br-ex
[securitygroup]
enable_security_group = True
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_ipset = True


以下是L3的配置

[DEFAULT]
verbose = True
interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver
external_network_bridge = br-ex

以上配置都是网络节点....
回复

使用道具 举报

starrycheng 发表于 2017-2-7 13:29:46
xiehuilj 发表于 2017-2-7 12:23
这个是 ML2的配置

DEFAULT]

是不是看错文档了,N版没有网络节点。

opentack.jpg
在安装的时候需要注意细节。
DEFAULT
verbose = True
[ml2]
比如上面就落下了中括号的左边、

并且从楼主的日志来看,应该是进程都存在问题的,所以创建实例,不会成功的。
回复

使用道具 举报

xiehuilj 发表于 2017-2-7 13:31:06
没有落下...只是我复制的时候就错了........

我知道 N 版没有...我现在是把他分开的.......

回复

使用道具 举报

starrycheng 发表于 2017-2-7 13:36:58
xiehuilj 发表于 2017-2-7 13:31
没有落下...只是我复制的时候就错了........

我知道 N 版没有...我现在是把他分开的.......

作为新手,不建议这么做。
先把官网的配置熟练,各个配置项都明白,然后在分开。否则这样会出现各种问题,到处都是坑。
回复

使用道具 举报

xiehuilj 发表于 2017-2-7 13:56:40
谢谢提醒....按照官方的文档已经是做了好几次..已经通了....现在想分离网络节点....麻烦指点指点..看看哪里出了问题..谢谢
回复

使用道具 举报

sstutu 发表于 2017-2-7 17:12:24
xiehuilj 发表于 2017-2-7 13:56
谢谢提醒....按照官方的文档已经是做了好几次..已经通了....现在想分离网络节点....麻烦指点指点..看看哪里 ...

这个跟你的思路有关系,别人能帮助的有限。
从大的方面来讲,首先确定你的服务都是起来的。而且没有问题。
回复

使用道具 举报

xiehuilj 发表于 2017-2-8 10:49:39
谢谢大家..谢谢版主..找到问题了...已经解决..谢谢
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条