所有路由器的接口状态都已关闭

时间:2017-08-04 01:52:28

标签: openstack router

我创建了一个路由器,在其中我为路由器创建了一个接口:

enter image description here

但是你看,状态都是Down,如何调试界面?为什么一切都失败了?

修改-1

/var/log/neutron/server.log中,我使用cat server.log | grep router,获取以下信息:

enter image description here

2017-08-04 08:56:13.835 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 08:56:50.830 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 08:57:27.826 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 08:58:04.822 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 08:58:41.817 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 08:59:18.813 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 08:59:55.809 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:00:32.805 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:01:09.800 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:01:46.796 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:02:23.792 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:03:00.788 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:03:37.783 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:04:14.779 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:04:51.775 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:05:28.771 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:06:05.766 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:06:42.762 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:07:19.757 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:07:56.753 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:08:33.750 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:09:10.746 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:09:47.743 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:10:24.739 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:11:01.735 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:11:38.731 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:12:15.728 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:12:52.724 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:13:29.721 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:14:06.718 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.
2017-08-04 09:14:43.715 103451 ERROR neutron.db.agentschedulers_db [req-7a2dde4e-5aca-499d-8946-5bfd965cea93 - - - - -] Exception encountered during router rescheduling.

2 个答案:

答案 0 :(得分:0)

因为你的港口'管理状态都在提高,所以有一些可能的原因如下。

  1. 同伴关闭了。
  2. 您的界面上没有电缆。

答案 1 :(得分:0)

最后,我在/etc/neutron/plugins/ml2/ml2_conf.ini配置文件中发现,我没有配置ml2 type_driversmechanism_drivers。所以我配置它们:

# openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 type_drivers flat,vlan,vxlan
# openstack-config --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 mechanism_drivers linuxbridge,l2population

然后重启中子服务器:

systemctl restart neutron-server.service
systemctl restart  neutron-l3-agent.service

现在,它运作正常。