Skip to contentSkip to conversation

Cluster Project branch, RHEL52, updated. cmirror_1_1_15-17-g5117298

Cluster-devel [email protected] 2 participants 2 messages Mar 28, 2008 – Mar 29, 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=5117298a37806feea827b4cd4bf44040484aa361

The branch, RHEL52 has been updated

       via  5117298a37806feea827b4cd4bf44040484aa361 (commit)
      from  5646af65c370043448f7b7f7574e9a053c2bb31e (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 5117298a37806feea827b4cd4bf44040484aa361

Author: jparsons <[email protected]>
Date:   Fri Mar 28 03:21:55 2008 -0400

Adds APC snmp fence agent into distribution.

This commit includes fence_apc_snmp in the fence package, and also places the apc mib file in /usr/share/snmp/mibs.

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

Summary of changes:

 fence/agents/{apc => apc_snmp}/Makefile        |   12 +-
 fence/agents/apc_snmp/fence_apc_snmp.py        |  463 ++++++++++++++++++++++++
 fence/agents/{apc => apc_snmp}/powernet369.mib |    0 
 fence/configure                                |    7 +
 fence/make/defines.mk.input                    |    4 +
 5 files changed, 483 insertions(+), 3 deletions(-)
 copy fence/agents/{apc => apc_snmp}/Makefile (86%)
 create mode 100755 fence/agents/apc_snmp/fence_apc_snmp.py
 copy fence/agents/{apc => apc_snmp}/powernet369.mib (100%)
fence/agents/apc_snmp/Makefile renamed from fence/agents/apc/Makefile +9 -3
similarity index 86%
copy from fence/agents/apc/Makefile
copy to fence/agents/apc_snmp/Makefile
index c33350a..29a0df7 100644
@@ -11,15 +11,16 @@
 ###############################################################################
 ###############################################################################
 
-SOURCE= fence_apc.py
-TARGET= fence_apc
+SOURCE= fence_apc_snmp.py
+TARGET= fence_apc_snmp
+RESOURCE= powernet369.mib
 
 top_srcdir=../..
 include ${top_srcdir}/make/defines.mk
 
 all: $(TARGET)
 
-fence_apc: fence_apc.py
+fence_apc_snmp: fence_apc_snmp.py
 	: > $(TARGET)
 	awk "{print}(\$$1 ~ /#BEGIN_VERSION_GENERATION/){exit 0}" $(SOURCE) >> $(TARGET)
 	echo "FENCE_RELEASE_NAME=\"${RELEASE}\";" >> $(TARGET)
@@ -34,5 +35,10 @@ install: all
 	fi
 	install -m755 ${TARGET} ${sbindir}
 
+	if [ ! -d ${mibdir} ]; then \
+		install -d ${mibdir}; \
+	fi
+	install -m755 ${RESOURCE} ${mibdir}
+
 clean:
 	rm -f $(TARGET)
fence/agents/apc_snmp/fence_apc_snmp.py new file +463 -0

463 lines not on this page · raw message

fence/agents/apc_snmp/powernet369.mib renamed from fence/agents/apc/powernet369.mib +0 -0
similarity index 100%
copy from fence/agents/apc/powernet369.mib
copy to fence/agents/apc_snmp/powernet369.mib
fence/configure +7 -0
index 97d27e1..c40d098 100755
@@ -33,6 +33,7 @@ $ret = 0;
 	mandir  => \$mandir,
 	prefix => \$prefix,
 	sbindir => \$sbindir,
+	mibdir => \$mibdir,
 	initdir => \$initdir,
 	enable_xen => \$enable_xen,
 	verbose => \$verbose
@@ -49,6 +50,7 @@ $err = &GetOptions (\%options,
 		    'mandir=s',
 		    'prefix=s',
 		    'sbindir=s',
+		    'mibdir=s',
 		    'initdir=s',
 		    'sharedir=s',
 		    'enable_xen',
@@ -75,6 +77,7 @@ if ($help || !$err) {
   print "--mandir=\tthe base directory for man pages.  (Default: /usr/share/man)\n";
   print "--prefix=\tthe base directory to install into.  (Default: /)\n";
   print "--sbindir=\tthe base directory for system binaries.  (Default: /sbin)\n";
+  print "--mibdir=\tthe base directory for snmp MIB files.  (Default: /usr/share/snmp/mibs)\n";
   print "--initdir=\tthe base directory for init scripts.  (Default: /etc/init.d)\n";
   print "--sharedir=\tthe base directory for misc cluster files.  (Default: /usr/share/cluster)\n";
   print "--enable_xen\t\tEnable building of Xen-specific pieces\n";
@@ -108,6 +111,9 @@ if (!$mandir) {
 if (!$sbindir) {
   $sbindir="${prefix}/sbin";
 }
+if (!$mibdir) {
+  $mibdir="${prefix}/usr/share/snmp/mibs";
+}
 if (!$initdir) {
   $initdir="${prefix}/etc/init.d";
 }
@@ -135,6 +141,7 @@ while (<IFILE>) {
   $_ =~ s/\@CCSLIBDIR\@/$ccslibdir/;
   $_ =~ s/\@MANDIR\@/$mandir/;
   $_ =~ s/\@SBINDIR\@/$sbindir/;
+  $_ =~ s/\@MIBDIR\@/$mibdir/;
   $_ =~ s/\@INITDIR\@/$initdir/;
   $_ =~ s/\@SHAREDIR\@/$sharedir/;
   $_ =~ s/\@ENABLE_XEN\@/$enable_xen/;
fence/make/defines.mk.input +4 -0
index d19acf2..b270dea 100644
@@ -22,6 +22,10 @@ ccsincdir ?= ${DESTDIR}@CCSINCDIR@
 enable_xen ?= @ENABLE_XEN@
 initdir ?= ${DESTDIR}/@INITDIR@
 
+# MIB directory used by apc snmp agent
+mibdir ?= ${DESTDIR}/@MIBDIR@
+
+
 # Where's the kernel?
 KERNEL_SRC = @KERNEL_SRC@
 

hooks/post-receive
--
Cluster Project

#1 lore raw

Hi Jim,

I had a quick chat with Kevin and Lon on IRC and as a result i updated the master branch to reflect this change.

We all agreed that also STABLE2 will need it (cherry picked from master) but before doing so, I'd love for you to take a look at both fence_apc_snmp.py in RHEL52 and master branches as they differ a lot and I am no python expert.

Do you think you can take care of this?

Thanks
Fabio

PS once master is updated i will take care of propagating into STABLE2.

fence/agents/apc_snmp/Makefile

Quoted 42 lines · jparsons at sourceware.org

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=5117298a37806feea827b4cd4bf44040484aa361

The branch, RHEL52 has been updated

      via  5117298a37806feea827b4cd4bf44040484aa361 (commit)
     from  5646af65c370043448f7b7f7574e9a053c2bb31e (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 5117298a37806feea827b4cd4bf44040484aa361

Author: jparsons <[email protected]>
Date:   Fri Mar 28 03:21:55 2008 -0400

Adds APC snmp fence agent into distribution.

This commit includes fence_apc_snmp in the fence package, and also places the apc mib file in /usr/share/snmp/mibs.

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

Summary of changes:

fence/agents/{apc => apc_snmp}/Makefile        |   12 +-
fence/agents/apc_snmp/fence_apc_snmp.py        |  463 ++++++++++++++++++++++++
fence/agents/{apc => apc_snmp}/powernet369.mib |    0
fence/configure                                |    7 +
fence/make/defines.mk.input                    |    4 +
5 files changed, 483 insertions(+), 3 deletions(-)

copy fence/agents/{apc => apc_snmp}/Makefile (86%) create mode 100755 fence/agents/apc_snmp/fence_apc_snmp.py copy fence/agents/{apc => apc_snmp}/powernet369.mib (100%)

fence/agents/apc_snmp/Makefile renamed from fence/agents/apc/Makefile +0 -0
similarity index 86%
copy from fence/agents/apc/Makefile
copy to fence/agents/apc_snmp/Makefile
index c33350a..29a0df7 100644

--
I'm going to make him an offer he can't refuse.