Skip to contentSkip to conversation

fence_rsb: Fence agent ported to fencing library

PATCH New Marek 'marx' Grac 1 participant 1 message Nov 25, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fence_rsb: Fence agent ported to fencing library

Fence agent was rewritten to use fencing library. Main benefits are support for ssh connection, XML metadata, automatic man page generation.

Resolves: rhbz#742003

---
 fence/agents/lib/fencing.py.py |    2 +-
 fence/agents/rsb/Makefile.am   |    5 +-
 fence/agents/rsb/fence_rsb.8   |   76 ------
 fence/agents/rsb/fence_rsb.py  |  491 ++++++++--------------------------------
 4 files changed, 102 insertions(+), 472 deletions(-)
 delete mode 100644 fence/agents/rsb/fence_rsb.8
 mode change 100644 => 100755 fence/agents/rsb/fence_rsb.py
fence/agents/lib/fencing.py.py +1 -1
index ec84bbc..8be0a61 100644
@@ -871,7 +871,7 @@ def fence_login(options):
 
 	try:
 		re_login = re.compile("(login\s*: )|(Login Name:  )|(username: )|(User Name :)", re.IGNORECASE)
-		re_pass  = re.compile("password", re.IGNORECASE)
+		re_pass  = re.compile("(password)|(pass phrase)", re.IGNORECASE)
 
 		if options.has_key("-z"):
 			command = '%s %s %s %s' % (SSL_PATH, force_ipvx, options["-a"], options["-u"])
fence/agents/rsb/Makefile.am +3 -2
index e8193be..939db98 100644
@@ -8,9 +8,10 @@ EXTRA_DIST		= $(SRC)
 
 sbin_SCRIPTS		= $(TARGET)
 
-dist_man_MANS		= $(TARGET).8
+man_MANS		= $(TARGET).8
 
 include $(top_srcdir)/make/fencebuild.mk
+include $(top_srcdir)/make/fenceman.mk
 
-clean-local:
+clean-local: clean-man
 	rm -f $(TARGET)
fence/agents/rsb/fence_rsb.8 deleted +0 -76

76 lines not on this page · raw message

fence/agents/rsb/fence_rsb.py +98 -393

505 lines not on this page · raw message

Signature · 1 line
1.7.4.4