Various services doesn't output error to log when fails on parsing conf

Bug #1190001 reported by Jaroslav Henner
6
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/plugin.ini
[root@master-02 ~]# tail -fn0 /var/log/quantum/linuxbridge-agent.log &
[2] 16976
[root@master-02 ~]# /etc/init.d/quantum-linuxbridge-agent restart
Stopping quantum-linuxbridge-agent: [ OK ]
Starting quantum-linuxbridge-agent: [ OK ]
[root@master-02 ~]# /etc/init.d/quantum-linuxbridge-agent status
quantum-linuxbridge-agent dead but pid file exists
[root@master-02 ~]# kill %
[root@master-02 ~]#

No message. Only death.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

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
dims@dims-desktop:~$ /usr/local/bin/nova-api
Traceback (most recent call last):
  File "/usr/local/bin/nova-api", line 9, in <module>
    load_entry_point('nova==2013.2.a1037.g8df26b7', 'console_scripts', 'nova-api')()
  File "/opt/stack/nova/nova/cmd/api.py", line 40, in main
    config.parse_args(sys.argv)
  File "/opt/stack/nova/nova/config.py", line 37, in parse_args
    default_config_files=default_config_files)
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1180, in __call__
    self._parse_config_files()
  File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1651, in _parse_config_files
    raise ConfigFileParseError(pe.filename, str(pe))
oslo.config.cfg.ConfigFileParseError: Failed to parse /etc/nova/nova.conf: at /etc/nova/nova.conf:1, No ':' or '=' found in assignment: 'I am evil as hell.'
dims@dims-desktop:~$ echo $?
1

Changed in oslo:
status: New → Incomplete
Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

Since the logging configuration is typically in that config file, I'm not sure what we can do about this. Suggestions?

affects: oslo-incubator → oslo.config
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for oslo.config because there has been no activity for 60 days.]

Changed in oslo.config:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.