Ryan McCabe
85ecac5cff
fence-virt: Fix possible fd leak
...
Fix a fd leak that could occur if reading /dev/urandom failed.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2012-10-17 13:20:08 -04:00
Ryan McCabe
c48c06819f
fence-virt: Fix null pointer deref
...
Fix an unlikely null pointer dereference that could occur
subsequent to malloc failing.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2012-10-17 13:20:02 -04:00
Ryan McCabe
0c502aad77
fence-virt: Explicitly set delay to 0
...
Explicitly set the delay argument to 0 when initializing the args
struct.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2012-10-17 13:19:56 -04:00
Ryan McCabe
9b8bc5ba1c
fence-virt: Fix return with lock held
...
Release the parser mutex before returning if malloc
fails.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2012-10-17 13:17:22 -04:00
Ryan McCabe
b35ac70bf2
fence_virt: Fix typo in fence_virt(8) man page
...
Fix the description of when serial/vmchannel parameters are accepted.
Resolves: rhbz#761228
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2012-10-08 10:54:25 -04:00
Ryan McCabe
98e332e243
fence_virt: Return failure for nonexistent domains
...
Return failure instead of success if a user attempts an operation
on a domain that does not exist.
Resolves: rhbz#853927
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2012-10-08 10:53:13 -04:00
Ryan McCabe
83d1c3f68e
Merge branch 'master' of github.com:ryan-mccabe/fence-virt
2012-07-27 11:22:23 -04:00
Ryan McCabe
30fb5cd5f1
Initial commit
2012-07-27 08:12:05 -07:00
Lon Hohberger
96ff88d44f
Improve fence_virt.conf man page description of 'hash'
...
Signed-off-by: Lon Hohberger <lhh@redhat.com>
Acked-by: Ryan McCabe <rmccabe@redhat.com>
Acked-by: Jaroslav Kortus <jkortus@redhat.com>
2012-07-25 11:11:26 -04:00
Ryan McCabe
fb992c7d0f
Add a delay (-w) option.
...
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2012-06-07 18:10:49 -04:00
Ryan McCabe
4c0038cb92
Remove duplicated port struct entry
...
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2012-06-01 16:03:59 -04:00
Ryan McCabe
f61626c108
Add a TCP listener plugin for use with viosproxy
...
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2012-06-01 15:22:02 -04:00
Ryan McCabe
52381ce2b7
In serial mode, return failure if the other end closes the connection
...
before we see SERIAL_MAGIC in the reply or timeout.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2012-05-16 09:15:42 -04:00
Lon Hohberger
2f87331c1a
Stop linking against unnecessary QPid libs.
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2012-03-26 17:13:37 -04:00
Lon Hohberger
961cc3ed7f
Update libvirt-qmf plugin and docs
...
Resolves: rhbz#753974
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2012-02-08 15:46:50 -05: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
2f819624b3
Fix erroneous man page XML
...
Resolves: rhbz#761215
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2012-02-08 12:13:39 -05:00
Lon Hohberger
af48d0405f
Add 'interface' directive to example.conf
...
Fedora systems require this.
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2012-02-07 16:18:55 -05:00
Lon Hohberger
2b01d8f887
Fix build
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2012-02-07 16:08:26 -05:00
Lon Hohberger
ccff09f2c7
Add old wait_for_backend directive handling & docs
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2012-02-07 16:06:40 -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
Lon Hohberger
19674ab0bd
Fix startup in systemd environments
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2012-02-07 16:03:05 -05:00
Lon Hohberger
9522be50d9
Add systemd unit file and generation
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2012-02-07 14:05:37 -05:00
Lon Hohberger
a1b5a03c38
Don't override user's pick for backend server module
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2012-02-07 11:23:27 -05:00
Lon Hohberger
3f65274331
Use libvirt as default in shipped config
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2012-02-07 11:19:57 -05:00
Lon Hohberger
c8bb151bee
Clean up compiler warnings
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2012-02-07 11:14:25 -05:00
Lon Hohberger
e96ef84b3e
Fix serial domain handling
2012-02-07 11:04:53 -05:00
Lon Hohberger
5652c743a2
Fix monolithic build
...
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
2012-02-07 10:59:23 -05:00
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