We should check the syntax of config files on startup

Bug #1265390 reported by Kevin Breit
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.config
Fix Released
Wishlist
Unassigned

Bug Description

It would be nice if Nova validated all syntax on startup. This could solve a few problems:

* Problems with misconfiguration due to arguments in the wrong section (ex. [DEFAULT] vs. [database])
* Problems with misconfiguration due to incorrectly typed variable name (ex. rabbit_userid vs. rabbit-userid)

I'm sure there are other issues it would solve, but these are the first which come to mind. When a configuration file isn't right, logs don't always give an obvious response. My hope is any errors would be clearly explained.

Revision history for this message
Joe Gordon (jogo) wrote :

We use oslo.config for configuration files, so adding oslo. I think there is already BP/bug open for this somewhere not sure where though.

no longer affects: nova
Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

It might be a challenge to tell the difference between options that are in the wrong place and options that are just not yet defined. The entry-point stuff planned for https://blueprints.launchpad.net/oslo/+spec/improve-config-discovery-for-docs might make that a little easier.

Changed in oslo:
importance: Undecided → Low
status: New → Triaged
affects: oslo-incubator → oslo.config
Changed in oslo.config:
importance: Low → Wishlist
summary: - Nova should conduct syntax checking on startup
+ We check the syntax of config files on startup
summary: - We check the syntax of config files on startup
+ We should check the syntax of config files on startup
Revision history for this message
Brian Stajkowski (brian-stajkowski) wrote :

Please take a look at this spec: https://review.openstack.org/#/c/381968

BP was opened for an overall configuration validator.

Changed in oslo.config:
assignee: nobody → John Perkins (john-d-perkins)
status: Triaged → Fix Released
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.