Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imrelp-tls-cfgcmd.sh test failure #4130

Open
Whissi opened this issue Jan 18, 2020 · 2 comments
Open

imrelp-tls-cfgcmd.sh test failure #4130

Whissi opened this issue Jan 18, 2020 · 2 comments

Comments

@Whissi
Copy link
Contributor

Whissi commented Jan 18, 2020

In rsyslog-8.2001.0, imrelp-tls-cfgcmd.sh is failing:


FAIL: imrelp-tls-cfgcmd
=======================

testbench: TZ env var not set, setting it to UTC
------------------------------------------------------------
09:46:55[0]  Test: ./imrelp-tls-cfgcmd.sh
------------------------------------------------------------
config rstb_213069_a2046ec4_.conf is:
     1	module(load="../plugins/imdiag/.libs/imdiag")
     2	global(inputs.timeout.shutdown="60000"
     3	       default.action.queue.timeoutshutdown="20000"
     4	       default.action.queue.timeoutEnqueue="20000")
     5	# use legacy-style for the following settings so that we can override if needed
     6	$MainmsgQueueTimeoutEnqueue 20000
     7	$MainmsgQueueTimeoutShutdown 10000
     8	$IMDiagListenPortFileName rstb_213069_a2046ec4.imdiag.port
     9	$IMDiagServerRun 0
    10	$IMDiagAbortTimeout 580
    11	
    12	:syslogtag, contains, "rsyslogd"  ./rstb_213069_a2046ec4.started
    13	###### end of testbench instrumentation part, test conf follows:
    14	
    15	module(	load="../plugins/imrelp/.libs/imrelp" 
    16		tls.tlslib="openssl")
    17	input(type="imrelp" port="33519" tls="on"
    18			tls.cacert="./tls-certs/ca.pem"
    19			tls.mycert="./tls-certs/cert.pem"
    20			tls.myprivkey="./tls-certs/key.pem"
    21			tls.authmode="certvalid"
    22			tls.permittedpeer="rsyslog"
    23			tls.tlscfgcmd="Protocol=ALL,-SSLv2,-SSLv3,-TLSv1,-TLSv1.2")
    24	
    25	template(name="outfmt" type="string" string="%msg:F,58:2%\n")
    26	:msg, contains, "msgnum:" action(type="omfile" template="outfmt"
    27				         file=`echo $RSYSLOG_OUT_LOG`)
rsyslogd: NOTE: RSYSLOG_DEBUG_TIMEOUTS_TO_STDERR activated
rsyslogd 8.2001.0 error: invalid debug option 'nologfuncflow' - ignored
rsyslogd 8.2001.0 error: invalid debug option 'noprintmutexaction' - ignored
main Q:Reg: worker start requested, num workers currently 0
main Q:Reg: wrkr start initiated with state 0, num workers now 1
rsyslog debug: main Q:Reg: worker 0x7f61b7e43a40 started
rsyslog debug: main Q:Reg: started with state 3, num workers now 1
09:46:55[0]  rstb_213069_a2046ec4:.pid found, pid 39857
09:46:55[0]  rsyslogd startup msg seen, pid  39857
waiting for file rstb_213069_a2046ec4.imdiag.port
imdiag port: 39427
starting run 1
Sending 1000 messages.
00001000 messages sent
runtime: 0.079
End of tcpflood Run
Shutting down instance 1
imdiag: wait q_empty: qsize 649 nempty 0
imdiag: wait q_empty: qsize 0 nempty 1
imdiag: wait q_empty: qsize 0 nempty 2
imdiag: wait q_empty: qsize 0 nempty 3
imdiag: wait q_empty: qsize 0 nempty 4
imdiag: wait q_empty: qsize 0 nempty 5
imdiag: wait q_empty: qsize 0 nempty 6
imdiag[39427]: mainqueue empty
DoDie called.
rsyslogd debug: info: trying to cooperatively stop input ../plugins/imdiag/.libs/imdiag, timeout 60000 ms
rsyslogd debug: info: trying to cooperatively stop input imrelp, timeout 60000 ms
rsyslog debug: main Q:Reg/w0: enter WrkrExecCleanup
rsyslog debug: 0x7f61b7ee4c00: worker exiting
rsyslog debug: main Q:Reg/w0: thread joined
09:46:56[1]  wait on shutdown of 39857
content_check did not yet succeed
content_check did not yet succeed

============================================================
FILE "rstb_213069_a2046ec4.tcpflood" content:
FAIL: content_check failed to find "relp connect failed with return 10031"
not reporting failure as RSYSLOG_STATSURL is not set
09:46:57[2]  FAIL: Test ./imrelp-tls-cfgcmd.sh (took 2 seconds)
FAIL imrelp-tls-cfgcmd.sh (exit status: 1)

FAIL: sndrcv_relp_tls-cfgcmd
============================

Tested against librelp-1.5.0.

@Whissi
Copy link
Contributor Author

Whissi commented Mar 5, 2020

Still failing with rsyslog-8.2002.0.

@rgerhards
Copy link
Member

does it fail consistently (e.g. always when you run it 10 time)? We still have a couple of flakes which I am hunting down, none of them consistently reproducable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants