Commit Graph

166 Commits

Author SHA1 Message Date
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
Lon Hohberger
21627e26aa Note that serial support is experimental
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-11 10:22:48 -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
c7209147c2 Split fence_virt vs. fence_xvm args
Fence_virt -h and fence_xvm -h now produce
meaningful output

Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-09 14:20:59 -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
42af98aa99 Fix multiple query code
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-08 18:17:03 -05:00
Lon Hohberger
2643994886 Better config query & multiple value/tag support
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2010-01-08 16:40:31 -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