MTU Check

Adding a check for MTU.

Change-Id: I2234815251483b2d388d06c24343518ad45db26c
This commit is contained in:
Joe 2016-08-05 15:50:20 -04:00
parent e28ca5fcb7
commit 9830171bf5
3 changed files with 21 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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