Commit Graph

36 Commits

Author SHA1 Message Date
Ryan McCabe
286e0c61e4 fence_xvm/fence_virt: Add support for the validate-all status op
Add support for the validate-all status operation. In this mode,
the fence agent will validate the arguments given on either the
command line or standard input. If validation succeeds, it will
exit with code 0, otherwise it will exit with code 1.

Resolves: rhbz#1447700
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-03 23:22:34 -04:00
Dan Horák
c3d398645d use bswap_X() instead of b_swapX()
byteswap.h defined interface is bswap_X() not b_swapX()
2012-11-16 13:07:41 -05:00
Ryan McCabe
fc7d6bf464 fence-virt: Add back missing tcp_listener.h file
Add back AWOL header file.

Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2012-10-18 19:38:00 -04:00
Ryan McCabe
fb992c7d0f Add a delay (-w) option.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2012-06-07 18:10:49 -04:00
Ryan McCabe
f61626c108 Add a TCP listener plugin for use with viosproxy
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2012-06-01 15:22:02 -04:00
Lon Hohberger
c8bb151bee Clean up compiler warnings
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2012-02-07 11:14:25 -05:00
Lon Hohberger
bdec10cbb1 Reword assignment to appease static analyzers
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2011-09-20 11:17:35 -04:00
Lon Hohberger
3006e19e41 Make fence-virt requests endian clean
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2011-07-06 12:17:42 -04:00
Lon Hohberger
30481d4cc9 Return 2 for 'off' like other fencing agents
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-15 08:06:34 -05:00
Lon Hohberger
339052d433 Add missing static_map.h
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-14 15:33:50 -05:00
Lon Hohberger
d19a48a6b8 Add metadata support to fence_xvm/fence_virt
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-14 15:26:53 -05:00
Lon Hohberger
2edeb6dfe8 Allow use of static mappings w/ mcast listener
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-14 13:38:37 -05:00
Lon Hohberger
f665796f26 Enable VM Channel support in serial plugin
- Add cmdline processing for channel_ip
- Allow 'port' to be used in fence_virt mode
- Allow configuration of vmchannel mode for fence_virtd
  serial plugin
- Remove serial port default from fence_virt.
  It must now be specified or else VM Channel mode
  is used.  Note that to use VM Channel mode, you need:
    qemu 0.12.1 or later
    libvirt 0.7.3 or later
- Update man pages

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-13 23:34:35 -05:00
Lon Hohberger
2635e075b9 Pass source VM UUID (if known) to backend
Some backends (not yet implemented) which talk to management
layers will have mappings for what VMs can control what other
VMs.  So, the source VM UUID of the original request needs to
be sent along with the target VM UUID to the management layer
for arbitration.

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-13 13:52:55 -05:00
Lon Hohberger
726e40673e Static map support and permissions reporting
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-13 09:26:32 -05:00
Lon Hohberger
c7209147c2 Split fence_virt vs. fence_xvm args
Fence_virt -h and fence_xvm -h now produce
meaningful output

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-09 14:20:59 -05:00
root
4d7839abce Hostlist functionality for libvirt, libvirt-qpid
Signed-off-by: root <lon@users.sourceforge.net>
2009-12-07 12:55:48 -05:00
Lon Hohberger
8dffcbd726 Update monolithic build
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-11-05 14:01:35 -05:00
Lon Hohberger
76331b0c3c Make cluster mode plugin work
* Need to fix cpg_get_ids() - it is segfaulting
* Need to reconcile "in-cluster" vs "fenced"
* Message routing works.  It doesn't matter which node
  gets the fence request - fence requests are handled
  after being distributed by cpg.
* This makes fence_virtd 99% behavior-like compared to
  fence_xvmd

Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-16 20:07:46 -04:00
Lon Hohberger
1ddb9136d9 More build cleanups
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-15 12:08:10 -04:00
Lon Hohberger
701a876e73 Add sequence numbers to requests for tracking
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-15 10:28:20 -04:00
Lon Hohberger
d505e229a7 Make history functions generic
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-14 15:05:16 -04:00
Lon Hohberger
da7d3f4c9d Make debugging work from modules again
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-03 17:45:38 -04:00
Lon Hohberger
5beaad3390 Make all plugins dynamically loaded.
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-01 18:54:17 -04:00
Lon Hohberger
16d5a8aa98 Remove dummy serial prototypes
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-01 16:24:34 -04:00
Lon Hohberger
c6bf2d297a Make listeners plugins.
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-01 16:22:30 -04:00
Lon Hohberger
28627c9796 Fix context type names
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-08-28 14:12:46 -04:00
Lon Hohberger
f05920b01c Actually use the default port by default
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-08-21 14:21:14 -04:00
Lon Hohberger
138fed47d9 Make a default configuration file
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-08-21 14:02:06 -04:00
Lon Hohberger
fec2b03eeb Make serial_init match mcast_init.
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-08-20 12:33:05 -04:00
Lon Hohberger
36e28b3005 Make multicast use config file
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-08-20 12:26:51 -04:00
Lon Hohberger
61e0cc19c9 Integrate config file processing
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-08-17 16:53:58 -04:00
Lon Hohberger
9ec497ddc6 Create server-side plugin architecture
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-08-17 12:44:06 -04:00
Lon Hohberger
aa4d011b75 Remove bad list_do/list_done macros
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-08-12 13:21:36 -04:00
Lon Hohberger
214f9b65bf Make libvirt a built-in plugin
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-08-12 13:20:50 -04:00
Lon Hohberger
55357fcd85 initial checkin
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-07-28 10:46:53 -04:00