Ask Your Question

Can I set log level for some class in tempest?

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

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

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

Radhakrishnan Rk gravatar image


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:


. @localhost

Server side configuration


$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


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 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 142 times

Last updated: Jan 05 '16