_retrieve_extra_groups in Nicira plugin incompatible with oslo.config >= 1.2.0

Bug #1200609 reported by Dirk Mueller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Invalid
Undecided
Unassigned
Grizzly
Fix Released
Undecided
Armando Migliaccio

Bug Description

./quantum/plugins/nicira/nicira_nvp_plugin/common/config.py includes this code:

def _retrieve_extra_groups(conf, key=None, delimiter=':'):
    """retrieve configuration groups not listed above."""
    results = []
    for parsed_file in cfg.CONF._cparser.parsed:
        for parsed_item in parsed_file.keys():
            if parsed_item not in cfg.CONF:
                items = key and parsed_item.split(delimiter)
                if not key or key == items[0]:
                    results.append(parsed_item)
    return results

Recently, _cparser has been renamed/removed as the implementation in oslo.config was changed by Mark. since then this code fails.

The code needs to be adopted in order to handle newer oslo.config versions. See bug 1196084 for details.

Tags: stable nicira
Revision history for this message
Dirk Mueller (dmllr) wrote :

(this is for Grizzly branch only, dunno how to tag it properly)

tags: added: nicira
Revision history for this message
Salvatore Orlando (salvatore-orlando) wrote :

Thanks for reporting this.
I don't know either how to specify a file affect only the stable branch.

Changed in neutron:
importance: Undecided → High
assignee: nobody → Salvatore Orlando (salvatore-orlando)
tags: added: stable
Changed in neutron:
status: New → Confirmed
importance: High → Undecided
assignee: Salvatore Orlando (salvatore-orlando) → nobody
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

This bug is invalid as far as Havana goes, as the code has been removed. I'll get it addressed for the stable branch.

Changed in neutron:
status: Confirmed → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/grizzly)

Fix proposed to branch: stable/grizzly
Review: https://review.openstack.org/40940

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/grizzly)

Reviewed: https://review.openstack.org/40940
Committed: http://github.com/openstack/neutron/commit/a63072a9cfc2434253846eb2e6d43d157a693fc2
Submitter: Jenkins
Branch: stable/grizzly

commit a63072a9cfc2434253846eb2e6d43d157a693fc2
Author: armando-migliaccio <email address hidden>
Date: Thu Aug 8 11:14:41 2013 -0700

    Address config incompatibility introduced with oslo.config >= 1.2.0

    This patch changes how nvp cluster specific configuration is retrieved
    from nvp.ini so that it no longer relies on _cparser, which has been
    removed in newer versions of oslo.config.

    Fixes bug #1200609

    Change-Id: I631c6584ca6b45d0f716533bd1d711d049c6f157

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.