Various services doesn't output error to log when fails on parsing conf
Bug #1190001 reported by
Jaroslav Henner
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.config |
Expired
|
Undecided
|
Unassigned |
Bug Description
Syntactically invalid conf leads to silent death of, at least, quantum nova and keystone.
[root@master-02 ~]# echo 'I am evil as hell.' >> /etc/quantum/
[root@master-02 ~]# tail -fn0 /var/log/
[2] 16976
[root@master-02 ~]# /etc/init.
Stopping quantum-
Starting quantum-
[root@master-02 ~]# /etc/init.
quantum-
[root@master-02 ~]# kill %
[root@master-02 ~]#
No message. Only death.
affects: | oslo-incubator → oslo.config |
To post a comment you must log in.
If i run say nova-api from the command line i do see the error
dims@dims- desktop: ~$ echo 'I am evil as hell.' > /etc/nova/nova.conf desktop: ~$ /usr/local/ bin/nova- api bin/nova- api", line 9, in <module> entry_point( 'nova== 2013.2. a1037.g8df26b7' , 'console_scripts', 'nova-api')() nova/nova/ cmd/api. py", line 40, in main parse_args( sys.argv) nova/nova/ config. py", line 37, in parse_args config_ files=default_ config_ files) lib/python2. 7/dist- packages/ oslo/config/ cfg.py" , line 1180, in __call__ _parse_ config_ files() lib/python2. 7/dist- packages/ oslo/config/ cfg.py" , line 1651, in _parse_config_files Error(pe. filename, str(pe)) cfg.ConfigFileP arseError: Failed to parse /etc/nova/ nova.conf: at /etc/nova/ nova.conf: 1, No ':' or '=' found in assignment: 'I am evil as hell.' desktop: ~$ echo $?
dims@dims-
Traceback (most recent call last):
File "/usr/local/
load_
File "/opt/stack/
config.
File "/opt/stack/
default_
File "/usr/local/
self.
File "/usr/local/
raise ConfigFileParse
oslo.config.
dims@dims-
1