After change: I2114d5fc45f5299c3b2011270034a3370e0ec388 we
were no longer registering defaults for cinder.api.common.py settings.
The result is that you're unable to run individual unit tests like
cinder.tests.api.test_volume_metadata.py.
Register the needed CONF options and we're all set again.
Fixes bug:
1194315
Change-Id: I6df6c5ec5687c8156a9f3794cc7f04d8d28065d9
from cinder import utils
+api_common_opts = [
+ cfg.IntOpt('osapi_max_limit',
+ default=1000,
+ help='the maximum number of items returned in a single '
+ 'response from a collection resource'),
+ cfg.StrOpt('osapi_volume_base_URL',
+ default=None,
+ help='Base URL that will be presented to users in links '
+ 'to the OpenStack Volume API',
+ deprecated_name='osapi_compute_link_prefix'),
+]
+
CONF = cfg.CONF
+CONF.register_opts(api_common_opts)
+
LOG = logging.getLogger(__name__)