stackforge/puppet-neutron — pull request #12 by ChangjunZhao (2014-08-25 03:24:26+00:00)
Title: add vlan ranges

when config ml2 vlan mode, neutron agent can't start.

here is log:

ERROR neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Tunneling cannot be enabled without a valid local_ip. Agent terminated!

then i track the source code in neutron/plugins/openvswitch/agent/ovs_neutron_agent.py function create_agent_config_map like this:

# Verify the tunnel_types specified are valid
for tun in kwargs['tunnel_types']:
if tun not in constants.TUNNEL_NETWORK_TYPES:
msg = _('Invalid tunnel type specified: %s'), tun
raise ValueError(msg)
if not kwargs['local_ip']:
msg = _('Tunneling cannot be enabled without a valid local_ip.')
raise ValueError(msg)

so our puppet script need to remove 'tunnel_types' item， and alse need to add 'network_vlan_ranges'.