From c9f96856fbadebd6490354a4fe151f17308688f6 Mon Sep 17 00:00:00 2001 From: Ronelle Landy Date: Wed, 12 Jul 2017 12:43:18 -0400 Subject: [PATCH] Adjust MTU on br-ctlplane and make adjustment survive a reboot For vxlan-networking, this review adds the change to ifcfg-* file and adds the MTU adjustment for br-ctlplane. Change-Id: I15d9306b7c7dac22abbaa61da4bded200cf5bf2e --- roles/undercloud-setup/tasks/vxlan_networking.yml | 3 ++- roles/undercloud-setup/templates/vxlan_networking.sh.j2 | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/undercloud-setup/tasks/vxlan_networking.yml b/roles/undercloud-setup/tasks/vxlan_networking.yml index 7ce6513b5..48cb18c3b 100644 --- a/roles/undercloud-setup/tasks/vxlan_networking.yml +++ b/roles/undercloud-setup/tasks/vxlan_networking.yml @@ -23,7 +23,8 @@ shell: > set -o pipefail && sudo ip link set dev {{ undercloud_local_interface }} mtu {{ vxlan_mtu }} 2>&1 {{ timestamper_cmd }} >> - {{ working_dir }}/vxlan_networking.sh.log + {{ working_dir }}/vxlan_networking.sh.log; + echo "MTU={{ vxlan_mtu }}" | sudo tee -a /etc/sysconfig/network-scripts/ifcfg-{{ undercloud_local_interface }} delegate_to: "{{ item }}" with_items: "{{ groups['overcloud'] | default([]) }}" diff --git a/roles/undercloud-setup/templates/vxlan_networking.sh.j2 b/roles/undercloud-setup/templates/vxlan_networking.sh.j2 index c3489f3b3..360fb2856 100644 --- a/roles/undercloud-setup/templates/vxlan_networking.sh.j2 +++ b/roles/undercloud-setup/templates/vxlan_networking.sh.j2 @@ -94,9 +94,12 @@ set -u echo "Setting {{ undercloud_local_interface }} up on $primary_node" sudo ip link set dev {{ undercloud_local_interface }} up sudo ip link set dev {{ undercloud_local_interface }} mtu {{ vxlan_mtu }} +echo "MTU={{ vxlan_mtu }}" | sudo tee -a /etc/sysconfig/network-scripts/ifcfg-{{ undercloud_local_interface }} if [ -f /etc/sysconfig/network-scripts/ifcfg-br-ctlplane ]; then sudo ifup br-ctlplane + sudo ip link set dev br-ctlplane mtu {{ vxlan_mtu }} + echo "MTU={{ vxlan_mtu }}" | sudo tee -a /etc/sysconfig/network-scripts/ifcfg-br-ctlplane fi ## * Restart neutron-openvswitch-agent if it's enabled, since it may have