Make False as default value for unreliable

Change-Id: I54b6bffed546f1c9bde9e30f3f491381b7f33ce2
This commit is contained in:
Fei Long Wang 2015-08-14 23:03:48 +12:00 committed by Ryan Brown
parent 8207a69951
commit ecb885d96c
3 changed files with 2 additions and 10 deletions

View File

@ -21,7 +21,6 @@ from zaqar.api import handler
from zaqar.common import configs
from zaqar.common import decorators
from zaqar.common import errors
from zaqar.i18n import _
from zaqar.openstack.common.cache import cache as oslo_cache
from zaqar.storage import pipeline
from zaqar.storage import pooling
@ -62,14 +61,6 @@ class Bootstrap(object):
log.setup(conf, 'zaqar')
if self.conf.unreliable is None:
msg = _(u'Unreliable\'s default value will be changed to False '
'in the Kilo release. Please, make sure your deployments '
'are working in a reliable mode or that `unreliable` is '
'explicitly set to `True` in your configuration files.')
LOG.warn(msg)
self.conf.unreliable = True
@decorators.lazy_property(write=False)
def api(self):
LOG.debug(u'Loading API handler')

View File

@ -29,7 +29,7 @@ _GENERAL_OPTIONS = (
'configuration is used to determine where the '
'catalogue/control plane data is kept.'),
deprecated_opts=[cfg.DeprecatedOpt('sharding')]),
cfg.BoolOpt('unreliable', default=None,
cfg.BoolOpt('unreliable', default=False,
help='Disable all reliability constraints.'),
)

View File

@ -1,4 +1,5 @@
[DEFAULT]
unreliable = True
[drivers]