From f0b0ee56cf1ff252ca93389e0ff4e7c5c1d864fd Mon Sep 17 00:00:00 2001 From: Rafal Lewandowski Date: Thu, 10 Oct 2024 10:25:08 +0200 Subject: [PATCH] Fix health checks for neutron_ovn_agent and neutron_ovn_metadata_agent Closes-Bug: #2084128 Change-Id: I3b44c8f4ff3c55023d8bab4e9a88a86ca72cae5d --- ansible/roles/neutron/defaults/main.yml | 4 ++-- .../notes/fix_ovn_agents_hc-f6e4a39b9d64e9f1.yaml | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 releasenotes/notes/fix_ovn_agents_hc-f6e4a39b9d64e9f1.yaml diff --git a/ansible/roles/neutron/defaults/main.yml b/ansible/roles/neutron/defaults/main.yml index a5b791d4ab..000f89adb5 100644 --- a/ansible/roles/neutron/defaults/main.yml +++ b/ansible/roles/neutron/defaults/main.yml @@ -428,7 +428,7 @@ neutron_ovn_metadata_agent_enable_healthchecks: "{{ enable_container_healthcheck neutron_ovn_metadata_agent_healthcheck_interval: "{{ default_container_healthcheck_interval }}" neutron_ovn_metadata_agent_healthcheck_retries: "{{ default_container_healthcheck_retries }}" neutron_ovn_metadata_agent_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}" -neutron_ovn_metadata_agent_healthcheck_test: ["CMD-SHELL", "healthcheck_port python {{ ovn_sb_db_port }}"] +neutron_ovn_metadata_agent_healthcheck_test: ["CMD-SHELL", "healthcheck_port neutron-ovn-metadata-agent {{ ovsdb_port }}"] neutron_ovn_metadata_agent_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}" neutron_ovn_metadata_agent_healthcheck: interval: "{{ neutron_ovn_metadata_agent_healthcheck_interval }}" @@ -480,7 +480,7 @@ neutron_ovn_agent_enable_healthchecks: "{{ enable_container_healthchecks }}" neutron_ovn_agent_healthcheck_interval: "{{ default_container_healthcheck_interval }}" neutron_ovn_agent_healthcheck_retries: "{{ default_container_healthcheck_retries }}" neutron_ovn_agent_healthcheck_start_period: "{{ default_container_healthcheck_start_period }}" -neutron_ovn_agent_healthcheck_test: ["CMD-SHELL", "healthcheck_port python {{ ovn_sb_db_port }}"] +neutron_ovn_agent_healthcheck_test: ["CMD-SHELL", "healthcheck_port neutron-ovn-agent {{ ovsdb_port }}"] neutron_ovn_agent_healthcheck_timeout: "{{ default_container_healthcheck_timeout }}" neutron_ovn_agent_healthcheck: interval: "{{ neutron_ovn_agent_healthcheck_interval }}" diff --git a/releasenotes/notes/fix_ovn_agents_hc-f6e4a39b9d64e9f1.yaml b/releasenotes/notes/fix_ovn_agents_hc-f6e4a39b9d64e9f1.yaml new file mode 100644 index 0000000000..de13505ed1 --- /dev/null +++ b/releasenotes/notes/fix_ovn_agents_hc-f6e4a39b9d64e9f1.yaml @@ -0,0 +1,8 @@ +--- +fixes: + - | + Fixes unreliable health checks for neutron_ovn_agent + and neutron_ovn_metadata_agent bug. + Changed to check OVS DB connection instead of OVN + southbound DB connection. + `LP#2084128 `__