在devstack安装的环境中[email protected] 服务总是重启失败。
看下该unit的日志报错:
Unable to deploy instance for loadbalancer: 5c5a983f-29a6-4752-9acd-5e9a72765367#033[00m: TimeoutException: Commands [, , ] exceeded timeout 10 seconds
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00mTraceback (most recent call last):
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m File "/opt/stack/neutron-lbaas/neutron_lbaas/agent/agent_manager.py", line 193, in _reload_loadbalancer
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m self.device_drivers[driver_name].deploy_instance(loadbalancer)
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 274, in inner
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m return f(*args, **kwargs)
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m File "/opt/stack/neutron-lbaas/neutron_lbaas/drivers/haproxy/namespace_driver.py", line 229, in deploy_instance
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m self.create(loadbalancer)
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m File "/opt/stack/neutron-lbaas/neutron_lbaas/drivers/haproxy/namespace_driver.py", line 256, in create
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m self._plug(namespace, loadbalancer.vip_port, loadbalancer.vip_address)
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m File "/opt/stack/neutron-lbaas/neutron_lbaas/drivers/haproxy/namespace_driver.py", line 353, in _plug
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m mtu=port.network.mtu
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m File "/opt/stack/neutron/neutron/agent/linux/interface.py", line 275, in plug
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m bridge, namespace, prefix, mtu)
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m File "/opt/stack/neutron/neutron/agent/linux/interface.py", line 374, in plug_new
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m internal=internal)
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m File "/opt/stack/neutron/neutron/agent/linux/interface.py", line 346, in _ovs_add_port
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m ovs.replace_port(device_name, *attrs)
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m File "/opt/stack/neutron/neutron/agent/common/ovs_lib.py", line 319, in replace_port
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m *interface_attr_tuples))
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m File "/usr/lib64/python2.7/contextlib.py", line 24, in __exit__
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m self.gen.next()
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m File "/usr/lib/python2.7/site-packages/ovsdbapp/api.py", line 112, in transaction
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m del self._nested_txns_map[cur_thread_id]
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m File "/usr/lib/python2.7/site-packages/ovsdbapp/api.py", line 69, in __exit__
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m self.result = self.commit()
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m File "/usr/lib/python2.7/site-packages/ovsdbapp/backend/ovs_idl/transaction.py", line 57, in commit
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m timeout=self.timeout)
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00mTimeoutException: Commands [, , ] exceeded timeout 10 seconds
neutron-lbaasv2-agent: ERROR neutron_lbaas.agent.agent_manager #033[01;35m#033[00m#033[00m
neutron-lbaasv2-agent: #033[01;31mERROR ovsdbapp.schema.open_vswitch.impl_idl [#033[00;36m-#033[01;31m] #033[01;35m#033[01;31mPost-commit checks failed#033[00m: TimeoutException: Commands [, , ] exceeded timeout 10 seconds
neutron-lbaasv2-agent: ERROR ovsdbapp.schema.open_vswitch.impl_idl #033[01;35m#033[00mTraceback (most recent call last):
neutron-lbaasv2-agent: ERROR ovsdbapp.schema.open_vswitch.impl_idl #033[01;35m#033[00m File "/usr/lib/python2.7/site-packages/ovsdbapp/schema/open_vswitch/impl_idl.py", line 40, in post_commit
neutron-lbaasv2-agent: ERROR ovsdbapp.schema.open_vswitch.impl_idl #033[01;35m#033[00m self.do_post_commit(txn)
neutron-lbaasv2-agent: ERROR ovsdbapp.schema.open_vswitch.impl_idl #033[01;35m#033[00m File "/usr/lib/python2.7/site-packages/ovsdbapp/schema/open_vswitch/impl_idl.py", line 60, in do_post_commit
neutron-lbaasv2-agent: ERROR ovsdbapp.schema.open_vswitch.impl_idl #033[01;35m#033[00m timeout=self.timeout)
neutron-lbaasv2-agent: ERROR ovsdbapp.schema.open_vswitch.impl_idl #033[01;35m#033[00mTimeoutException: Commands [, , ] exceeded timeout 10 seconds
主要的错误是:Commands [
ovsdb服务出错。
我做了一下两件事:
修改 /etc/neutron/dhcp_agent.ini
ovsdb_interface = vsctl
检查ovsdb服务:
systemctl status ovsdb-server
若服务failed,请重启。
systemctl restart ovsdb-server