Skip to content

Instantly share code, notes, and snippets.

@pcn
Last active August 29, 2015 14:05
Show Gist options
  • Save pcn/af341cbfdfcabd56a629 to your computer and use it in GitHub Desktop.
Save pcn/af341cbfdfcabd56a629 to your computer and use it in GitHub Desktop.
how ml2_config.ini needs to look at this point

The file should look like this:

[ml2]
type_drivers = vxlan

tenant_network_types = vxlan

mechanism_drivers = openvswitch

[ml2_type_flat]
flat_networks =

[ml2_type_vlan]
network_vlan_ranges =

[ml2_type_gre]
tunnel_id_ranges =

[ml2_type_vxlan]
vni_ranges = 1:1000

vxlan_group =

[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
enable_security_group = True

[ovs]
local_ip = 192.168.94.85
enable_tunneling = True
tunnel_type = vxlan

[agent]
tunnel_types = vxlan
root_helper = sudo /usr/bin/neutron-rootwrap /etc/neutron/rootwrap.conf

On the controller. On the compute node, I think similar config needs to be present in order for neutron to configure ovs, but I'm not sure.

Don't forget to restart everything that may touch this on all of the service nodes.

  570  for s in /etc/init.d/openvswitch-* ; do $s restart; done
  571  for s in /etc/init.d/nova-* ; do $s restart; done

Otherwise the scheduler won't be able to find a viable host for the networks you made or some nonsense like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment