Change interface mtus 86/76586/3
authorJamo Luhrsen <jluhrsen@redhat.com>
Fri, 28 Sep 2018 21:04:09 +0000 (14:04 -0700)
committerJamo Luhrsen <jluhrsen@redhat.com>
Wed, 3 Oct 2018 18:56:48 +0000 (11:56 -0700)
vexxhost infra uses 1458 instead of the default 1500
that comes with the apex nodes

Change-Id: Iae36afc9c44c3a2a0afeedb028224fe65b35f7b5
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
jjb/opendaylight-infra-apex-image-management.sh

index b81f9a58248761743d04f3af6243c63542e69931..960c4f9a2393668a5e5a176e24497ad12d06a335 100644 (file)
@@ -69,6 +69,18 @@ virt-customize -a $COMPUTE_0_NODE.qcow2 \
 virt-customize -a $COMPUTE_1_NODE.qcow2 \
   --run-command "crudini --set /var/lib/config-data/puppet-generated/nova_libvirt/etc/nova/nova.conf libvirt virt_type qemu"
 
+for image in $CONTROLLER_NODE $COMPUTE_0_NODE $COMPUTE_1_NODE
+do
+  # Change interface MTU to account for default network mtu of 1458
+  virt-customize -a $image.qcow2 \
+    --run-command "sudo echo \"MTU=\"1458\" >> /etc/sysconfig/network-scripts/ifcfg-eth0\"" \
+    --run-command "sudo echo \"MTU=\"1458\" >> /etc/sysconfig/network-scripts/ifcfg-br-int\"" \
+    --run-command "sudo echo \"MTU=\"1458\" >> /etc/sysconfig/network-scripts/ifcfg-ovs-system\"" \
+    --run-command "sudo crudini --set /etc/selinux/config '' SELINUX disabled" \
+    --run-command "sudo iptables -I INPUT -p udp -m multiport --dports 4789,9876,12345 -j ACCEPT" \
+    --run-command "sudo iptables -I INPUT -p tcp --dport 12345 -j ACCEPT" \
+    --run-command "sudo iptables-save"
+done
 
 popd