12748 Commits

Author SHA1 Message Date
Rainer Gerhards
5d144c0e62 testbench: make plumbing work on AIX
also fix issue with mmanon - tests were executed even if module
was not enabled
2018-08-31 09:06:46 -05:00
Rainer Gerhards
11273d8738 testbench: fix portability issues under AIX 2018-08-31 09:06:46 -05:00
Rainer Gerhards
97800407aa AIX: make rsyslog export basic symbols correctly
the AIX dynamic linker needs some help in understanding which
symbols can be dyanamically linked at runtime
2018-08-31 09:06:40 -05:00
Rainer Gerhards
a66707f48f
Merge pull request #2972 from rgerhards/aix2
tcpflood: fix segfauls on some platforms (e.g. AIX)
2018-08-31 14:40:33 +02:00
Rainer Gerhards
6efae3c2fd fix compile warnings under AIX
see also https://github.com/rsyslog/rsyslog/issues/2971
2018-08-31 05:14:01 -05:00
Rainer Gerhards
3741bee656 tcpflood: fix segfauls on some platforms (e.g. AIX)
The default stack size on some platforms is insufficient, so we
need to explicitely set it.
2018-08-31 04:48:00 -05:00
Rainer Gerhards
59c6b71c2b
maintain ChangeLog 2018-08-30 16:22:52 +02:00
Rainer Gerhards
a2885e0c26
Merge pull request #2967 from PascalWithopf/bind-same-port
nsd_ptcp: add Error message on failed socket bind
2018-08-30 16:21:15 +02:00
PascalWithopf
56b67190c0 nsd_ptcp: add Error message on failed socket bind 2018-08-30 11:26:27 +02:00
Rainer Gerhards
8a88e36c11 AIX: adding seemingly missing file strippedsymbols.exp
This file is referenced inside IBM's AIX configure.ac code but
cannot be found inside the source. I found it mentioned in some
mail an added it to the source of the project tree.

I do *NOT* know if the content or location is correct nor am
I able to verify if the build succeeds or not.

see also: https://github.com/rsyslog/rsyslog/issues/2597
2018-08-30 10:08:19 +02:00
Rainer Gerhards
cd424f089e
Merge pull request #2964 from PascalWithopf/dynamic-ports
imptcp: add parameter ListenPortFileName
2018-08-29 18:06:49 +02:00
Rainer Gerhards
8ccf1a18b6
Merge pull request #2966 from rgerhards/no-journaltest
testbench: disable journal tests by default
2018-08-29 18:02:10 +02:00
PascalWithopf
df85be1130 tcp driver: add support for parameter LstnPortFileName 2018-08-29 15:14:29 +02:00
Rainer Gerhards
cb0956071c
testbench: disable journal tests by default
They have very special requirements, so it does not make sense to have
them run by default. Also note that as of now, they have a pretty high
rate of false positives due to bugs in the journal.

see also https://github.com/rsyslog/rsyslog/issues/2931#issuecomment-416914707
2018-08-29 13:17:26 +02:00
Rainer Gerhards
84616b4fd3
Merge pull request #2954 from rgerhards/tb9
testbench: make more test file names dynamic
2018-08-29 12:27:06 +02:00
PascalWithopf
55865f7590 imptcp: add parameter ListenPortFileName
This parameter is used to specify a file in which the port
being used by imptcp is written.
2018-08-29 10:59:04 +02:00
Rainer Gerhards
a43a03f17e
testbench: make more test file names dynamic
This is required to support parallel test runs.

Among others, make thise files dynamic:
* test-spool
* rsyslog.input
* rsyslog.out*.log
* tmp.in

Also:
* convert presort test statement to function
* cleanup imfile truncation test
* cleanup imfile-growing-file-id test
  some cruft was left due to copy and paste error
