cluster/fence agents/Makefile man/Makefile age ...
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: lhh at sourceware.org 2006-10-05 16:11:36
Modified files:
fence/agents : Makefile
fence/man : Makefile
Added files:
fence/agents/xvm: Makefile Makefile.tmp README TODO fence_xvm.c
fence_xvmd.c ip_lookup.c ip_lookup.h mcast.c mcast.h options.c options.h simple_auth.c simple_auth.h tcp.c tcp.h virt.c virt.h vm_states.c xvm.h
fence/man : fence_xvm.8 fence_xvmd.8
Log message:
Implementation of client/server based Xen Virtual Machine (xvm) fencing. This allows fencing of a virtual machine from any other virtual machine in the cluster (regardless of the physical host) which shares the same private key, either based on UUID or Xen domain name. Please see README and TODO before posting feature requests.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/Makefile.diff?cvsroot=cluster&r1=1.13&r2=1.14
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/Makefile.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/Makefile.tmp.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/README.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/TODO.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/fence_xvm.c.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/fence_xvmd.c.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/ip_lookup.c.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/ip_lookup.h.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/mcast.c.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/mcast.h.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/options.c.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/options.h.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/simple_auth.c.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/simple_auth.h.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/tcp.c.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/tcp.h.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/virt.c.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/virt.h.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/vm_states.c.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/xvm/xvm.h.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/man/fence_xvm.8.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/man/fence_xvmd.8.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/man/Makefile.diff?cvsroot=cluster&r1=1.9&r2=1.10
fence/agents/Makefile +3 -0
@@ -34,6 +34,7 @@ ${MAKE} -C vixel all ${MAKE} -C wti all # ${MAKE} -C xcat all + ${MAKE} -C xvm all # ${MAKE} -C zvm all install: all
@@ -58,6 +59,7 @@ ${MAKE} -C vixel install ${MAKE} -C wti install # ${MAKE} -C xcat install + ${MAKE} -C xvm install # ${MAKE} -C zvm install clean:
@@ -82,4 +84,5 @@ ${MAKE} -C vixel clean ${MAKE} -C wti clean # ${MAKE} -C xcat clean + ${MAKE} -C xvm clean # ${MAKE} -C zvm clean
/cvs/cluster/cluster/fence/agents/xvm/Makefile,v --> standard output revision 1.1
- renamed from fence/agents/xvm/Makefile +54 -0
54 lines not on this page · raw message
/cvs/cluster/cluster/fence/agents/xvm/Makefile.tmp,v --> standard output revision 1.1
- renamed from fence/agents/xvm/Makefile.tmp +40 -0
@@ -0,0 +1,40 @@ +############################################################################### +############################################################################### +## +## Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. +## Copyright (C) 2004 Red Hat, Inc. All rights reserved. +## +## This copyrighted material is made available to anyone wishing to use, +## modify, copy, or redistribute it subject to the terms and conditions +## of the GNU General Public License v.2. +## +############################################################################### +############################################################################### + +TARGET= fence_ipmilan + +fence_ipmilan_SOURCE= expect.c ipmilan.c + +top_srcdir=../.. + + +INCLUDE= -I${top_srcdir}/include -I${top_srcdir}/config + + +include ${top_srcdir}/make/defines.mk + +CFLAGS+= -DFENCE_RELEASE_NAME=\"${RELEASE}\" -DFENCE + +all: ${TARGET} + +fence_ipmilan: ${fence_ipmilan_SOURCE:.c=.o} + ${CC} ${CFLAGS} ${LDFLAGS} ${fence_ipmilan_SOURCE:.c=.o} -o $@ + +install: all + if [ ! -d ${sbindir} ]; then \ + install -d ${sbindir}; \ + fi + install -m755 ${TARGET} ${sbindir} + +clean: + rm -f *.o ${TARGET}
/cvs/cluster/cluster/fence/agents/xvm/README,v --> standard output revision 1.1
- renamed from fence/agents/xvm/README +124 -0
124 lines not on this page · raw message
/cvs/cluster/cluster/fence/agents/xvm/TODO,v --> standard output revision 1.1
- renamed from fence/agents/xvm/TODO +42 -0
42 lines not on this page · raw message
/cvs/cluster/cluster/fence/agents/xvm/fence_xvm.c,v --> standard output revision 1.1
- renamed from fence/agents/xvm/fence_xvm.c +358 -0
358 lines not on this page · raw message
/cvs/cluster/cluster/fence/agents/xvm/fence_xvmd.c,v --> standard output revision 1.1
- renamed from fence/agents/xvm/fence_xvmd.c +652 -0
652 lines not on this page · raw message
/cvs/cluster/cluster/fence/agents/xvm/ip_lookup.c,v --> standard output revision 1.1
- renamed from fence/agents/xvm/ip_lookup.c +298 -0
298 lines not on this page · raw message
/cvs/cluster/cluster/fence/agents/xvm/ip_lookup.h,v --> standard output revision 1.1
- renamed from fence/agents/xvm/ip_lookup.h +40 -0
@@ -0,0 +1,40 @@ +/* + Copyright Red Hat, Inc. 2004,2006 + + The Magma Cluster API Library is free software; you can redistribute + it and/or modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either version + 2.1 of the License, or (at your option) any later version. + + The Magma Cluster API Library is distributed in the hope that it will + be useful, but WITHOUT ANY WARRANTY; without even the implied warranty + of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + USA. +*/ +/** @file + * Header for ip_lookup.c + */ +#ifndef _IP_LOOKUP_H +#define _IP_LOOKUP_H + +#include <sys/queue.h> + +typedef struct _ip_address { + TAILQ_ENTRY(_ip_address) ipa_entries; + char ipa_family; + char *ipa_address; +} ip_addr_t; + +typedef TAILQ_HEAD(_ip_list, _ip_address) ip_list_t; + +int ip_search(ip_list_t *ipl, char *ip_name); +int ip_free_list(ip_list_t *ipl); +int ip_build_list(ip_list_t *ipl); +int ip_lookup(char *, struct addrinfo **); + +#endif
/cvs/cluster/cluster/fence/agents/xvm/mcast.c,v --> standard output revision 1.1
- renamed from fence/agents/xvm/mcast.c +356 -0
356 lines not on this page · raw message
/cvs/cluster/cluster/fence/agents/xvm/mcast.h,v --> standard output revision 1.1
- renamed from fence/agents/xvm/mcast.h +32 -0
@@ -0,0 +1,32 @@ +/* + Copyright Red Hat, Inc. 2006 + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation; either version 2, or (at your option) any + later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; see the file COPYING. If not, write to the + Free Software Foundation, Inc., 675 Mass Ave, Cambridge, + MA 02139, USA. +*/ +#ifndef _XVM_MCAST_H +#define _XVM_MCAST_H + +#define IPV4_MCAST_DEFAULT "225.0.0.12" +#define IPV6_MCAST_DEFAULT "ff05::3:1" + +int ipv4_recv_sk(char *addr, int port); +int ipv4_send_sk(char *src_addr, char *addr, int port, + struct sockaddr *src, socklen_t slen); +int ipv6_recv_sk(char *addr, int port); +int ipv6_send_sk(char *src_addr, char *addr, int port, + struct sockaddr *src, socklen_t slen); + +#endif
/cvs/cluster/cluster/fence/agents/xvm/options.c,v --> standard output revision 1.1
- renamed from fence/agents/xvm/options.c +631 -0
631 lines not on this page · raw message
/cvs/cluster/cluster/fence/agents/xvm/options.h,v --> standard output revision 1.1
- renamed from fence/agents/xvm/options.h +53 -0
53 lines not on this page · raw message
/cvs/cluster/cluster/fence/agents/xvm/simple_auth.c,v --> standard output revision 1.1
- renamed from fence/agents/xvm/simple_auth.c +396 -0
301 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
/cvs/cluster/cluster/fence/agents/xvm/simple_auth.h,v --> standard output revision 1.1
- renamed from fence/agents/xvm/simple_auth.h +35 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
/cvs/cluster/cluster/fence/agents/xvm/tcp.c,v --> standard output revision 1.1
- renamed from fence/agents/xvm/tcp.c +290 -0
290 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
/cvs/cluster/cluster/fence/agents/xvm/tcp.h,v --> standard output revision 1.1
- renamed from fence/agents/xvm/tcp.h +27 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
/cvs/cluster/cluster/fence/agents/xvm/virt.c,v --> standard output revision 1.1
- renamed from fence/agents/xvm/virt.c +224 -0
224 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
/cvs/cluster/cluster/fence/agents/xvm/virt.h,v --> standard output revision 1.1
- renamed from fence/agents/xvm/virt.h +80 -0
80 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
/cvs/cluster/cluster/fence/agents/xvm/vm_states.c,v --> standard output revision 1.1
- renamed from fence/agents/xvm/vm_states.c +427 -0
427 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
/cvs/cluster/cluster/fence/agents/xvm/xvm.h,v --> standard output revision 1.1
- renamed from fence/agents/xvm/xvm.h +75 -0
75 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
/cvs/cluster/cluster/fence/man/fence_xvm.8,v --> standard output revision 1.1
- renamed from fence/man/fence_xvm.8 +139 -0
139 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
/cvs/cluster/cluster/fence/man/fence_xvmd.8,v --> standard output revision 1.1
- renamed from fence/man/fence_xvmd.8 +78 -0
78 lines not on this page · raw message
fence/man/Makefile +2 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.