Andrew A. Vasilyev
40ed0d5f61
gear-remotes-save
2019-05-07 15:52:45 +03:00
Andrew A. Vasilyev
04e9cd43ea
fix sysv init script
2019-05-07 15:52:09 +03:00
Andrew A. Vasilyev
12d8c04efa
fix build with PIC and PIE
2019-05-07 15:46:33 +03:00
Andrew A. Vasilyev
1d42a96e60
add sysv init script
2019-05-06 19:57:20 +03:00
Andrew A. Vasilyev
f9daad70d4
add gear rules
2019-05-06 19:52:03 +03:00
Ryan McCabe
c2ca768a8e
Merge pull request #15 from oalbrigt/fence_virt-fix-core-dump
...
fence_virt: fix core dump caused by the last commit (harden/fPIE)
2019-04-10 10:13:16 -04:00
Oyvind Albrigtsen
47b655bc7d
fence_virt: fix core dump
2019-04-10 13:54:56 +02:00
Ryan McCabe
2efb75645f
Merge pull request #14 from oalbrigt/harden-fPIE
...
build: harden and make it possible to build with -fPIE
2019-04-09 09:51:16 -04:00
Oyvind Albrigtsen
f395468612
build: harden and make it possible to build with -fPIE
2019-04-09 15:43:48 +02:00
Ryan McCabe
30c3a8d70f
Merge pull request #13 from oalbrigt/fence_virt-dont-report-success-incorrect-parameter
...
fence_virt: dont report success for incorrect parameters
2018-11-21 09:09:56 -05:00
Oyvind Albrigtsen
83e507cd23
fence_virt: dont report success for incorrect parameters
2018-11-09 13:18:16 +01:00
Ryan McCabe
787b7490ec
fence_virt: mcast: config: Warn when provided mcast addr is not used
...
Add debugging and error handling around the code
that sets the multicast address.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2018-02-21 23:14:43 -05:00
Ryan McCabe
958c0035aa
fence_virtd: Return control to main loop on select interruption
...
Return control to the dispatch loop if select is interrupted by a
signal. The code that retried the select without breaking out of the
dispatch loop caused the daemon to not be able to be killed cleanly.
Resolves: https://github.com/ClusterLabs/fence-virt/issues/10
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2018-01-19 11:18:56 -05:00
Ryan McCabe
ada1814db3
fence-virtd: Add missing vsock makefile bits
...
Add missing bits to the makefiles to build the vsock listener plugin.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-08-25 17:02:02 -04:00
Ryan McCabe
26ac949176
fence-virt: Add vsock support
...
Add a new vsock listener plugin, and add support to the fence_virt
client to support using it.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-07-28 10:25:28 -04:00
Ryan McCabe
8bd7560686
fence_virtd: Fix transposed arguments in startup message
...
Fix a bug that caused the listener and backend names
to be transposed in the syslog message upon startup.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-07-27 22:46:56 -04:00
Ryan McCabe
c0dacabadf
fence_virt: Rename challenge functions
...
Rename the challenge/response functions to be more accurate. They need
not be opeating on TCP sockets.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-07-27 14:38:05 -04:00
Ryan McCabe
30baac19ab
fence_virtd: Cleanup: remove unused configuration options
...
Remove unused configuration options.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-29 14:47:25 -04:00
Ryan McCabe
8453beedfc
fence_virt: Remove remaining references to checkpoints
...
Remove all remaining references to the checkpoint backend plugin,
which has been removed.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-29 14:47:10 -04:00
Ryan McCabe
f075a5b45b
fence_virt: Remove remaining references to checkpoints
...
Remove all remaining references to the checkpoint backend plugin,
which has been removed.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-29 14:45:59 -04:00
Ryan McCabe
b0aa3ad784
fence-virt: Format string cleanup
...
Warn on non-literal format strings and cleanup.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-29 13:54:51 -04:00
Ryan McCabe
bcfc5703d3
fence_virtd: Implment hostlist for the cpg backend
...
Implment hostlist for the cpg backend.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-28 22:23:28 -04:00
Ryan McCabe
0745f1c7ab
fence_virt: Fix logic error in fence_xvm
...
Fix a logic error in fence_xvm that would cause fence_xvm to fail
to retry if binding the TCP port for authenticating requests
failed.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-28 22:22:50 -04:00
Ryan McCabe
4f81575661
fence_virtd: Cleanup config module
...
Clean up several logic errors in the 'fence_virtd -c' config
creation mode.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-28 22:18:37 -04:00
Ryan McCabe
4fb9efe4b2
fence_virtd: cpg: Fail initialization if no hypervisor connections
...
Report initialization failure for the cpg plugin if none of the
configured hypervisor URIs can be connected to successfully.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-28 10:11:18 -04:00
Ryan McCabe
5e04644e31
fence_virtd: Make the libvirt backend survive libvirtd restarts
...
Allow the libvirt backend plugin to survive libvirtd restarts
and crashes. Without this fix, fence_virtd will crash if its
connections to hypervisors fail.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-28 10:07:54 -04:00
Ryan McCabe
2af059cc81
fence_virtd: Allow the cpg backend to survive libvirt failures
...
Make the cpg backend able to cope with libvirtd crashing or restarting
without crashing or hanging the fence_virtd server.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-28 01:39:58 -04:00
Ryan McCabe
0bc1f54961
fence_virtd: cpg: Fix typo
...
Fix a typo in the configuration parsing for the cpg plugin during
initialization.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-27 21:55:45 -04:00
Ryan McCabe
d216131344
fence-virtd: Add cpg-virt backend plugin
...
Add the cpg-virt backend plugin.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-27 21:26:11 -04:00
Ryan McCabe
7f6798916a
fence_virtd: Remove checkpoint, replace it with a CPG only plugin
...
Remove the checkpoint backend plugin, as it used CMAN and openais
checkpoints. Given nobody is using CMAN or openais anymore, the plugin
was useless for clusters running the current stack.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-27 21:23:03 -04:00
Ryan McCabe
3bfe80d293
fence-virt: Bump version
...
Bump version.
2017-05-27 21:16:40 -04:00
Ryan McCabe
5dff3df564
fence_virtd: Add better debugging messages for the TCP listner
...
Improve some debugging messages for the TCP listener plugin.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-27 15:04:11 -04:00
Ryan McCabe
cf48854295
fence_virtd: Fix potential unlocked pthread_cond_timedwait()
...
Fix a potential call to pthread_cond_timedwait() with an unlocked
mutex in the non-blocking syslog wrapper code.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-26 14:39:38 -04:00
Ryan McCabe
853937d1bd
fence-virtd: Cleanup small memory leak
...
Clean up a small memory leak in the TCP plugin on
an error path.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-25 13:57:40 -04:00
Ryan McCabe
2c909b78d8
fence_virtd: Fix select logic in listener plugins
...
Don't fail causing the daemon to exit when select() fails with errors
that indicate we should retry.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-25 13:34:05 -04:00
Ryan McCabe
60800fe973
Factor out common libvirt code so that it can be reused by multiple backends
2017-05-24 23:18:18 -04:00
Ryan McCabe
4d29ef93ea
Document the fence_virtd -p command line flag
...
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-23 22:56:37 -04:00
Ryan McCabe
f7e2b9a0c0
fence_virtd: Log an error when startup fails
...
Log an error when startup fails due to pidfile creation failing.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-23 22:53:02 -04:00
Ryan McCabe
647c144d82
Retry writes in the TCP, mcast, and serial listener plugins while sending
...
a response to clients, if the write fails or is incomplete.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-23 15:37:42 -04:00
Ryan McCabe
95a10ca43e
Make the packet authentication code more resilient in the face
...
of transient failures.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-23 15:36:23 -04:00
Ryan McCabe
dfa4ca523a
Remove erroneous 'inline'
...
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-23 14:59:58 -04:00
Ryan McCabe
44fd94088e
Disable the libvirt-qmf backend by default
2017-05-23 14:17:22 -04:00
Ryan McCabe
0bc561ca86
Bump the versions of the libvirt and checkpoint plugins
2017-05-22 14:16:06 -04:00
Ryan McCabe
fe112ac52d
Merge pull request #7 from lanconnected/master
...
Add keepalive ability to virt-serial and resolve several problems in its event listener, fix several imperfections in checkpoint plugin.
2017-05-22 14:07:05 -04:00
Ryan McCabe
726fa21528
fence-virtd: Enable TCP listener plugin by default
2017-05-22 14:03:33 -04:00
Ryan McCabe
0015556ddf
fence-virtd: Cleanup documentation of the TCP listener
...
Remove overly specific documentation of the TCP listener. vios-proxy appears to be dead,
so all references to that and its configuration have been removed.
Resolves: rhbz#1334170
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-17 13:21:33 -04:00
Ryan McCabe
286e0c61e4
fence_xvm/fence_virt: Add support for the validate-all status op
...
Add support for the validate-all status operation. In this mode,
the fence agent will validate the arguments given on either the
command line or standard input. If validation succeeds, it will
exit with code 0, otherwise it will exit with code 1.
Resolves: rhbz#1447700
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-03 23:22:34 -04:00
Ryan McCabe
53cb4ec362
fence-virt: Add list-status command to man page and metadata
...
Add the list-status command to the man page and the metadata output.
Resolves: rhbz#908455
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-05-03 23:03:23 -04:00
Ryan McCabe
b3ea4870c8
fence-virt: Cleanup numeric argument parsing
...
Cleanup the parsing of numeric command line arguments.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2017-03-13 17:43:17 -04:00
Ryan McCabe
85eb949759
fence-virt: Log message to syslog in addition to stdout/stderr
...
Log error and status messages to syslog in addition to stdout and
stderr.
Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
2016-11-11 10:00:50 -05:00