← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1196084] Re: Nexus_Switch config parsing incompatible with newer oslo.config versions

 

I think it's pretty clear Quantum should never have used this internal
API, so marking as Invalid in oslo

** Changed in: oslo
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1196084

Title:
  Nexus_Switch config parsing incompatible with newer oslo.config
  versions

Status in OpenStack Neutron (virtual network service):
  New
Status in Oslo - a Library of Common OpenStack Code:
  Invalid

Bug description:
  quantum/plugins/cisco/common/config.py iterates over all config files
  with config groups starting with [NEXUS_PLUGIN]. This was apparently
  only possible by using nonstandard API:

  
          for parsed_file in cfg.CONF._cparser.parsed:
              for parsed_item in parsed_file.keys():
                  nexus_name, sep, nexus_ip = parsed_item.partition(':')
                  if nexus_name == 'NEXUS_SWITCH':
                      for nexus_key, value in parsed_file[parsed_item].items():

  
  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_PLUGIN:<ip>].

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1196084/+subscriptions