From: Jan Stancek <jstancek@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] syslog tests are failed.
Date: Fri, 18 Nov 2016 08:02:47 -0500 (EST) [thread overview]
Message-ID: <271210984.337776.1479474167503.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <CAJ5vXcQHixS8UOzeFDQ7TNNHzGN5QhWONhXYT67eWCwitynyyQ@mail.gmail.com>
----- Original Message -----
> From: "nousi" <bnousilal@gmail.com>
> To: ltp@lists.linux.it
> Sent: Friday, 18 November, 2016 1:38:17 PM
> Subject: [LTP] syslog tests are failed.
>
> Hi All,
>
> Please someone help in debugging the syslog test case failure.
What distro are you using?
>
> I am not able to understand the reason for the failure from the debug logs.
>
> I could not find anything wrong in the debug logs.
Syslog service failed to restart. Can you check what syslog package
is installed and if restart works if you do it by hand?
+ service syslog restart
+ '[' 127 -eq 0 ']'
Is there anything in /var/log?
>
> I am using ltp version 20150119
That looks quite old, but there haven't been many patches in that area.
Regards,
Jan
>
>
> <<<test_output>>>
> + . syslog-lib.sh
> ++ readonly MAILLOG=/var/log/maillog
> ++ MAILLOG=/var/log/maillog
> ++ readonly 'TRAP_SIGS=1 2 3 6 11 15'
> ++ TRAP_SIGS='1 2 3 6 11 15'
> ++ CONFIG_FILE=
> ++ RSYSLOG_CONFIG=
> ++ WAIT_COUNT=60
> ++ export TST_TOTAL=1
> ++ TST_TOTAL=1
> ++ export TST_COUNT=1
> ++ TST_COUNT=1
> +++ basename /opt/ltp/testcases/bin/syslog01
> ++ export TCID=syslog01
> ++ TCID=syslog01
> ++ . cmdlib.sh
> +++ set -u
> +++ export SHELL_DEBUG=0
> +++ SHELL_DEBUG=0
> +++ '[' x0 = x1 ']'
> +++ TCID=syslog01
> +++ '[' -z syslog01 ']'
> ++++ echo syslog01
> ++++ awk '{ sub( /[0-9]+$/,""); print; }'
> +++ TC=syslog
> +++ . daemonlib.sh
> ++++ command -v systemctl
> ++++ HAVE_SYSTEMCTL=0
> ++++ SYSLOG_DAEMON=
> ++++ command -v syslogd
> ++++ SYSLOG_DAEMON=syslog
> ++++ CROND_DAEMON=
> ++++ command -v crond
> ++++ CROND_DAEMON=crond
> + export TST_TOTAL=1
> + TST_TOTAL=1
> + export TST_COUNT=1
> + TST_COUNT=1
> + export TCID=syslog01
> + TCID=syslog01
> + tst_resm TINFO 'Send messages to syslogd at some level '
> syslog01 0 TINFO : Send messages to syslogd at some level
> + tst_resm TINFO 'and facility and grep for those messages.'
> syslog01 0 TINFO : and facility and grep for those messages.
> + setup
> + tst_require_root
> ++ id -u
> + '[' x0 '!=' x0 ']'
> + trap ' disable_traps
> tst_resm TBROK "Testing is terminating due to a signal"
> cleanup 1' 1 2 3 6 11 15
> + '[' syslog = syslog ']'
> + CONFIG_FILE=/etc/syslog.conf
> + '[' -f /etc/syslog.conf ']'
> + '[' -f /etc/syslog.conf.ltpback -a 60 -gt 0 ']'
> + '[' 60 -eq 0 ']'
> + cp /etc/syslog.conf /etc/syslog.conf.ltpback
> + syslog_case1
> + tst_resm TINFO 'testing whether messages are logged into log file'
> syslog01 0 TINFO : testing whether messages are logged into log file
> + case "$CONFIG_FILE" in
> + echo ''
> + echo '*.crit /var/log/messages'
> + echo 'mail.info /var/log/maillog'
> + restart_syslog_daemon
> + '[' 0 -eq 0 ']'
> + cleanup_command='cleanup 1'
> + tst_resm TINFO 'restarting syslog daemon'
> syslog01 0 TINFO : restarting syslog daemon
> + '[' -n syslog ']'
> + restart_daemon syslog
> + '[' 0 -eq 1 ']'
> + service syslog restart
> + '[' 127 -eq 0 ']'
> + restart_daemon syslog
> + '[' 0 -eq 1 ']'
> + service syslog restart
> + '[' 127 -ne 0 ']'
> + cleanup 1
> + disable_traps
> + trap - 1 2 3 6 11 15
> + exit_code=1
> + '[' -f /etc/syslog.conf.ltpback ']'
> + mv /etc/syslog.conf.ltpback /etc/syslog.conf
> + restart_syslog_daemon 'return 1'
> + '[' 1 -eq 0 ']'
> + cleanup_command='return 1'
> + tst_resm TINFO 'restarting syslog daemon'
> syslog01 0 TINFO : restarting syslog daemon
> + '[' -n syslog ']'
> + restart_daemon syslog
> + '[' 0 -eq 1 ']'
> + service syslog restart
> + '[' 127 -eq 0 ']'
> + restart_daemon syslog
> + '[' 0 -eq 1 ']'
> + service syslog restart
> + '[' 127 -ne 0 ']'
> + return 1
> + '[' 1 -ne 1 ']'
> + exit 1
> <<<execution_status>>>
> initiation_status="ok"
> duration=0 termination_type=exited termination_id=1 corefile=no
> cutime=0 cstime=1
> <<<test_end>>>
>
> --
> Thanks & Regards,
> B.Nousilal,
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
>
next prev parent reply other threads:[~2016-11-18 13:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-18 12:38 [LTP] syslog tests are failed nousi
2016-11-18 13:02 ` Jan Stancek [this message]
2016-11-18 13:16 ` nousi
2016-11-22 9:29 ` Cyril Hrubis
2016-11-22 11:32 ` nousi
2016-11-23 11:02 ` Cyril Hrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=271210984.337776.1479474167503.JavaMail.zimbra@redhat.com \
--to=jstancek@redhat.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox