Lon Hohberger
71ee23d555
Clean up build and comments.
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2012-02-07 10:47:12 -05:00
Lon Hohberger
4a01ebe0f4
Add missing pm_fence source code
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2012-02-07 10:35:12 -05:00
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
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
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
Lon Hohberger
200eab4149
Make listen() retry
...
Pacemaker requires this in order to operate. Multiple fencing requests
will not come from a single host, however, it is possible that multiple
instances of fence_xvm will need to run at approximately the same time.
e.g. one 'status' or 'hostlist', one fencing action.
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2011-09-19 16:21:14 -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
Lon Hohberger
2118df11fa
Update README
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2011-09-19 16:11: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
Lon Hohberger
53a2b293d1
Ensure we don't try to strdup() or atoi() on NULL
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2011-09-09 18:22:36 -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
Lon Hohberger
19858bfbde
Fix incorrect return value on hash mismatch
...
Resolves: rhbz720767
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2011-08-03 10:21:44 -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
583ce1146a
Update TODO
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2011-07-06 11:06:21 -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
c3427373c8
Provide 'domain' in metadata output for compatibility
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2011-06-27 12:39:10 -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
5cba75e0b5
Fix man page references: fence_virtd.conf -> fence_virt.conf
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2011-01-10 10:47:00 -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
f54e73f392
Make configure.in actually disable plugins
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-02-24 14:06:53 -05:00
Lon Hohberger
baa344b575
Fix metadata output
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-02-10 13:32:38 -05:00
Lon Hohberger
0358a4e5ea
Rename parameters to match other fencing agents
...
port -> ipport (IP port to use)
domain -> port (VM to fence)
Resolves: rhbz#561418
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-02-03 15:07:17 -05:00
Lon Hohberger
882a128a50
Fix fence_xvm man page to point to the right location
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-02-03 15:06:46 -05:00
Lon Hohberger
1e95e2c9fc
client: Clarify license in serial.c
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-25 13:24:54 -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
b384f3bd31
More parity with other fencing agents' parameters
...
- use 'list' instead of 'hostlist'
- replace 'devstatus' with 'monitor'
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-14 19:26:21 -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
c7699c1ac6
Fix build warnings in client/serial.c
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-14 16:41:21 -05:00
Lon Hohberger
450ffdb26a
Add 'monitor' as an alias for 'status'
...
Makes the CRM happier.
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-14 16:26: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
d8d6aac72a
Make serial/vmchannel module enabled by default
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-14 16:20:54 -05:00
Lon Hohberger
fdc9fc9b58
Add missing 'metadata' option to help text
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-14 16:05:57 -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
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