Nexus_Switch config parsing incompatible with newer oslo.config versions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
High
|
Dirk Mueller | ||
Grizzly |
Invalid
|
High
|
Unassigned | ||
oslo-incubator |
Invalid
|
Undecided
|
Unassigned |
Bug Description
quantum/
for parsed_file in cfg.CONF.
for parsed_item in parsed_file.keys():
if nexus_name == 'NEXUS_SWITCH':
Recently, _cparser has been renamed/removed as the implementation in oslo.config was changed by Mark. since then this code fails.
Is there a public API for iterating over all found groups in configs? I was only able to find a way to iterate over pre-registered config groups, which does not work here (as the code does not know the exact config group name yet. The code is designed to look for all groups in the form of [NEXUS_
Changed in neutron: | |
status: | New → Incomplete |
tags: | added: cisco |
Changed in neutron: | |
status: | In Progress → Triaged |
importance: | Undecided → Medium |
Changed in neutron: | |
status: | Triaged → In Progress |
Changed in neutron: | |
milestone: | none → havana-2 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | havana-2 → 2013.2 |
This was caused by commit f083d7cfcbc2227 20fd479a1dabe08 d7ae7ed044:
Author: Mark McLoughlin <email address hidden>
Date: Fri May 17 00:31:22 2013 +0100
Parse config files in an argparse callback
Part of fixing bug #1176817
where self._cparser was renamed to self._namespace:
- self._cparser = None
self. _cli_values = {}
+ self._namespace = None
Mark, could you explain why the bug was marked as incomplete?