Error while loading config file
Bug #1704417 reported by
Samriddhi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.config |
Fix Released
|
Medium
|
Doug Hellmann |
Bug Description
While including a config file in keystone using the following[0], I'm getting this error[1],
[0]
.. show-options::
:config-file: config-
[1]
loading config file config-
Exception occurred:
File "/home/
for group_name, group_opts in sorted(
TypeError: unorderable types: NoneType() < str()
Changed in oslo.config: | |
assignee: | nobody → Samriddhi (s-jain) |
Changed in oslo.config: | |
status: | Confirmed → Fix Released |
assignee: | Samriddhi (s-jain) → Doug Hellmann (doug-hellmann) |
To post a comment you must log in.
I think the underlying cause for this bug has to do with building the documentation under python 3 instead of python 2. We need to make oslo.config work in this situation under python 3.
The values being sorted are the group names and options returned from the config generator's option discovery code. The None value causes the options to be placed in the group "DEFAULT". We should look into whether we can make the discovery code use "DEFAULT" instead of None, or if that would break other parts of the configuration generator (we may be relying on None as a sentinel value).