[noha] Set MTU on tenant/private dpdk interface 09/61809/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Tue, 4 Sep 2018 10:31:03 +0000 (14:31 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Tue, 4 Sep 2018 10:38:13 +0000 (14:38 +0400)
Enable jumbo frames on tenant/private interface as well so that
an instance can get the DHCP response from gateway node.

Change-Id: I9407fa67e9e0cdbe50335e4430748b0e45ba841a
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
mcp/config/states/dpdk
mcp/config/states/networks
mcp/reclass/classes/cluster/mcp-common-noha/openstack_compute_pdf.yml.j2
mcp/reclass/classes/cluster/mcp-odl-noha/openstack/compute.yml.j2
mcp/reclass/classes/cluster/mcp-ovs-dpdk-noha/openstack/compute.yml.j2

index 281b78f..efe1daf 100755 (executable)
@@ -14,3 +14,6 @@ source "$(dirname "${BASH_SOURCE[0]}")/../../scripts/lib.sh"
 
 salt -I 'nova:compute' alternatives.set ovs-vswitchd /usr/lib/openvswitch-switch-dpdk/ovs-vswitchd-dpdk
 salt -I 'nova:compute' service.restart openvswitch-switch
+
+# Set datapath type to netdev for public bridge
+salt -I 'nova:compute' cmd.run 'ovs-vsctl set bridge br-floating datapath_type=netdev'
index e0d2aee..e9a9f51 100755 (executable)
@@ -38,6 +38,3 @@ salt -C 'I@nova:controller and *01*' cmd.run ". /root/keystonercv3; \
 
 # Discover compute hosts after they are registered
 salt -C 'I@nova:controller and *01*' state.sls_id nova_controller_discover_hosts nova
-
-# Set datapath type to netdev for public bridge
-((MCP_DPDK_MODE)) && salt -I 'nova:compute' cmd.run 'ovs-vsctl set bridge br-floating datapath_type=netdev' || /bin/true
index 3c7388a..aceb544 100644 (file)
@@ -29,6 +29,7 @@ parameters:
 {%- endif %}
   linux:
     network:
+      ovs_nowait: true
       bridge: openvswitch
       interface:
         pxe_admin_int:
index 0ad3686..1c4ee7a 100644 (file)
@@ -31,6 +31,7 @@ parameters:
           bridge: br-prv
           type: dpdk_ovs_port
           n_rxq: ${_param:dpdk0_n_rxq}
+          mtu: ${_param:interface_mtu}
         br-prv:
           enabled: true
           type: dpdk_ovs_bridge
index df29111..25fc826 100644 (file)
@@ -34,6 +34,7 @@ parameters:
           bridge: br-prv
           type: dpdk_ovs_port
           n_rxq: ${_param:dpdk0_n_rxq}
+          mtu: ${_param:interface_mtu}
         br-prv:
           enabled: true
           type: dpdk_ovs_bridge