Blame SOURCES/bz1214359-6-fence_compute.patch

e4ffb1
From a703fba575b965c843ec527621fdd5009425be35 Mon Sep 17 00:00:00 2001
e4ffb1
From: "Fabio M. Di Nitto" <fdinitto@redhat.com>
e4ffb1
Date: Sat, 20 Jun 2015 11:43:09 +0200
e4ffb1
Subject: [PATCH 2/3] fence_compute: resync with master and drop unnecessary
e4ffb1
 workaround
e4ffb1
e4ffb1
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
e4ffb1
---
e4ffb1
 fence/agents/compute/fence_compute.py | 23 -----------------------
e4ffb1
 1 file changed, 23 deletions(-)
e4ffb1
e4ffb1
diff --git a/fence/agents/compute/fence_compute.py b/fence/agents/compute/fence_compute.py
e4ffb1
index d8a1e95..82d9c46 100644
e4ffb1
--- a/fence/agents/compute/fence_compute.py
e4ffb1
+++ b/fence/agents/compute/fence_compute.py
e4ffb1
@@ -233,29 +233,6 @@ def main():
e4ffb1
 		options["--auth-url"],
e4ffb1
 		endpoint_type=options["--endpoint-type"])
e4ffb1
 
e4ffb1
-	if options["--action"] in ["on", "off", "reboot" ]:
e4ffb1
-		try:
e4ffb1
-			nova.services.list(host=options["--plug"])
e4ffb1
-		except ConnectionError as (err):
e4ffb1
-			# Yes, exit(0)
e4ffb1
-			#
e4ffb1
-			# Its possible that the control plane on which this
e4ffb1
-			# agent depends is not functional
e4ffb1
-			#
e4ffb1
-			# In this situation, fencing is waiting for resource
e4ffb1
-			# recovery and resource recovery is waiting for
e4ffb1
-			# fencing.
e4ffb1
-			#
e4ffb1
-			# To break the cycle, we all the fencing agent to
e4ffb1
-			# return 'done' immediately so that we can recover the
e4ffb1
-			# control plane. We then rely on the NovaCompute RA
e4ffb1
-			# to call this agent directly once the control plane
e4ffb1
-			# is up.
e4ffb1
-			#
e4ffb1
-			# Yes its horrible, but still better than nova itself.
e4ffb1
-			logging.warning("Nova connection failed: %s " % str(err))
e4ffb1
-			sys.exit(0)
e4ffb1
-
e4ffb1
 	if options["--action"] in ["off", "reboot"]:
e4ffb1
 		# Pretend we're 'on' so that the fencing library will always call set_power_status(off)
e4ffb1
 		override_status = "on"
e4ffb1
-- 
e4ffb1
1.9.3
e4ffb1