From 99f86d2e40eb8cb0d9307b49cc591e11df23c6f9 Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Wed, 27 Sep 2023 14:23:57 +0200 Subject: [PATCH] Set correct default for SRIOV agent report_interval In Neutron default value for the 'report_interval' option is set to 30 seconds and this works well for the typical deployments, together with the 'agent_down_time' option set on the neutron server side to 75 seconds by default. In the neutron_sriov role default for the report_interval was previously set to 300 seconds which was causing agent flapping UP/DOWN. This patch sets default value for this config option to 30 seconds which is the same as is used in Neutron. --- roles/edpm_neutron_sriov/defaults/main.yml | 2 +- roles/edpm_neutron_sriov/meta/argument_specs.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/edpm_neutron_sriov/defaults/main.yml b/roles/edpm_neutron_sriov/defaults/main.yml index 859f7b116..211bed810 100644 --- a/roles/edpm_neutron_sriov/defaults/main.yml +++ b/roles/edpm_neutron_sriov/defaults/main.yml @@ -64,7 +64,7 @@ edpm_neutron_sriov_rootwrap_DEFAULT_rlimit_nofile: 1024 edpm_neutron_sriov_agent_DEFAULT_state_path: '/var/lib/neutron' # AGENT edpm_neutron_sriov_agent_AGENT_root_helper: 'sudo neutron-rootwrap /etc/neutron.conf.d/01-rootwrap.conf' -edpm_neutron_sriov_agent_AGENT_report_interval: 300 +edpm_neutron_sriov_agent_AGENT_report_interval: 30 edpm_neutron_sriov_agent_AGENT_extensions: 'qos' edpm_neutron_sriov_agent_AGENT_polling_interval: 2 # SRIOV_NIC diff --git a/roles/edpm_neutron_sriov/meta/argument_specs.yml b/roles/edpm_neutron_sriov/meta/argument_specs.yml index 56a8abb95..72110f8e6 100644 --- a/roles/edpm_neutron_sriov/meta/argument_specs.yml +++ b/roles/edpm_neutron_sriov/meta/argument_specs.yml @@ -99,7 +99,7 @@ argument_specs: description: '' type: str edpm_neutron_sriov_agent_AGENT_report_interval: - default: 300 + default: 30 description: '' type: int edpm_neutron_sriov_agent_AGENT_extensions: