Commit Graph

175 Commits

Author SHA1 Message Date
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
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
66a08c63c2 Update TODO
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-13 23:46:42 -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
4602faeaf2 Update TODO based on progress
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-13 13:55:06 -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
053ed9167d Man page cleanups
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-13 11:37:48 -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
ac1b594c75 Sync up on SERIAL_MAGIC while waiting for a response
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-13 08:37:41 -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
a106dd5d88 Update TODO
- initial serial plugin is working

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-13 02:21:20 -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
4ae121d860 Fix fence_virt.conf man page name
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-12 18:44:28 -05:00
Lon Hohberger
6656a78aeb Add Fedora init script
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-12 18:17:27 -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
1a1c02b11d Fix up help text for clients
* Output defaults from includes rather than static text
* Add simple wrapping functions for help text

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-12 17:18:41 -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
cb92591c38 add missing module_path to fence_virtd.conf.5
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-12 08:35:29 -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