fence-agents/0003-fence_compute-Only-list-nova-compute-services-when-g.patch
Kristoffer Gronlund db0d731e53 - Update to version 4.0.24:
* Improve obtaining status on Cisco UCS devices
  * Fix issues with symlink installations
  * Fix documentation for fence_scsi and fence_mpath

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/fence-agents?expand=0&rev=54
2016-08-26 13:59:46 +00:00

28 lines
946 B
Diff

From 99ef77ee94d43545473281c017dc1a0189a467fe Mon Sep 17 00:00:00 2001
From: Vincent Untz <vuntz@suse.com>
Date: Thu, 4 Feb 2016 10:02:49 +0100
Subject: [PATCH 3/9] fence_compute: Only list nova-compute services when
getting status
We don't care about other services.
---
fence/agents/compute/fence_compute.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fence/agents/compute/fence_compute.py b/fence/agents/compute/fence_compute.py
index 07639cc..074b78f 100644
--- a/fence/agents/compute/fence_compute.py
+++ b/fence/agents/compute/fence_compute.py
@@ -34,7 +34,7 @@ def get_power_status(_, options):
if nova:
try:
- services = nova.services.list(host=options["--plug"])
+ services = nova.services.list(host=options["--plug"], binary="nova-compute")
for service in services:
logging.debug("Status of %s is %s" % (service.binary, service.state))
if service.binary == "nova-compute":
--
2.9.0