← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1563069] Re: Centralize Configuration Options

 

** Changed in: neutron
       Status: In Progress => Fix Released

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

Title:
  Centralize Configuration Options

Status in neutron:
  Fix Released

Bug description:
  [Overview]
  Refactor Neutron configuration options to be in one place 'neutron/conf' similar to the Nova implementation found here: http://specs.openstack.org/openstack/nova-specs/specs/mitaka/approved/centralize-config-options.html

  This would allow for centralization of all configuration options and
  provide an easy way to import and gain access to the wide breadth of
  configuration options available to Neutron.

  [Proposal]

  1. Introduce a new package: neutron/conf

  Neutron Quotas Example:

  2. Group modules logically under new package:
    2a. Example: options from neutron/quotas
    2b. Move to neutron/conf/quotas/common.py
    2c. Aggregate quota options in __init__.py
  4. Import neutron.conf.quotas for usage

  Neutron DB Example /w Agent Options:

  2. Group modules logically under new package:
    2a. Example: options from neutron/db/agents_db.py
    2b. Move to neutron/conf/db/agents.py
    2c. Aggregate db options in __init__.py
  4. Import neutron.conf.db for usage

  Neutron DB Example /w Migration CLI:

  2. Group modules logically under new package:
    2a. Example: options from neutron/db/migrations/cli.py
    2b. Move to neutron/conf/db/migrations_cli.py
    2c. Migrations CLI does not get aggregated in __init__.py
  4. Import neutron.conf.db.migrations_cli

  ** neutron.opts list options methods all get moved to neutron/conf as
  well in their respective modules and setup.cfg is modified for this
  adjustment.

  [Benefits]

  - As a developer I will find all config options in one place and will add further config options to that central place.
  - End user is not affected by this change.

  [Related information]
  [1] Nova Implementation: http://specs.openstack.org/openstack/nova-specs/specs/mitaka/approved/centralize-config-options.html
  [2] Cross Project Spec: https://review.openstack.org/#/c/295543

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



References