Non-lazy loaded configuration options depend on import order
Bug #1694538 reported by
Erik Olof Gunnar Andersson
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack DBaaS (Trove) |
Fix Released
|
High
|
Erik Olof Gunnar Andersson |
Bug Description
Configuration options should always be lazy-loaded, this is to prevent changes in import order from interfering with the configuration variable being instantiated properly.
This is currently causing the following variables to always be set to their default values.
> agent_call_
> agent_call_
> agent_replicati
> remote_
This is essentially a follow up to bug 1671655 that caused PROXY_AUTH_URL previously found in trove/common/
> PROXY_AUTH_URL = CONF.trove_auth_url
Changed in trove: | |
assignee: | nobody → Erik Olof Gunnar Andersson (eandersson) |
status: | New → In Progress |
description: | updated |
Changed in trove: | |
importance: | Undecided → Low |
Changed in trove: | |
importance: | Low → High |
description: | updated |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/466923 /git.openstack. org/cgit/ openstack/ trove/commit/ ?id=fcf75dfd60f 3d717f967a07f18 ff186205c374e9
Committed: https:/
Submitter: Zuul
Branch: master
commit fcf75dfd60f3d71 7f967a07f18ff18 6205c374e9
Author: Erik Olof Gunnar Andersson <email address hidden>
Date: Mon May 22 15:05:34 2017 -0700
Lazy load all configuration options
This is a follow up to Change #444040.
Configuration options should always be lazy loaded,
this is to prevent changes in import order from
interfering with the configuration variable being
instantiated properly.
Change-Id: I3040108128ba56 746ed4d5d688b8b 8d33da753fc
Closes-Bug: #1694538