* [LTP] syslog tests are failed.
@ 2016-11-18 12:38 nousi
2016-11-18 13:02 ` Jan Stancek
0 siblings, 1 reply; 6+ messages in thread
From: nousi @ 2016-11-18 12:38 UTC (permalink / raw)
To: ltp
Hi All,
Please someone help in debugging the syslog test case failure.
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.
I am using ltp version 20150119
<<<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,
^ permalink raw reply [flat|nested] 6+ messages in thread
* [LTP] syslog tests are failed.
2016-11-18 12:38 [LTP] syslog tests are failed nousi
@ 2016-11-18 13:02 ` Jan Stancek
2016-11-18 13:16 ` nousi
0 siblings, 1 reply; 6+ messages in thread
From: Jan Stancek @ 2016-11-18 13:02 UTC (permalink / raw)
To: ltp
----- 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
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [LTP] syslog tests are failed.
2016-11-18 13:02 ` Jan Stancek
@ 2016-11-18 13:16 ` nousi
2016-11-22 9:29 ` Cyril Hrubis
0 siblings, 1 reply; 6+ messages in thread
From: nousi @ 2016-11-18 13:16 UTC (permalink / raw)
To: ltp
Thanks Jan!.
I am using ltp version 20150119
I have build it using yacto (Poky).
Under /var/log/ directory there multiple files with the below names.
boot dmesg lastlog messages samba wtmp
syslogd is installed on my machine.
On Fri, Nov 18, 2016 at 6:32 PM, Jan Stancek <jstancek@redhat.com> wrote:
>
>
>
>
> ----- 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
>>
--
Thanks & Regards,
B.Nousilal,
^ permalink raw reply [flat|nested] 6+ messages in thread
* [LTP] syslog tests are failed.
2016-11-18 13:16 ` nousi
@ 2016-11-22 9:29 ` Cyril Hrubis
2016-11-22 11:32 ` nousi
0 siblings, 1 reply; 6+ messages in thread
From: Cyril Hrubis @ 2016-11-22 9:29 UTC (permalink / raw)
To: ltp
Hi!
> I have build it using yacto (Poky).
Hmm, have you checked what the service command really does? My guess
would be that it does something completely different in yocto.
--
Cyril Hrubis
chrubis@suse.cz
^ permalink raw reply [flat|nested] 6+ messages in thread
* [LTP] syslog tests are failed.
2016-11-22 9:29 ` Cyril Hrubis
@ 2016-11-22 11:32 ` nousi
2016-11-23 11:02 ` Cyril Hrubis
0 siblings, 1 reply; 6+ messages in thread
From: nousi @ 2016-11-22 11:32 UTC (permalink / raw)
To: ltp
Hi,
I do not have the support of the service command on my system.
please, let me know if I need to check any other information.
Thanks,
Nousi.
On Tue, Nov 22, 2016 at 2:59 PM, Cyril Hrubis <chrubis@suse.cz> wrote:
> Hi!
>> I have build it using yacto (Poky).
>
> Hmm, have you checked what the service command really does? My guess
> would be that it does something completely different in yocto.
>
> --
> Cyril Hrubis
> chrubis@suse.cz
--
Thanks & Regards,
B.Nousilal,
^ permalink raw reply [flat|nested] 6+ messages in thread
* [LTP] syslog tests are failed.
2016-11-22 11:32 ` nousi
@ 2016-11-23 11:02 ` Cyril Hrubis
0 siblings, 0 replies; 6+ messages in thread
From: Cyril Hrubis @ 2016-11-23 11:02 UTC (permalink / raw)
To: ltp
Hi!
> I do not have the support of the service command on my system.
> please, let me know if I need to check any other information.
Then the code to restart the daemon should not try it at all.
There is 'if command -v service' check befor the script tries to call
it.
Anyway what init system does yocto have? How do you restart daemon on
it?
--
Cyril Hrubis
chrubis@suse.cz
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-11-23 11:02 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-18 12:38 [LTP] syslog tests are failed nousi
2016-11-18 13:02 ` Jan Stancek
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox