5 – five-minute introduction to the module logging Python

The use of pirnt is suitable for those programmers who have enough time. But it’s better to use logging. In addition, learn to use the Python debugger for debugging errors and Pylint to prevent errors and to make the code more readable.
In order to display the log messages on the screen, use the following code:

“5 – five-minute introduction to the module logging Python”Continue reading

Flush Expired Openstack Keystone Tokens

After a while of running Openstack and performing a lot of testing (especially Tempest) you may find that your database seems to get pretty full … and this is partly down to expired keystone token’s that remain in the DB table.

To resolve this simply setup a periodic Cron job to execute

1
# /usr/bin/keystone-manage token_flush

This will remove all expired tokens to help clean-up the DB a bit

Of course, this action better to insert as cron task:

1
2
3
4
# cat keystone_token_flush
#!/bin/bash

10 * * * * root /usr/bin/keystone-manage token_flush

OpenStack : по следам костыльного сообщения – No handlers could be found for logger “oslo_config.cfg”

Отслеживания питоньячего кода привело к удивительном открытию. В процессы установки glance чуда по мануалам мы получили, в частности два питоньячих модуля в основной системе:

“OpenStack : по следам костыльного сообщения – No handlers could be found for logger “oslo_config.cfg””Continue reading

Scroll to top