yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #08418
[Bug 1270196] Re: Nova services have duplication of default values for configuration
** Changed in: nova
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1270196
Title:
Nova services have duplication of default values for configuration
Status in OpenStack Compute (Nova):
Invalid
Bug description:
In nova/service.py, the configuration defaults for the *_listen,
*_listen_port are specified both in Opt and while using getattr to
read the option value-
self.host = getattr(CONF, '%s_listen' % name, "0.0.0.0")
self.port = getattr(CONF, '%s_listen_port' % name, 0)
self.workers = getattr(CONF, '%s_workers' % name, None)
This is duplication of the default values and might produce
inconsistent results when someone modified only one of these.
Another problem in the same code above is that reading an erroneous
config value (lets say foo_workers) will not fail and will simply give
a default. This makes it easy for a typo in config to pass silently.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1270196/+subscriptions
References