Skip to contentSkip to conversation

Cluster Project branch, RHEL4, updated. gfs-kernel_2_6_9_76-48-g8320af0

Cluster-devel [email protected] 1 participant 1 message Apr 25, 2008

lore
Share & tools
lore
#0 lore raw

This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Cluster Project".

http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=8320af0abf410ba4df358974376fc71571e03cd6

The branch, RHEL4 has been updated

       via  8320af0abf410ba4df358974376fc71571e03cd6 (commit)
      from  bcfdaa69b501fef4d01abcf1104d87d00484da66 (commit)

Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.

- Log ----------------------------------------------------------------- commit 8320af0abf410ba4df358974376fc71571e03cd6

Author: Fabio M. Di Nitto <[email protected]>
Date:   Fri Apr 25 15:28:18 2008 +0200

[FENCE] Enable new fence agents by default

agents/Makefile:
- enable lib target.

agents/apc/fence_apc.py, bladecenter/fence_bladecenter.py, agents/drac/fence_drac5.py, agents/ilo/fence_ilo.py, agents/lib/fencing.py.py, agents/wti/fence_wti.py:
- add version, build and copyright information.
- fix path to fence agents lib.

agents/bladecenter/Makefile, fence/agents/drac/Makefile, agents/ilo/Makefile, agents/wti/Makefile:
- enable new agents.

bin/Makefile:
- install fence_drac5
- install/uninstall fence library

-----------------------------------------------------------------------

Summary of changes:

 fence/agents/Makefile                              |    3 +
 fence/agents/apc/apc.py                            |   94 --
 fence/agents/apc/fence_apc.py                      |  902 ++------------------
 fence/agents/bladecenter/Makefile                  |    6 +-
 .../{bladecenter.py => fence_bladecenter.py}       |    8 +-
 fence/agents/drac/Makefile                         |   39 +-
 fence/agents/drac/{drac5.py => fence_drac5.py}     |    8 +-
 fence/agents/ilo/Makefile                          |    4 +-
 fence/agents/ilo/{ilo.py => fence_ilo.py}          |    8 +-
 fence/agents/{apc => lib}/Makefile                 |    6 +-
 fence/agents/lib/{fencing.py => fencing.py.py}     |   10 +-
 fence/agents/wti/Makefile                          |    4 +-
 fence/agents/wti/{wti.py => fence_wti.py}          |    8 +-
 fence/bin/Makefile                                 |   11 +-
 14 files changed, 171 insertions(+), 940 deletions(-)
 delete mode 100755 fence/agents/apc/apc.py
 mode change 100644 => 100755 fence/agents/apc/fence_apc.py
 rename fence/agents/bladecenter/{bladecenter.py => fence_bladecenter.py} (93%)
 rename fence/agents/drac/{drac5.py => fence_drac5.py} (92%)
 rename fence/agents/ilo/{ilo.py => fence_ilo.py} (91%)
 copy fence/agents/{apc => lib}/Makefile (95%)
 rename fence/agents/lib/{fencing.py => fencing.py.py} (97%)
 rename fence/agents/wti/{wti.py => fence_wti.py} (94%)
fence/agents/Makefile +3 -0
index 8418016..080863c 100644
@@ -13,6 +13,7 @@
 
 
 all:
+	cd lib && ${MAKE} all
 	cd apc && ${MAKE} all
 	cd apc_snmp && ${MAKE} all
 	cd rsa && ${MAKE} all
@@ -40,6 +41,7 @@ all:
 	# cd zvm && ${MAKE} all
 
 copytobin:
+	cd lib && ${MAKE} copytobin
 	cd apc && ${MAKE} copytobin
 	cd apc_snmp && ${MAKE} copytobin
 	cd rsa && ${MAKE} copytobin
@@ -67,6 +69,7 @@ copytobin:
 	# cd zvm && ${MAKE} copytobin
 
 clean:
+	cd lib && ${MAKE} clean
 	cd apc && ${MAKE} clean
 	cd apc_snmp && ${MAKE} clean
 	cd rsa && ${MAKE} clean
fence/agents/apc/apc.py deleted +0 -94

94 lines not on this page · raw message

fence/agents/apc/fence_apc.py +85 -817

917 lines not on this page · raw message

fence/agents/bladecenter/Makefile +3 -3
index 6bd15a8..d6a30c9 100644
@@ -11,7 +11,7 @@
 ###############################################################################
 ###############################################################################
 
-SOURCE= fence_bladecenter.pl
+SOURCE= fence_bladecenter.py
 TARGET= fence_bladecenter
 
 top_srcdir=../..
@@ -19,11 +19,11 @@ include ${top_srcdir}/make/defines.mk
 
 all: $(TARGET)
 
-fence_bladecenter: fence_bladecenter.pl
+fence_bladecenter: fence_bladecenter.py
 	: > $(TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
 	echo "\$$FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
-	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
+	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf sh REDHAT_COPYRIGHT >> $(TARGET)
 	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
 	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE) >> $(TARGET)
 	chmod +x $(TARGET)
