masakari-api failed to launch due to setting of watch_log_file and log_file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
masakari |
New
|
Undecided
|
Unassigned | ||
oslo.log |
Triaged
|
Medium
|
Unassigned |
Bug Description
I added the following settings to /etc/masakari/
--
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
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'
$
[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:/
description: | updated |
description: | updated |
Changed in oslo.log: | |
status: | New → Triaged |
importance: | Undecided → Medium |
"watch_log_file" is a configuration value of oslo.log.
So I added oslo.log to affects project.