From 9830171bf5a8d63019423f941bf3b288a20a4c63 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 5 Aug 2016 15:50:20 -0400 Subject: [PATCH] MTU Check Adding a check for MTU. Change-Id: I2234815251483b2d388d06c24343518ad45db26c --- ansible/check/group_vars/controller | 6 ++++++ ansible/check/roles/controller/tasks/main.yml | 1 + ansible/check/roles/neutron/tasks/main.yml | 14 ++++++++++++++ 3 files changed, 21 insertions(+) diff --git a/ansible/check/group_vars/controller b/ansible/check/group_vars/controller index 0a1649133..74f06653e 100644 --- a/ansible/check/group_vars/controller +++ b/ansible/check/group_vars/controller @@ -45,5 +45,11 @@ checks : neutron_rootwrap_daemon: url: "none" name: "Ensure rootwrap has daemon mode enabled" + neutron_dnsmasq_mtu: + url: "https://bugs.launchpad.net/tripleo/+bug/1590100" + name: "Ensure there is no dnsmasq setting to force MTU" + neutron_conf_mtu: + url: "https://bugs.launchpad.net/tripleo/+bug/1590101" + name: "The global_physnet_mtu should not be set unless by Administrator" # vi:syntax=yaml diff --git a/ansible/check/roles/controller/tasks/main.yml b/ansible/check/roles/controller/tasks/main.yml index ae1b68f53..df06affdf 100644 --- a/ansible/check/roles/controller/tasks/main.yml +++ b/ansible/check/roles/controller/tasks/main.yml @@ -63,6 +63,7 @@ register: rabbit_partitioned changed_when: no failed_when: rabbit_partitioned.rc == 0 + ignore_errors: yes - name: Run MySQL Tuner script script: mysqltuner.pl --nocolor diff --git a/ansible/check/roles/neutron/tasks/main.yml b/ansible/check/roles/neutron/tasks/main.yml index 850e043b6..36f700226 100644 --- a/ansible/check/roles/neutron/tasks/main.yml +++ b/ansible/check/roles/neutron/tasks/main.yml @@ -12,3 +12,17 @@ failed_when: neutron_rootwrap_daemon.rc == 1 changed_when: false ignore_errors: True + +- name: Check MTU + shell: cat /etc/neutron/dnsmasq-neutron.conf | grep 'dhcp\-option\-force=26' + register: neutron_dnsmasq_mtu + failed_when: neutron_dnsmasq_mtu.rc == 0 + changed_when: false + ignore_errors: True + +- name: Check Neutron.conf MTU + command: crudini --get /etc/neutron/neutron.conf DEFAULT global_physnet_mtu + register: neutron_conf_mtu + failed_when: neutron_conf_mtu.rc == 0 + changed_when: false + ignore_errors: True