fence/agents/bladecenter/fence_bladecenter.py renamed from fence/agents/bladecenter/bladecenter.py +7 -1
similarity index 93%
rename from fence/agents/bladecenter/bladecenter.py
rename to fence/agents/bladecenter/fence_bladecenter.py
index cbc7daa..a3ff651 100755
@@ -14,9 +14,15 @@
 #####
 
 import sys, re, pexpect
-sys.path.append("../lib/")
+sys.path.append("/usr/lib/fence")
 from fencing import *
 
+#BEGIN_VERSION_GENERATION
+FENCE_RELEASE_NAME=""
+REDHAT_COPYRIGHT=""
+BUILD_DATE=""
+#END_VERSION_GENERATION
+
 def get_power_status(conn, options):
 	try:
 		node_cmd = "system:blade\[" + options["-n"] + "\]>"
fence/agents/drac/Makefile +26 -13
index 258f5ff..294c86d 100644
@@ -11,25 +11,38 @@
 ###############################################################################
 ###############################################################################
 
-SOURCE= fence_drac.pl
-TARGET= fence_drac
+SOURCE1= fence_drac.pl
+TARGET1= fence_drac
+
+SOURCE2= fence_drac5.py
+TARGET2= fence_drac5
 
 top_srcdir=../..
 include ${top_srcdir}/make/defines.mk
 
-all: $(TARGET)
+all: $(TARGET1) $(TARGET2)
 
 fence_drac: fence_drac.pl
-	: > $(TARGET)
-	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
-	echo "\$$FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
-	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
-	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
-	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE) >> $(TARGET)
-	chmod +x $(TARGET)
+	: > $(TARGET1)
+	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE1) >> $(TARGET1)
+	echo "\$$FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET1)
+	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET1)
+	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET1)
+	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE1) >> $(TARGET1)
+	chmod +x $(TARGET1)
+
+fence_drac5: fence_drac5.py
+	: > $(TARGET2)
+	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE2) >> $(TARGET2)
+	echo "\$$FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET2)
+	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET2)
+	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET2)
+	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE2) >> $(TARGET2)
+	chmod +x $(TARGET2)
 
-copytobin: ${TARGET}
-	cp ${TARGET} ${top_srcdir}/bin/${TARGET}
+copytobin: ${TARGET1} ${TARGET2}
+	cp ${TARGET1} ${top_srcdir}/bin/${TARGET1}
+	cp ${TARGET2} ${top_srcdir}/bin/${TARGET2}
 
 clean:
-	rm -f $(TARGET)
+	rm -f $(TARGET1) $(TARGET2)
fence/agents/drac/fence_drac5.py renamed from fence/agents/drac/drac5.py +7 -1
similarity index 92%
rename from fence/agents/drac/drac5.py
rename to fence/agents/drac/fence_drac5.py
index 63012fc..d73b8f0 100755
@@ -14,9 +14,15 @@
 #####
 
 import sys, re, pexpect
-sys.path.append("../lib/")
+sys.path.append("/usr/lib/fence")
 from fencing import *
 
+#BEGIN_VERSION_GENERATION
+FENCE_RELEASE_NAME=""
+REDHAT_COPYRIGHT=""
+BUILD_DATE=""
+#END_VERSION_GENERATION
+
 def get_power_status(conn, options):
 	try:
 		conn.sendline("racadm serveraction powerstatus")
fence/agents/ilo/Makefile +2 -2
index 4ea4299..42f17c8 100644
@@ -11,7 +11,7 @@
 ###############################################################################
 ###############################################################################
 
-SOURCE= fence_ilo.pl
+SOURCE= fence_ilo.py
 TARGET= fence_ilo
 
 top_srcdir=../..
@@ -23,7 +23,7 @@ fence_ilo: $(SOURCE)
 	: > $(TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
 	echo "\$$FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
-	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
+	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf sh REDHAT_COPYRIGHT >> $(TARGET)
 	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
 	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE) >> $(TARGET)
 	chmod +x $(TARGET)
fence/agents/ilo/fence_ilo.py renamed from fence/agents/ilo/ilo.py +7 -1
similarity index 91%
rename from fence/agents/ilo/ilo.py
rename to fence/agents/ilo/fence_ilo.py
index 1f3e330..9a0dfbb 100755
@@ -13,9 +13,15 @@
 #####
 
 import sys, re, pexpect
-sys.path.append("../lib/")
+sys.path.append("/usr/lib/fence")
 from fencing import *
 
+#BEGIN_VERSION_GENERATION
+FENCE_RELEASE_NAME=""
+REDHAT_COPYRIGHT=""
+BUILD_DATE=""
+#END_VERSION_GENERATION
+
 def get_power_status(conn, options):
 	try:
 		conn.send("POWER\r\n")
