Commit Graph

178 Commits

Author SHA1 Message Date
Lon Hohberger
98b90b54b3 Disable CMAN / checkpoint build by default
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2012-02-06 16:03:30 -05:00
Lon Hohberger
a72539fd30 Rename libvirt-qpid -> libvirt-qmf
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2011-11-15 09:54:52 -05:00
Lon Hohberger
f7ccaa261a Fix static analysis errors
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2011-09-20 11:40:39 -04:00
Lon Hohberger
1b6f7975b6 Handle return value from virDomainGetInfo
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2011-09-20 11:15:34 -04:00
Lon Hohberger
e1fa9b2397 Fix bad sizeof()
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2011-09-20 11:11:39 -04:00
Kazunori INOUE
b51aab4de9 Add map_check on 'status' action
This makes static maps behave on par with the list operation.

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2011-09-19 16:19:10 -04:00
Zane Bitter
b5e1bc6e5f Don't reference out-of-scope temporary
The string on which we were calling c_str() was a temporary, so the C
string returned would no longer be valid. This issue was detected by a
Coverity scan.

Signed-off-by: Zane Bitter <zbitter@redhat.com>
Reviewed-by: Lon Hohberger <lon@users.sourceforge.net>
2011-09-16 10:47:09 -04:00
Zane Bitter
a2aff2aeb8 Add libvirt-qmf support to the libvirt-qpid plugin
libvirt-qmf has replaced libvirt-qpid. It performs the same functions, but
has a slightly different schema. It is also a matahari agent, so the
default port to connect to is now matahari-brokerd's port, not qpidd's.
2011-08-10 20:53:47 -04:00
Zane Bitter
6dbcc69505 Convert libvirt-qpid plugin to QMFv2 2011-08-10 20:53:35 -04:00
Zane Bitter
e4658c1ae2 Fix error getting status from libvirt-qpid plugin
Signed-off-by: Zane Bitter <zbitter@redhat.com>
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2011-08-02 11:09:49 -04:00
Zane Bitter
0bbad3b87b Fix typo that broke multicast plugin
Signed-off-by: Zane Bitter <zbitter@redhat.com>
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2011-08-02 11:07:07 -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
cb64c8c89f Fix input parsing to allow domain again
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2011-06-28 17:09:02 -04:00
Lon Hohberger
612d943631 High: Fix UUID lookups in checkpoint backend
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2011-06-27 12:38:32 -04:00
Lon Hohberger
fce9ec7db1 Curtail 'list' operation requests
When a host is in one or more groups, present only other VMs that
VM may fence according to its group assignments in fence_virt.conf

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2011-02-28 14:18:26 -05:00
Lon Hohberger
768cbdca10 Add 'list' operation for plugins; fix missing getopt line
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-12-08 13:52:59 -05:00
Lon Hohberger
a2e840892d Fix build with newer versions of qpid
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-12-08 13:52:42 -05: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
2c4df2e500 Reset flags before returning from connect_nb
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-14 19:58:40 -05:00
Lon Hohberger
282b384c08 Use nonblocking connect to vmchannel sockets
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-14 19:56:32 -05:00
Lon Hohberger
16aafe3974 Fix memory leaks found with valgrind
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-14 18:46:21 -05:00
Lon Hohberger
1fce42fdb0 Add basic daemon functions
- pid file management
- only spawn one instance of fence_virtd

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-14 18:45:47 -05:00
Lon Hohberger
960963bda5 Fix bug in path pruning support for serial plugin
We were treating 'no path' as 'never match', breaking
fence_virtd's monitoring of VM channel sockets.

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-14 17:55:00 -05:00
Lon Hohberger
d95bb6ef93 Fix libvirt-qpid bugs found while testing
- never giving up on an invalid domain
- returning failure from reboot (always)
- returning failure from off/on operation when
  the domain was in the requested state (e.g. 'on' when
  vm was running should succeed, not fail)

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-14 17:39:01 -05:00
Lon Hohberger
c659395aba Fix segfault caused by invalid map pointer assignment
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-14 17:03:37 -05:00
Lon Hohberger
4e9cd15d7e Fix another compiler warning
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-14 16:43:58 -05:00
Lon Hohberger
841d76fb1a Add serial listener to configuration utility
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-14 16:21:16 -05:00
Lon Hohberger
f38f9327d8 Allow IPs to be members of groups
This allows fencing requests with the appropriate
key file to control VMs assigned to the same
group.

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-14 15:00:43 -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
e8bd0aba80 Make 'path' be a directory
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-14 08:56:45 -05:00
Lon Hohberger
18ab7d42a0 Remove useless debug printfs
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-13 23:38:27 -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
c8f8fc2900 Mirror libvirt-qpid's settings in libvirt-qpid plugin
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-13 13:38:00 -05:00
Lon Hohberger
225726159a libvirt-qpid: clean up global variable
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-13 13:04:46 -05:00
Carlos Maiolino
ed96ccbb06 Enable a configurable host/port on libvirt-qpid plugin
Signed-off-by: Carlos Eduardo Maiolino <cmaiolino@redhat.com>
2010-01-13 12:13:54 -05:00
Lon Hohberger
393b9665b3 Minor config utility cleanups
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-13 11:38:04 -05:00
Lon Hohberger
186ce4f23c Remove unnecessary name_mode from multicast plugin
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-13 11:01:15 -05:00
Lon Hohberger
d282b0691a Add prototypes and clean up build warnings
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-13 10:53:55 -05:00
Lon Hohberger
ae8bdd8461 Use seqno in serial requests
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-13 10:13:14 -05:00
Lon Hohberger
add64089d7 Minor debugging message cleanup
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-13 10:04:31 -05:00
Lon Hohberger
05fea81b67 Fix build error due to improper value
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-13 09:59:06 -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
f5eb9a939f Don't build serial vmchannel module by default
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-13 02:24:19 -05:00
Lon Hohberger
30e8654e77 Initial checkin of serial server-side support
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-13 02:20:38 -05:00
Lon Hohberger
274a828933 Compiler warning cleanups in virt-serial.c
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-12 17:36:03 -05:00
Lon Hohberger
e87de14344 Add wait-for-backend mode
* Makes initscript ordering unimportant

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-12 17:32:13 -05:00
Lon Hohberger
258ed1dc00 Minor XML cleanups, add missing free() call
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-12 08:35:47 -05:00
Lon Hohberger
5a21922728 Add capabilities to virt-serial
- detect existing (running) domains for registration of
  vmchannel (serial) sockets
- detect domains being stopped so we can unregister the
  socket(s) for that domain
- ran through Lindent for indentation consistency

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-11 13:26:43 -05:00
Lon Hohberger
7b3a080914 Add a serial.so build target
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-11 10:17:24 -05:00
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