utils.monkey_patch()
servers = []
# cinder-api
- for api in flags.FLAGS.enabled_apis:
- try:
- servers.append(service.WSGIService(api))
- except (Exception, SystemExit):
- logging.exception(_('Failed to load %s') % '%s-api' % api)
+ try:
+ servers.append(service.WSGIService('osapi_volume'))
+ except (Exception, SystemExit):
+ logging.exception(_('Failed to load %s') % '%s-api' % api)
for binary in ['cinder-volume', 'cinder-scheduler']:
try:
cfg.BoolOpt('api_rate_limit',
default=True,
help='whether to rate limit the api'),
- cfg.ListOpt('enabled_apis',
- default=['osapi_volume'],
- help='a list of APIs to enable by default'),
cfg.ListOpt('osapi_volume_ext_list',
default=[],
help='Specify list of extensions to load when using osapi_'
# ec2_scheme="http"
###### (BoolOpt) Allows use of instance password during server creation
# enable_instance_password=true
-###### (ListOpt) a list of APIs to enable by default
-# enabled_apis="ec2,osapi_compute,osapi_volume,metadata"
###### (BoolOpt) If passed, use fake network devices and addresses
# fake_network=false
###### (BoolOpt) If passed, use a fake RabbitMQ provider