Ask Your Question
0

Can I set log level for some class in tempest?

asked 2015-05-19 01:19:26 -0500

xiangfeiz gravatar image

I'm running tempest tests. tempest_lib.comon.rest_client seems to be too chatty. I'd like to set its log level to INFO while keeping everything else at DEBUG log level. Is there a config in tempest.conf that allows me to do that?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-01-05 12:36:48 -0500

Radhakrishnan Rk gravatar image

Hi,

You can find the line " default_log_levels = amqp=WARN,amqplib=WARN,boto=WARN,qpid=WARN,sqlalchemy=WARN " in tempest config file change the log level to INFO and proceed the test.

If you would like to filter all the tempest service log,You can go with a dedicated rsyslog configuration for tempest service.Here I configured both rsyslog server and client on the same machine.No need to install any packages for rsyslog setup.By default ubuntu software package manager supplies rsyslog package.

Client side configuration:

/etc/rsyslog.d/client.conf

. @localhost

Server side configuration

/etc/rsyslog.d/server.conf

$ModLoad imudp

$UDPServerAddress localhost

$UDPServerRun 514

$template TempestFile,"/var/log/rsyslog/%HOSTNAME%/tempest.log"

$template TempestAll,"/var/log/rsyslog/tempest.log"

$template DynFile,"/var/log/rsyslog/%HOSTNAME%/syslog.log"

. ?DynFile

local0.* ?TempestFile

local0.* ?TempestAll

& ~

Restart rsyslog service.

#service rsyslog restart

edit flag offensive delete link more

Comments

By default rsyslog is disabled in tempest, Update the value use_syslog = true in tempest config file .

Radhakrishnan Rk gravatar imageRadhakrishnan Rk ( 2016-01-05 12:41:55 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-05-19 01:19:26 -0500

Seen: 117 times

Last updated: Jan 05 '16