neutron-rpc-server service ignores logging options in config files or arguments
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Takashi Kajinami |
Bug Description
While testing the deployment of neutron api by httpd + mod_wsgi[1], I noticed the log file for rpc-server service is not created even though the service is started with the proper arguments.
[1] https:/
example build:
https:/
The rpc-server.log file is not created
According to ps, the rpc-server is started with --log-file
```
neutron 76975 1 76975 0.2 0.3 124096 31732 /usr/bin/python3 /usr/bin/
```
Digging into the code, I found out that setup_logging, which should be used to initialize logger based on config options as well as arguments, is not called in the code path for rcp-server.
It seems the method is not called for wsgi script which is used when api is run by WSGI mechanism such as uwsgi or mod_wsgi. Because of this I don't see the log file for api servcice is created, either.
Changed in neutron: | |
assignee: | nobody → Takashi Kajinami (kajinamit) |
summary: |
- neutron-rpc-server service ignores logging options in config files + neutron-rpc-server service ignores logging options in config files or + arguments |
Fix proposed to branch: master /review. opendev. org/c/openstack /neutron/ +/890937
Review: https:/