I added the following settings to /etc/masakari/masakari.conf.
--
log_file = /var/log/masakari/masakari.log
watch_log_file = true
--
And then I failed to launch masakari-api with above settings.
Masakari-api output error logs as follows:
$ masakari-api
Config option database.idle_timeout is deprecated. Use option database.connection_recycle_time instead.
Traceback (most recent call last):
File "/usr/local/bin/masakari-api", line 10, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/masakari/cmd/api.py", line 37, in main
logging.setup(CONF, "masakari")
File "/usr/local/lib/python2.7/dist-packages/oslo_log/log.py", line 264, in setup
_setup_logging_from_conf(conf, product_name, version)
File "/usr/local/lib/python2.7/dist-packages/oslo_log/log.py", line 353, in _setup_logging_from_conf
filelog = file_handler(logpath)
File "/usr/local/lib/python2.7/dist-packages/oslo_log/watchers.py", line 75, in __init__
self._watch_file()
File "/usr/local/lib/python2.7/dist-packages/oslo_log/watchers.py", line 86, in _watch_file
timeout=FastWatchedFileHandler.TIMEOUT)
File "/usr/local/lib/python2.7/dist-packages/pyinotify.py", line 1461, in __init__
threshold, timeout)
File "/usr/local/lib/python2.7/dist-packages/pyinotify.py", line 1138, in __init__
self._pollobj = select.poll()
AttributeError: 'module' object has no attribute 'poll'
$
I added the following settings to /etc/masakari/ masakari. conf. masakari/ masakari. log
--
log_file = /var/log/
watch_log_file = true
--
And then I failed to launch masakari-api with above settings.
Masakari-api output error logs as follows:
$ masakari-api idle_timeout is deprecated. Use option database. connection_ recycle_ time instead. bin/masakari- api", line 10, in <module> exit(main( )) lib/python2. 7/dist- packages/ masakari/ cmd/api. py", line 37, in main setup(CONF, "masakari") lib/python2. 7/dist- packages/ oslo_log/ log.py" , line 264, in setup logging_ from_conf( conf, product_name, version) lib/python2. 7/dist- packages/ oslo_log/ log.py" , line 353, in _setup_ logging_ from_conf logpath) lib/python2. 7/dist- packages/ oslo_log/ watchers. py", line 75, in __init__ _watch_ file() lib/python2. 7/dist- packages/ oslo_log/ watchers. py", line 86, in _watch_file FastWatchedFile Handler. TIMEOUT) lib/python2. 7/dist- packages/ pyinotify. py", line 1461, in __init__ lib/python2. 7/dist- packages/ pyinotify. py", line 1138, in __init__
Config option database.
Traceback (most recent call last):
File "/usr/local/
sys.
File "/usr/local/
logging.
File "/usr/local/
_setup_
File "/usr/local/
filelog = file_handler(
File "/usr/local/
self.
File "/usr/local/
timeout=
File "/usr/local/
threshold, timeout)
File "/usr/local/
self._pollobj = select.poll()
AttributeError: 'module' object has no attribute 'poll'
$