* serialize mysql tests
2018-08-29 10:46:32 +02:00
Rainer Gerhards
bb2ba21ea5
Merge pull request #2958 from PascalWithopf/test_id
testbench: add program to get system time
2018-08-28 12:08:14 +02:00
Rainer Gerhards
47db507b33
Merge pull request #2956 from PascalWithopf/i-2905
uxsockrcvr: add timeout
2018-08-28 09:41:11 +02:00
PascalWithopf
1d0b30376d testbench: add program to get system time
The new program test_id puts out the system time
up to microseconds.
2018-08-28 09:16:20 +02:00
PascalWithopf
7c141425dc uxsockrcvr: add timeout
The program times out after some time.
Default is 60 seconds and can be changed with the parameter -t.

closes https://github.com/rsyslog/rsyslog/issues/2905
2018-08-27 15:16:58 +02:00
Rainer Gerhards
c517af7b24
maintain ChangeLog 2018-08-26 19:26:25 +02:00
Rainer Gerhards
d2494182b5
Merge pull request #2940 from alorbach/master-kafka-testsfix
testbench: use new kafka/zookeeper versions, fixed/added tests.
2018-08-26 19:23:01 +02:00
Rainer Gerhards
74cfa9aa1b
maintain ChangeLog 2018-08-26 18:49:42 +02:00
Rainer Gerhards
1143f05a5e
Merge pull request #2953 from rgerhards/i2530
omfile: implement file-id, used in state file
2018-08-26 18:41:42 +02:00
Rainer Gerhards
70ea76962b
omfile: implement file-id, used in state file
This ensures that files with the same inodes are not accidently treated
as equal, at least within the limits of the file id hash (see doc for
details).

We use the siphash reference implementation to generate our non-cryptographic
hash.

