Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created December 12, 2014 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5e39ff6dbdd365a7d293 to your computer and use it in GitHub Desktop.
Save anonymous/5e39ff6dbdd365a7d293 to your computer and use it in GitHub Desktop.
OpenStack/Neutron Conigurations
----------------------------------------------------------------------------------
/etc/neutron/neutron.conf
----------------------------------------------------------------------------------
[DEFAULT]
verbose = True
router_distributed = False
debug = False
use_syslog = False
log_dir =/var/log/neutron
bind_host = 0.0.0.0
bind_port = 9696
core_plugin =neutron.plugins.ml2.plugin.Ml2Plugin
service_plugins =neutron.services.l3_router.l3_router_plugin.L3RouterPlugin
auth_strategy = keystone
base_mac = fa:16:3e:00:00:00
mac_generation_retries = 16
dhcp_lease_duration = 86400
dhcp_agent_notification = True
allow_bulk = True
allow_pagination = False
allow_sorting = False
allow_overlapping_ips = True
agent_down_time = 75
router_scheduler_driver = neutron.scheduler.l3_agent_scheduler.ChanceScheduler
dhcp_agents_per_network = 1
api_workers = 1
rpc_workers = 1
use_ssl = False
notify_nova_on_port_status_changes = True
notify_nova_on_port_data_changes = True
nova_url = http://192.168.1.47:8774/v2
nova_region_name =RegionOne
nova_admin_username =nova
nova_admin_tenant_id =4aeba5e12fa54f36917d8e896f8edcb4
nova_admin_password =joeuser
nova_admin_auth_url =http://192.168.1.47:35357/v2.0
send_events_interval = 2
kombu_reconnect_delay=1.0
rabbit_host=192.168.1.47
rabbit_port=5672
rabbit_hosts=192.168.1.47:5672
rabbit_use_ssl=False
rabbit_userid=guest
rabbit_password=guest
rabbit_virtual_host=/
rabbit_ha_queues=False
rpc_backend=neutron.openstack.common.rpc.impl_kombu
control_exchange=neutron
[matchmaker_redis]
[matchmaker_ring]
[quotas]
[agent]
root_helper = sudo neutron-rootwrap /etc/neutron/rootwrap.conf
report_interval = 30
[keystone_authtoken]
auth_host = 192.168.1.47
auth_port = 35357
auth_protocol = http
admin_tenant_name = services
admin_user = neutron
admin_password = joeuser
auth_uri=http://192.168.1.47:5000/
[database]
connection = mysql://neutron:joeuser@192.168.1.47/neutron
max_retries = 10
retry_interval = 10
min_pool_size = 1
max_pool_size = 10
idle_timeout = 3600
max_overflow = 20
[service_providers]
service_provider=LOADBALANCER:Haproxy:neutron.services.loadbalancer.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default
service_provider=VPN:openswan:neutron.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default
----------------------------------------------------------------------------------
/etc/neutron/plugin.ini
----------------------------------------------------------------------------------
[ml2]
type_drivers = flat,vlan,gre,vxlan
tenant_network_types = vlan,gre,vxlan
mechanism_drivers =openvswitch
[ml2_type_flat]
flat_networks = physnet1
[ml2_type_vlan]
network_vlan_ranges = physnet1:1000:2000
[ml2_type_gre]
tunnel_id_ranges = 1:1000
[ml2_type_vxlan]
vni_ranges =10:100
vxlan_group =224.0.0.1
[securitygroup]
enable_security_group = True
----------------------------------------------------------------------------------
/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
----------------------------------------------------------------------------------
[ovs]
enable_tunneling = True
integration_bridge = br-int
tunnel_bridge = br-tun
local_ip =192.168.1.47
bridge_mappings = physnet1:br-ex
[agent]
polling_interval = 2
tunnel_types =gre
vxlan_udp_port =4789
l2_population = False
arp_responder = False
enable_distributed_routing = False
[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
----------------------------------------------------------------------------------
ovs-vsctl show
----------------------------------------------------------------------------------
a6a6abe5-6f4b-4d31-87e9-f03cd39df75e
Bridge br-tun
Port br-tun
Interface br-tun
type: internal
Port patch-int
Interface patch-int
type: patch
options: {peer=patch-tun}
Bridge br-int
fail_mode: secure
Port patch-tun
Interface patch-tun
type: patch
options: {peer=patch-int}
Port br-int
Interface br-int
type: internal
Port "qr-eb2d947e-a2"
Interface "qr-eb2d947e-a2"
type: internal
Port "qr-f43417f3-de"
Interface "qr-f43417f3-de"
type: internal
Port "qr-35bd6f1e-b0"
Interface "qr-35bd6f1e-b0"
type: internal
Port int-br-ex
Interface int-br-ex
type: patch
options: {peer=phy-br-ex}
Port "qr-ddb8c972-be"
Interface "qr-ddb8c972-be"
type: internal
Bridge br-ex
Port "qg-8a10b5e7-e0"
Interface "qg-8a10b5e7-e0"
type: internal
Port br-ex
Interface br-ex
type: internal
Port "eth0"
Interface "eth0"
Port "qg-139f9b3d-32"
Interface "qg-139f9b3d-32"
type: internal
ovs_version: "2.1.3"
----------------------------------------------------------------------------------
tree /etc/neutron
----------------------------------------------------------------------------------
/etc/neutron
├── api-paste.ini
├── dhcp_agent.ini
├── dnsmasq-neutron.conf
├── fwaas_driver.ini
├── l3_agent.ini
├── lbaas_agent.ini
├── metadata_agent.ini
├── neutron.conf
├── plugin.ini
├── plugin.ini.bk
├── plugins
│   ├── ml2
│   │   ├── ml2_conf.ini
│   │   ├── ml2_conf.ini.bk
│   │   ├── ml2_conf_arista.ini
│   │   ├── ml2_conf_brocade.ini
│   │   ├── ml2_conf_cisco.ini
│   │   ├── ml2_conf_fslsdn.ini
│   │   ├── ml2_conf_mlnx.ini
│   │   ├── ml2_conf_ncs.ini
│   │   ├── ml2_conf_odl.ini
│   │   ├── ml2_conf_ofa.ini
│   │   ├── ml2_conf_sriov.ini
│   │   ├── nuage_plugin.ini
│   │   └── restproxy.ini
│   └── openvswitch
│   └── ovs_neutron_plugin.ini
├── policy.json
├── release
└── rootwrap.conf
3 directories, 27 files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment