Expose dnsmasq options
authorJames Slagle <jslagle@redhat.com>
Tue, 25 Mar 2014 12:34:29 +0000 (08:34 -0400)
committerJames Slagle <jslagle@redhat.com>
Wed, 23 Apr 2014 16:28:16 +0000 (12:28 -0400)
Adds a new parameter, NeutronDnsmasqOptions, to the overcloud template.

Allows the ability to set dnsmasq options for neutron dhcp agent. This
will allow us to configure mtu to be 1400 for tenant instances on the
overcloud.  This should help with poor network performance and vm's that
are just plain unreachable via ssh due to the GRE tunnel overhead.

The default here has been set to:
dhcp-option-force=26,1400

This is the recommended way to configure OpenStack with the Open vSwitch
plugin per:
http://docs.openstack.org/admin-guide-cloud/content/openvswitch_plugin.html

All the documentation I can find on the web (openstack-dev,
ask.openstack.org, etc), recommend applying this setting. Others have
reported slow vm performance as well, and this resolves that issue
(apparently anyway...we'd need to test).

Change-Id: If24326045987b5a484ba2f71f591092987966536
Partial-Bug: #1270646

overcloud-source.yaml

index ecdf05c..3aafb6d 100644 (file)
@@ -163,6 +163,10 @@ Parameters:
     Default: ''
     Description: If set, the public interface is a vlan with this device as the raw device.
     Type: String
+  NeutronDnsmasqOptions:
+    Default: 'dhcp-option-force=26,1400'
+    Description: Dnsmasq options for neutron-dhcp-agent. The default value here forces MTU to be set to 1400 to account for the gre tunnel overhead.
+    Type: String
   controllerImage:
     Type: String
     Default: overcloud-control
@@ -371,6 +375,8 @@ Resources:
           ovs_db: mysql://neutron:unset@localhost/ovs_neutron?charset=utf8
           service-password:
             Ref: NeutronPassword
+          dnsmasq-options:
+            Ref: NeutronDnsmasqOptions
         ceilometer:
           db: mysql://ceilometer:unset@localhost/ceilometer
           metering_secret: {Ref: CeilometerMeteringSecret}