Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP2
resource-agents.11694
0028-dev-AzEvents-Use-pacemaker-commands-to-set...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0028-dev-AzEvents-Use-pacemaker-commands-to-set-standby.patch of Package resource-agents.11694
From e7b1a18a35ce132c34d399cbb1f42bd37a6e2574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristoffer=20Gr=C3=B6nlund?= <krig@koru.se> Date: Wed, 17 Oct 2018 09:10:52 +0200 Subject: [PATCH] dev: AzEvents: Use pacemaker commands to set standby --- heartbeat/azure-events.in | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/heartbeat/azure-events.in b/heartbeat/azure-events.in index 09611ca0..cd34a3b0 100644 --- a/heartbeat/azure-events.in +++ b/heartbeat/azure-events.in @@ -509,12 +509,9 @@ class pcsNode: node = self.selfOrOtherNode(node) logging.debug("putNodeStandby: begin; node = %s" % node) - pcsHelper._exec( - "crm", - ["node", - "standby", - node] - ) + # crm_attribute -t nodes -N <node> -n standby -v on --lifetime=forever + pcsHelper._exec("crm_attribute", + ["-t", "nodes", "-N", node, "-n", "standby", "-v", "on", "--lifetime=forever"]) logging.debug("putNodeStandby: finished") return @@ -526,12 +523,9 @@ class pcsNode: node = self.selfOrOtherNode(node) logging.debug("putNodeOnline: begin; node = %s" % node) - pcsHelper._exec( - "crm", - ["node", - "online", - node] - ) + # crm_attribute -t nodes -N <node> -n standby -v off --lifetime=forever + pcsHelper._exec("crm_attribute", + ["-t", "nodes", "-N", node, "-n", "standby", "-v", "off", "--lifetime=forever"]) logging.debug("putNodeOnline: finished") return -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor