From 61eac5e734f97ecf3ee2c176530174e7955aeabe Mon Sep 17 00:00:00 2001 From: Juan Antonio Osorio Robles Date: Fri, 23 Feb 2018 15:02:38 +0200 Subject: [PATCH] Add order constraint for stop operation in resource agent We already have an order constraint for the start operation, apparently we need another one for the stop operation too, as this assures that the VIP is stopped before the tunnel is put down. Change-Id: Ica9c2e9c0c2eb24b0f174d30a0d6af1e090768f4 Closes-Bug: #1751265 --- tasks/resource-agent.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tasks/resource-agent.yml b/tasks/resource-agent.yml index a07fb43..a9ba3d7 100644 --- a/tasks/resource-agent.yml +++ b/tasks/resource-agent.yml @@ -33,8 +33,13 @@ when: - resource_agent.changed or found_resource_agent|failed -- name: Add ordering rule with VIP ( {{ resource_agent_name }} ) - command: pcs constraint order start ip-{{ specific_vip }} then {{ resource_agent_name }} +- name: Add ordering rule with VIP ( {{ resource_agent_name }} ) for start operation + command: pcs constraint order start ip-{{ specific_vip }} then start {{ resource_agent_name }} symmetrical=false + when: + - resource_agent.changed or found_resource_agent|failed + +- name: Add ordering rule with VIP ( {{ resource_agent_name }} ) for stop operation + command: pcs constraint order stop ip-{{ specific_vip }} then stop {{ resource_agent_name }} symmetrical=false when: - resource_agent.changed or found_resource_agent|failed