Neutron配置文件简析(J版RDO安装)
sina微博@北京-小武 个人博客: http://blog.csdn.net/night_elf_1020
Neutron的配置文件随着代码的修改而变化,理解每个配置选项的含义对于正确部署Neutron或快速定位Neutron的异常问题有着重要的意思。下面仅仅简陋的讲解下Neutron主要配置文件重要配置项的含义,表述不准确的地方还请见谅。
1)neutron进程分布
控制节点:neutron-server,
网络节点:
neutron-lbaas-agent/neutron-metadata-agent/neutron-l3-agent/neutron-dhcp-agent/neutron-openvswitch-agent/neutron-vpn-agent(可以看出没有fwaas的服务进程,原因是其包含在neutron-l3-agent中)
计算节点:neutron-openvswitch-agent;
每个进程所用到的配置文件,可以通过ps –aux|grep service_name来查看启动所需的相应文件。
2)配置文件主要有:
其中J版中新添dnsmasq-neutron.conf以增加对dnsmasq服务的控制,下面对配置文件的主要参数进行解析:
a)cat api-paste.ini
用于neutron提供restful api被调用的认证相关所需信息,包括租户名称/用户名称/密码、主机IP/访问协议http/访问端口35357等token信息:
b)cat dnsmasq-neutron.conf
dhcp-option-force=26,1400
其中1400代表新建VM通过DCHP获取IP后端口的MTU大小;
c)cat l3_agent.ini
[DEFAULT]
#L3 agent服务调试开关
debug = False
# OVS, Ryu, NEC做为Plugin时的接口驱动
interface_driver=neutron.agent.linux.interface.OVSInterfaceDriver
#OVS interface 是否使用ovs_use_veth,需要内核支持namespace.
# ovs_use_veth = False
# 允许建立多个namespace,以此来支持IP地址重叠,即一个租户在不同的路由器下可以同时使用相同的私网网段
use_namespaces = True
# 此选项在内核不支持多个namespace时,只绑定一个对应的router
router_id =
# 在创建多个外网时(不包含一个外网多个子网的情况),用于将l3 agent和外网ID的绑定
gateway_external_network_id =
# Indicates that this L3 agent should alsohandle routers that do not have
# an external network gatewayconfigured. This option should be Trueonly
# for a single agent in a Neutrondeployment, and may be False for all agents
# if all routers must have an externalnetwork gateway
# handle_internal_only_routers = True
handle_internal_only_routers = True
# 网络节点外网网桥的名字
external_network_bridge = br-ex
# Neutron metadata server的TCP端口
metadata_port =