2017-12-26 10:15:52 |
takahara.kengo |
bug |
|
|
added bug |
2017-12-26 10:26:18 |
Rikimaru Honjo |
bug task added |
|
oslo.log |
|
2017-12-26 10:40:22 |
takahara.kengo |
description |
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.
--
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'
$
This issue also occurred in the nova-compute process.
The following pull requests of pyinotify is not merged, so I think this is the cause of this issue.
https://github.com/seb-m/pyinotify/pull/117 |
|
2017-12-27 03:09:10 |
takahara.kengo |
description |
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'
$
This issue also occurred in the nova-compute process.
The following pull requests of pyinotify is not merged, so I think this is the cause of this issue.
https://github.com/seb-m/pyinotify/pull/117 |
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'
$
[Impact on other projects]
watch_log_file and log_file are configuration options of oslo.log.
So I tried to set same options for nova-compute.
As a result, same issue occurred in the nova-compute process.
There is a possibility that this issue affects all openstack projects using oslo.log.
[Caus of bug]
I think the root cause of this isse is the following bug of pyinotify.
pyinotify is used by oslo.log.
But this pull requests is not merged yet.
https://github.com/seb-m/pyinotify/pull/117 |
|
2018-01-22 15:18:24 |
Doug Hellmann |
oslo.log: status |
New |
Triaged |
|
2018-01-22 15:18:35 |
Doug Hellmann |
oslo.log: importance |
Undecided |
Medium |
|
2018-02-05 11:49:38 |
Rikimaru Honjo |
bug watch added |
|
https://github.com/dsoprea/PyInotify/issues/36 |
|
2024-03-30 16:10:40 |
Takashi Kajinami |
oslo.log: status |
Triaged |
Confirmed |
|
2024-03-30 16:10:45 |
Takashi Kajinami |
masakari: status |
New |
Invalid |
|
2024-04-02 07:37:23 |
Christian Rohmann |
bug |
|
|
added subscriber Christian Rohmann |
2024-06-03 02:46:11 |
Takashi Kajinami |
oslo.log: status |
Confirmed |
Won't Fix |
|