问题:
[root@localhost ~]# systemctl status neutron-server
● neutron-server.service - OpenStack Neutron Server
Loaded: loaded (/usr/lib/systemd/system/neutron-server.service; disabled; vendor preset: disabled)
Active: inactive (dead)
[root@localhost ~]# systemctl restart neutron-server
Job for neutron-server.service failed because the control process exited with error code. See "systemctl status neutron-server.service" and "journalctl -xe" for details.
[root@localhost ~]# systemctl status neutron-server.service
● neutron-server.service - OpenStack Neutron Server
Loaded: loaded (/usr/lib/systemd/system/neutron-server.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2016-09-21 02:24:59 EDT; 5s ago
Process: 3304 ExecStart=/usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf --config-dir /usr/share/neutron/server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-server --log-file /var/log/neutron/server.log (code=exited, status=1/FAILURE)
Main PID: 3304 (code=exited, status=1/FAILURE)
 
Sep 21 02:24:56 localhost systemd[1]: Starting OpenStack Neutron Server...
Sep 21 02:24:57 localhost neutron-server[3304]: Guru mediation now registers SIGUSR1 and SIGUSR2 by defau...rts.
Sep 21 02:24:58 localhost neutron-server[3304]: Option "verbose" from group "DEFAULT" is deprecated for r...ure.
Sep 21 02:24:58 localhost neutron-server[3304]: Option "notification_driver" from group "DEFAULT" is depr...ns".
Sep 21 02:24:59 localhost systemd[1]: neutron-server.service: main process exited, code=exited, status=1/FAILURE
Sep 21 02:24:59 localhost systemd[1]: Failed to start OpenStack Neutron Server.
Sep 21 02:24:59 localhost systemd[1]: Unit neutron-server.service entered failed state.
Sep 21 02:24:59 localhost systemd[1]: neutron-server.service failed.
 
 
1.分析:
logs看问题:
cd /var/log/neutron/
tail -f *.log
 
2016-09-21 02:36:52.236 5132 INFO neutron.common.config [-] Logging enabled!
2016-09-21 02:36:52.236 5132 INFO neutron.common.config [-] /usr/bin/neutron-server version 8.1.2
2016-09-21 02:36:52.237 5132 INFO neutron.common.config [-] Logging enabled!
2016-09-21 02:36:52.237 5132 INFO neutron.common.config [-] /usr/bin/neutron-server version 8.1.2
2016-09-21 02:36:52.252 5132 INFO neutron.manager [-] Loading core plugin: neutron.plugins.ml2.plugin.Ml2Plugin
2016-09-21 02:36:52.453 5132 INFO neutron.plugins.ml2.managers [-] Configured type driver names: ['flat', 'local']
2016-09-21 02:36:52.457 5132 INFO neutron.plugins.ml2.drivers.type_flat [-] Arbitrary flat physical_network names allowed
2016-09-21 02:36:52.458 5132 INFO neutron.plugins.ml2.drivers.type_local [-] ML2 LocalTypeDriver initialization complete
2016-09-21 02:36:52.458 5132 INFO neutron.plugins.ml2.managers [-] Loaded type driver names: ['flat', 'local']
2016-09-21 02:36:52.458 5132 INFO neutron.plugins.ml2.managers [-] Registered types: ['flat', 'local']
2016-09-21 02:36:52.459 5132 ERROR neutron.plugins.ml2.managers [-] No type driver for tenant network_type: vlan. Service terminated!
 
查看配置文件:
/etc/neutron/plugins/ml2/ml2_conf.ini
[ml2]
 
#
# From neutron.ml2
#
 
# List of network type driver entrypoints to be loaded from the
# neutron.ml2.type_drivers namespace. (list value)
#type_drivers = local,flat,vlan,gre,vxlan,geneve
type_drivers = flat,local
 
# Ordered list of network_types to allocate as tenant networks. The default
# value 'local' is useful for single-box testing but provides no connectivity
# between hosts. (list value)
#tenant_network_types = local
tenant_network_types = vlan
 
driver支持flat和local两种,但是tenant_network_type却使用vlan类型导致:
No type driver for tenant network_type: vlan. Service terminated!
 
解决方法:
type_drivers = flat,vlan,local
 
结果:
[root@localhost ml2]# systemctl restart neutron-server
[root@localhost ml2]# systemctl status neutron-server
● neutron-server.service - OpenStack Neutron Server
Loaded: loaded (/usr/lib/systemd/system/neutron-server.service; disabled; vendor preset: disabled)
Active: active (running) since Wed 2016-09-21 02:38:28 EDT; 6min ago
Main PID: 5384 (neutron-server)
CGroup: /system.slice/neutron-server.service
├─5384 /usr/bin/python2 /usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf...
├─5400 /usr/bin/python2 /usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf...
├─5401 /usr/bin/python2 /usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf...
├─5402 /usr/bin/python2 /usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf...
├─5403 /usr/bin/python2 /usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf...
└─5404 /usr/bin/python2 /usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf...
 
Sep 21 02:38:24 localhost systemd[1]: Starting OpenStack Neutron Server...
Sep 21 02:38:24 localhost neutron-server[5384]: Guru mediation now registers SIGUSR1 and SIGUSR2 by defau...rts.
Sep 21 02:38:26 localhost neutron-server[5384]: Option "verbose" from group "DEFAULT" is deprecated for r...ure.
Sep 21 02:38:26 localhost neutron-server[5384]: Option "notification_driver" from group "DEFAULT" is depr...ns".
Sep 21 02:38:28 localhost systemd[1]: Started OpenStack Neutron Server.
Hint: Some lines were ellipsized, use -l to show in full.
 

Fail to start neutron-server的更多相关文章

  1. 理解 Neutron Server 分层模型 - 每天5分钟玩转 OpenStack(69)

    本节开始讨论 Neutron 的各个服务组件,首先学习 Neutron Server . 上图是 Neutron Server 的分层结构,至上而下依次为: Core API对外提供管理 networ ...

  2. Neutron server的运行原理(未完待续)

    1.Neutron server首先是一个web server, 对于http和https协议的报文进行响应. 2.Neutron server进程里面包含了一个WSGI 应用程序,以及不同模块的pl ...

  3. 【打印机】无法连接 fail to connect to server cups 服务器错误 打印机

       打印机     fail to connect to server cups 服务器错误兆芯 打印机 连不上了####message可知 服务fail## systemd: cups.servi ...

  4. neutron full stack

    1.  通读一下 neutron的那个文档.  里面介绍了, db怎么隔离的, amqp怎么隔离的. 2.  记住文档中,那个full stack的图. 3.  走读代码      从TestOvsC ...

  5. 持续集成:CruiseControl.NET + VisualSVN.Server

    刚换了工作,有需要搭建一套持续集成的平台,做一下总结. 首先是我用到的工具: 上面缺少了Microsoft Fxcop,可以用来做代码校验,不过实际情况暂时还没有用到.主要的需求目前是,使用已发布的稳 ...

  6. 两张图总结 Neutron 架构 - 每天5分钟玩转 OpenStack(74)

    前面我们详细讨论了 Neutron 架构,包括 Neutron Server,Core 和 Service Agent.现在用两张图做个总结.先看第一张: 与 OpenStack 其他服务一样,Neu ...

  7. Neutron 如何支持多种 network provider - 每天5分钟玩转 OpenStack(70)

    Neutron 的架构是非常开放的,可以支持多种 network provider,只要遵循一定的设计原则和规范.本节我们将开始讨论这个主题. 先讨论一个简单的场景:在 Neutorn 中使用 lin ...

  8. Neutron 物理部署方案 - 每天5分钟玩转 OpenStack(68)

    前面我们讨论了 Neutron 的架构,本节讨论 Neutron 的物理部署方案:不同节点部署不同的 Neutron 服务组件. 方案1:控制节点 + 计算节点 在这个部署方案中,OpenStack ...

  9. Neutron 架构 - 每天5分钟玩转 OpenStack(67)

    前面我们讨论了 Neutron 的基本概念,今天我们开始分析 Neutron 的架构. Neutron 架构 与 OpenStack 的其他服务的设计思路一样,Neutron 也是采用分布式架构,由多 ...

  10. Neutron 理解 (1): Neutron 所实现的虚拟化网络 [How Netruon Virtualizes Network]

    学习 Neutron 系列文章: (1)Neutron 所实现的虚拟化网络 (2)Neutron OpenvSwitch + VLAN 虚拟网络 (3)Neutron OpenvSwitch + GR ...

随机推荐

  1. 移动端网页 -- 安卓与IOS兼容

    1.在a链接长按时,ios系统会识别并复制a链接中的href值,而安卓不会,只会选择复制文字 关于长按复制其他区域内容:pc端可以实现,在移动端目前还没有找到解决方案,很多都是基于flash的 2.i ...

  2. ASP.NET MVC3 中整合 NHibernate3.3、Spring.NET2.0 时 Session 关闭问题

    一.问题描述 在向ASP.NET MVC中整合NHibernate.Spring.NET后,如下管理员与角色关系: 类public class Admin { public virtual strin ...

  3. 对于div的右浮动会导致顺序会改变

    当我们设置几个div右浮动的时候会出现顺序的改变,直接倒序了. 解决的方法是在几个div外面加上一个大的div即可,但是里面的所有div都要左浮动才行,具体做法如下: <!DOCTYPE htm ...

  4. CSS3实现动画

    CSS3实现一个简单的动画 可以改变任意多的样式任意多的次数,用百分比来规定变化发生的时间,或用关键词 "from" 和 "to",等同于 0% 和 100%. ...

  5. 持续集成基础-Jenkins(二)-搭建Jenkins环境和配置第一个Job

    安装方式一(直接启动): 1.下载最新的版本(一个 WAR 文件).Jenkins官方网址: http://Jenkins-ci.org/ 2.运行 java -jar jenkins.war(需要运 ...

  6. HDU4807 Lunch Time(费用流变种)

    题目 Source http://acm.hdu.edu.cn/showproblem.php?pid=4807 Description The campus of Nanjing Universit ...

  7. unity

    static function Instantiate (original : Object, position : Vector3, rotation : Quaternion) : Object ...

  8. [转]shell 变量替换

    转自:http://blog.csdn.net/xuhongning/article/details/6191515 1,参数替换: 不含有“:”的,只要定义了,就生效,不管是否为空 含有“:”的,即 ...

  9. Leetcode Validate Binary Search Tree

    Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as ...

  10. Leetcode Maximum Depth of Binary Tree

    Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the long ...