fence/agents/lib/Makefile renamed from fence/agents/apc/Makefile +3 -3
similarity index 95%
copy from fence/agents/apc/Makefile
copy to fence/agents/lib/Makefile
index a80f12b..d27454d 100644
@@ -11,15 +11,15 @@
 ###############################################################################
 ###############################################################################
 
-SOURCE= fence_apc.py
-TARGET= fence_apc
+SOURCE= fencing.py.py
+TARGET= fencing.py
 
 top_srcdir=../..
 include ${top_srcdir}/make/defines.mk
 
 all: $(TARGET)
 
-fence_apc: fence_apc.py
+$(TARGET): $(SOURCE)
 	: > $(TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
 	echo "FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
fence/agents/lib/fencing.py.py renamed from fence/agents/lib/fencing.py +9 -1
similarity index 97%
rename from fence/agents/lib/fencing.py
rename to fence/agents/lib/fencing.py.py
index 39d1285..a9a5952 100644
@@ -8,6 +8,13 @@ import sys, getopt, time, os
 import pexpect, re
 import telnetlib
 
+## do not add code here.
+#BEGIN_VERSION_GENERATION
+FENCE_RELEASE_NAME=""
+REDHAT_COPYRIGHT=""
+BUILD_DATE=""
+#END_VERSION_GENERATION
+
 POWER_TIMEOUT = 20
 SHELL_TIMEOUT = 3
 LOGIN_TIMEOUT = 5
@@ -226,7 +233,8 @@ def check_input(device_opt, opt):
 		sys.exit(0)
 
 	if options.has_key("-V"):
-		print "Version: 0.3 - 2008/03/19"
+		print FENCE_RELEASE_NAME, BUILD_DATE
+		print REDHAT_COPYRIGHT
 		sys.exit(0)
 
 	if options.has_key("-v"):
fence/agents/wti/Makefile +2 -2
index 2a47d4b..53b833a 100644
@@ -11,7 +11,7 @@
 ###############################################################################
 ###############################################################################
 
-SOURCE= fence_wti.pl
+SOURCE= fence_wti.py
 TARGET= fence_wti
 
 top_srcdir=../..
@@ -23,7 +23,7 @@ $(TARGET): $(SOURCE)
 	: > $(TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
 	echo "\$$FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
-	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf perl REDHAT_COPYRIGHT >> $(TARGET)
+	${top_srcdir}/scripts/define2var ${top_srcdir}/config/copyright.cf sh REDHAT_COPYRIGHT >> $(TARGET)
 	echo "\$$BUILD_DATE=\"(built `date`)\";" >> $(TARGET)
 	awk -v p=0 "(\$$1 ~ /#END_VERSION_GENERATION/){p = 1} {if(p==1)print}" $(SOURCE) >> $(TARGET)
 	chmod +x $(TARGET)
fence/agents/wti/fence_wti.py renamed from fence/agents/wti/wti.py +7 -1
similarity index 94%
rename from fence/agents/wti/wti.py
rename to fence/agents/wti/fence_wti.py
index 926d347..4bef408 100755
@@ -13,9 +13,15 @@
 #####
 
 import sys, re, pexpect
-sys.path.append("../lib/")
+sys.path.append("/usr/lib/fence")
 from fencing import *
 
+#BEGIN_VERSION_GENERATION
+FENCE_RELEASE_NAME=""
+REDHAT_COPYRIGHT=""
+BUILD_DATE=""
+#END_VERSION_GENERATION
+
 def get_power_status(conn, options):
 	try:
 		conn.send("/S"+"\r\n")
fence/bin/Makefile +10 -1
index 68bf9a7..e1958a7 100644
@@ -25,6 +25,7 @@ SBINPROGS= \
 	fence_baytech \
 	fence_brocade \
 	fence_drac \
+	fence_drac5 \
 	fence_egenera \
 	fence_ilo \
 	fence_manual \
@@ -46,6 +47,8 @@ SHAREPROGS = \
 	     powernet369.mib \
 	     README_SNMP
 
+FENCEPYLIB = \
+	     fencing.py
 
 include ${top_srcdir}/make/defines.mk
 
@@ -70,7 +73,13 @@ install: all
 	for v in ${SHAREPROGS}; do \
 		install -m644 $${v} ${sharedir}; \
 	done
+	if [ ! -d ${DESTDIR}/usr/lib/fence ]; then \
+		install -d ${DESTDIR}/usr/lib/fence; \
+	fi
+	for v in ${FENCEPYLIB}; do \
+		install -m644 $${v} ${DESTDIR}/usr/lib/fence; \
+	fi
 
 uninstall:
 	${UNINSTALL} ${SBINPROGS} ${sbindir}
-
+	${UNINSTALL} ${FENCEPYLIB} ${DESTDIR}/usr/lib/fence

hooks/post-receive
--
Cluster Project