closes https://github.com/rsyslog/rsyslog/issues/2530
closes https://github.com/rsyslog/rsyslog/issues/2231
2018-08-26 14:01:51 +02:00
Rainer Gerhards
7ea79b82e6
maintain ChangeLog 2018-08-25 10:43:38 +02:00
Rainer Gerhards
0cccb0bb8b
Merge pull request #2952 from jvymazal/imfile_symlink
Fixed parent name when processing symlinks
2018-08-25 10:41:29 +02:00
Jérémie Jourdin
ec15fa0701 ommongodb: fix build issue if mongo-c-driver is not compiled with TLS (#2950)
* Let ommongodb module works even if mongo-c-driver is not compiled with SSL support. 

closes https://github.com/rsyslog/rsyslog/issues/2907
2018-08-25 10:36:57 +02:00
Jiri Vymazal
f84433509c Fixed parent name when processing symlinks
There was a garbage byte left before which could cause errors down the
road.
2018-08-24 15:54:02 +02:00
Rainer Gerhards
38e0fbeb7a
Merge pull request #2947 from rgerhards/tb7
testbench: some more dynamic names
2018-08-22 16:47:55 +02:00
Rainer Gerhards
4adfefe090
testbench: another step towards parallel testing
Merging in multiple steps to avoid getting new tests with non-correct
plumbing.

- some more dynamic file names
- convert more commands to pure bash functions
- cleanup no longer neede files
2018-08-22 14:56:07 +02:00
95ed2c573b testbench: Switched to newer kafka/zookeeper versions.
Fixed test configurations (socket timeouts with newer kafka).
Reactivated some kafka tests that work now.

omkafka: Fixed "closeTimeout" setting in action shutdown
2018-08-21 15:00:44 +02:00
Rainer Gerhards
670d6661ec
maintain ChangeLog 2018-08-20 19:16:34 +02:00
Rainer Gerhards
0a1b740e94
Merge pull request #2774 from nhosoi/bz1309698
[WIP] "fromhost" property's case is lowered when using UDP
2018-08-20 19:11:21 +02:00
Rainer Gerhards
0530de6611
Merge pull request #2946 from jsiwrk/bugfix/omprog_writepipe_offset
omprog: fix invalid memory access on partial writes to pipe
2018-08-20 16:53:35 +02:00
Rainer Gerhards
130b30c29b
Merge pull request #2944 from rgerhards/tb-makerules
testbench: force sequence of execution for some tests
2018-08-20 16:52:16 +02:00
Rainer Gerhards
1eb5f12f4a
testbench: force sequence of execution for some tests (plus some nits)
also some smaller changes
- some cleanup in testbench tooling
- testbench: better diagnostics in journal test
  prototype change, may be propagated to other tests if it really turns
  out to be useful - but only the next time will show if it is...
- make imjournal-basic-vg.sh SKIP in successful run (but when fully done)
  This is an aid to address failures in imjournal-basic.sh, which
  experiences an odd bug that we suspect to be rooted inside the journal.
  see also https://github.com/rsyslog/rsyslog/issues/2931#issuecomment-414269118
2018-08-20 14:05:28 +02:00
Joan Sala
196870db59 omprog: fix invalid memory access on partial writes to pipe 2018-08-19 17:52:35 +02:00
Rainer Gerhards
efff926b05
maintain ChangeLog 2018-08-19 13:10:24 +02:00
Rainer Gerhards
9664f2b059
Merge pull request #2943 from rgerhards/omprog-environ
omprog: remove "hideEnvironment" parameter as this is a bugfix
2018-08-19 12:21:43 +02:00
Rainer Gerhards
c87c5bcd98
Merge pull request #2942 from rgerhards/tb6
testbench: some minor improvements
2018-08-19 12:18:58 +02:00
Rainer Gerhards
7f1f11c5a2
omprog: remove "hideEnvironment" parameter as this is a bugfix
discussion confirmed that not passing environment to called program
should be considered a bug and consequently no parameter to control
this behaviour is needed. I just added that parameter to be able
to carry on with testbench work, and this commit removes it. The
param was never part of any official relase.

closes https://github.com/rsyslog/rsyslog/issues/2921
2018-08-19 08:41:12 +02:00
Rainer Gerhards
5a7d6009c7
testbench: some minor improvements
- DEAD_PORT now uses unassigned IANA port unlike to be used on the system
  (dynamic port querying is racy and we had at least once an issue, so we
  can remove ambiguity here easily)
- replace some diag.sh commands by bash functions
2018-08-19 08:35:19 +02:00
Rainer Gerhards
ce74f03db4
Merge pull request #2941 from rgerhards/tb5
testbench: replace hardcoded port 13514
2018-08-19 08:26:28 +02:00
Rainer Gerhards
1ed6859dfd
testbench: replace hardcoded ports and improve cleanup handling
Support tools (like tcpflood) are also upgraded to support the
necessary dynamic port.s

This is part of the effort to make parallel testing possible.

We move parts of the cleanup to the buildbot cleanup, as we cannot
clean out instances on each test when we run parallel tests.
2018-08-18 20:28:31 +02:00
Rainer Gerhards
c90ab7c304
Merge pull request #2935 from rgerhards/tb-noconf
testbench: remove no longer needed .conf files
2018-08-17 14:31:29 +02:00
Rainer Gerhards
a5b9fbc026
testbench: remove no longer needed .conf files
they have been replaced by the new config system
2018-08-17 12:05:43 +02:00
Rainer Gerhards
55daa206f7
testbench: make "started" file name dymamically (#2936)
* testbench: make "started" file name dymamic

required for parallel test execution
2018-08-16 20:14:18 +02:00
Noriko Hosoi
9ac54f0d7d Introducing an option preservecase to imudp and imtcp module for
managing the case of FROMHOST value.

Usage:
module(load="imudp" [preservecase="on"|"off"])
module(load="imtdp" [preservecase="on"|"off"])

If preservecase="on", FROMHOST value is handled in the case sensitive manner.
If preservecase="off", FROMHOST value is handled in the case insensitive manner.

To maintain the current behaviour, the default value of preservecase is
"on" for imtcp and "off" for imudp.

Incremented tcpsrvCURR_IF_VERSION by 1.

References:
https://github.com/rsyslog/rsyslog/pull/2774
https://bugzilla.redhat.com/show_bug.cgi?id=1309698
2018-08-16 06:22:13 -07:00