Bug 1042978 - [RFE][oslo]: Removing import-time side-effects from oslo.config consumers
Summary: [RFE][oslo]: Removing import-time side-effects from oslo.config consumers
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: RFEs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact:
URL: https://blueprints.launchpad.net/oslo...
Whiteboard: upstream_milestone_none upstream_stat...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-13 16:50 UTC by RHOS Integration
Modified: 2015-03-19 17:42 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-19 17:42:47 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description RHOS Integration 2013-12-13 16:50:54 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/oslo/+spec/remove-import-side-effects.

Description:

Most apps use oslo.config by relying on options to be registered as code is loaded. Many modules throughout the OpenStack code base have blocks that import the global config object from oslo.config and then register options on the object. This means importing a module changes global state shared by the application, in a way that cannot be undone or reproduced by unit tests. This proposal describes a way to avoid having import-time side-effects while maintaining or improving our current level of discoverability.

Specification URL (additional information):

https://etherpad.openstack.org/icehouse-oslo-config-import-side-effects


Note You need to log in before you can comment on or make changes to this bug.