From f194469d481de0225f28267938d089dd5ecac3c9 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 18 Mar 2019 19:04:31 +0100 Subject: [PATCH] neutron: set a failure-timeout on neutron-ha-tool We don't want the l3 agent to be stopped after 3 weeks of weekly patching and rebooting the rabbitmq cluster. Set a timeout of a failure if it happened more than 10 minutes ago. --- chef/cookbooks/neutron/recipes/network_agents_ha.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chef/cookbooks/neutron/recipes/network_agents_ha.rb b/chef/cookbooks/neutron/recipes/network_agents_ha.rb index 27ebd799a6..b52466c4d2 100644 --- a/chef/cookbooks/neutron/recipes/network_agents_ha.rb +++ b/chef/cookbooks/neutron/recipes/network_agents_ha.rb @@ -154,6 +154,9 @@ agent "systemd:neutron-l3-ha-service" op node[:neutron][:ha][:neutron_l3_ha_resource][:op] action :update + meta ({ + "failure-timeout" => "600s" + }) only_if { CrowbarPacemakerHelper.is_cluster_founder?(node) } end ha_service_transaction_objects << "pacemaker_primitive[#{ha_service_primitive_name}]"