Commit Graph

36 Commits

Author SHA1 Message Date
Ryan McCabe
09c434dfe5 fence-virt: Fix memory leak
Fix memory leak that occurred when setting up
the multicast socket failed.

Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2012-10-17 13:20:16 -04:00
Lon Hohberger
d72630b973 Fix crash when we fail to read key file.
If hashing is requested and we have no key data, immediately fail.

Resolves: rhbz#758392

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2012-02-08 14:51:01 -05:00
Lon Hohberger
3e2eb73b41 Return proper error if we can't set up our socket.
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2012-02-07 16:06:28 -05: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
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
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
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
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
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
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
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
726e40673e Static map support and permissions reporting
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-13 09:26:32 -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
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
f3e32a2297 Fix build on i686
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2009-09-23 13:40:02 -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
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
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
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
28627c9796 Fix context type names
Signed-off-by: Lon Hohberger <lhh@redhat.com>
2009-08-28 14:12:46 -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
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
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
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
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