Commit Graph

178 Commits

Author SHA1 Message Date
Marek Grac
7446b36898 Add vmchannel serial event interface
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-11 10:16:57 -05:00
Lon Hohberger
eff8f93c54 Add static map functions.
NOTE: This will not have any effect until the vmchannel
bits are completed and integrated.

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-09 11:51:25 -05:00
Lon Hohberger
8871a95386 Fix build warning due to missing #include
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-08 18:20:33 -05:00
Lon Hohberger
6502600674 Add simple configuration mode
This adds a simple configuration utility so that users
may easily configure fence_virtd.

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-06 17:03:55 -05:00
Lon Hohberger
de92889d2a Sort plugins by type when printing them 2010-01-04 14:18:54 -05:00
Lon Hohberger
e0dd134a34 Revert "Sort plugins by type when printing them"
This reverts commit 2707d32a87.
2010-01-04 14:16:42 -05:00
Lon Hohberger
2707d32a87 Sort plugins by type when printing them
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-04 14:13:08 -05:00
Lon Hohberger
22a2dd65f3 Clean up some configuration plugin information
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-04 14:12:21 -05:00
Carlos Eduardo Maiolino
c405542d76 Make libvirt to automatically use uuid or names
Signed-off-by: Carlos Eduardo Maiolino <cmaiolino@redhat.com>
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-12-07 18:11:25 -05:00
Lon Hohberger
58aef2eb34 Improve error reporting
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-12-07 13:11:39 -05:00
root
d72839781f Fix build for hostlist functionality
Signed-off-by: root <lon@users.sourceforge.net>
2009-12-07 13:07:17 -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
a8202ef0c6 Fix libvirt / mcast support for name_mode
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-12-03 17:29:47 -05:00
Lon Hohberger
11c5fff0ad Fix dlsym mapping of C++ module
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-11-12 14:12:42 -05:00
Lon Hohberger
33c16854eb Make uuids work with libvirt-qpid
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-11-06 13:16:42 -05:00
Lon Hohberger
decab46dda Fix uninitialized variable causing false returns
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-11-05 14:07:33 -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
515e95a11b Fix linking problem
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-11-05 13:23:00 -05:00
Lon Hohberger
e795db6313 Add 'help' to fence_virtd
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-11-05 13:07:06 -05:00
Lon Hohberger
6a4508e1da Fix libvirt-qpid build
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-11-05 13:02:12 -05:00
Lon Hohberger
4cd5a5ad13 Make 'reboot' work
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-11-05 12:59:41 -05:00
Lon Hohberger
0702f25435 Fix libvirt-qpid build
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-11-05 12:59:26 -05:00
Lon Hohberger
9d59ad84a5 Add libvirt-qpid build target
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-11-05 12:53:55 -05:00
Lon Hohberger
1b5e472d59 Initial checking of libvirt-qpid plugin
This is primarily build integration and is untested; please
do not use.

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-10-20 16:16:44 -04:00
Lon Hohberger
f3e32a2297 Fix build on i686
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-09-23 13:40:02 -04:00
Lon Hohberger
4f870c4fd0 Make symlink/compatibilty mode disabled by default
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-09-23 12:04:32 -04:00
Lon Hohberger
8de25d4141 Use immediate resolution of symbols
This will prevent crashes mid-execution.

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-09-17 15:29:14 -04:00
Lon Hohberger
9931f5f4e7 Fix package name and install locations
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-09-17 15:16:24 -04:00
Lon Hohberger
21dab5b24c Fix daemon return code
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-09-17 14:22:21 -04:00
Lon Hohberger
3cf5156968 Add missing header file
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-09-17 14:11:00 -04: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
01a1b16d7e Add basic cpg stuff for later
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-15 15:40:41 -04:00
Lon Hohberger
9935a3077d Enable 'on' operation for libvirt backend
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-15 15:24:56 -04:00
Lon Hohberger
64d0f596f6 Clean up modular build
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-15 15:17:14 -04:00
Lon Hohberger
f796c64fc3 Minor build cleanups
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-15 13:27:03 -04:00
Lon Hohberger
4960380013 Yet more build fixes
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-15 12:18:49 -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
e190d1e271 Build cleanups
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-15 11:38:11 -04:00
Lon Hohberger
906b0f62b9 Initial port to autoconf
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-15 11:25:02 -04:00
Lon Hohberger
2ecd68297f Add checkpoint.c stub functions
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-15 10:29:08 -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
be9794a39d Call generic history functions
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-14 15:06:38 -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
8c3b59fe53 Revert "Fix build issue breaking debug printing from modules"
This reverts commit 4daa1bbdd5.
2009-09-03 16:40:55 -04:00
Lon Hohberger
4daa1bbdd5 Fix build issue breaking debug printing from modules
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-03 16:18:47 -04:00
Lon Hohberger
87c4b2cbd9 Fix libvirt backend; VALIDATE was wrong
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-03 10:55:30 -04:00
Lon Hohberger
5ac3d57341 Cleanups, add daemon support
- fix log messages
- add daemon support
- add foreground support
- log bits to syslog when we fail post-fork

Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-01 19:26:08 -04:00
Lon Hohberger
e94b653f7a Add simple 'null' skeleton backend plugin
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-01 19:11:15 -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
ac60769002 Fix error message
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-01 18:18:20 -04:00
Lon Hohberger
56282c40e8 Remove modules in 'make clean'
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-01 16:23:09 -04:00
Lon Hohberger
c6bf2d297a Make listeners plugins.
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-01 16:22:30 -04:00
root
d6b557a407 Fix whitespace
Signed-off-by: root <root@localhost.localdomain>
2009-09-01 15:42:07 -04:00
Lon Hohberger
ddc8c75e2d Move name_mode to fence_virtd block
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-01 15:39:01 -04:00
Lon Hohberger
0e30b2fa86 Move VM naming scheme to top level of config
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-01 15:31:24 -04:00
Lon Hohberger
c09c3e4551 Fix bad assignment due to wrong variable
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-01 15:23:53 -04:00
Lon Hohberger
bcd87ec4fc Fix use of wrong variable
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-01 15:15:53 -04:00
Lon Hohberger
232cf60285 Revert "Fix use of wrong variable"
This reverts commit b3df26bc6b.
2009-09-01 15:15:34 -04:00
Lon Hohberger
b3df26bc6b Fix use of wrong variable
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-01 15:14:09 -04:00
Lon Hohberger
c322978fef Enable UUID use in libvirt.c
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-09-01 15:13:53 -04:00
Lon Hohberger
481905d8bf Add missing log.c. Enable syslog wrapping
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-08-31 09:38:28 -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
58467292b1 Minor cleanup
- Remove reference to fence_callbacks structure
- Remove old options-ccs.c

Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-08-28 14:04:28 -04:00
Lon Hohberger
2464a326b8 Drop duplicate fencing requests
XVM shotguns packets from all interfaces on the system.
This means the server can get the same request from multiple
interfaces at the same time.  This records a history of
fencing requests and drops duplicates for a few seconds.

Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-08-21 15:31:02 -04:00
Lon Hohberger
d3a421f1bb Fix segfault
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-08-21 14:36:14 -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
1e3ee504f9 Install modules, too. 2009-08-21 14:12:58 -04:00
Lon Hohberger
d7f7dec3ec Add temporary 'make install' target 2009-08-21 14:05:48 -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
062460c14f Make mcast work with UUIDs
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-08-21 14:00:01 -04:00
Lon Hohberger
a593b53741 Remove useless prototype
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-08-21 13:43:42 -04:00
Lon Hohberger
68c5d1c57b Add checkpoint.so to the build
Even though it doesn't work yet ;)

Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-08-20 15:03:41 -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
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