| ############# |
| # OpenStack # |
| ############# |
| {%- from "cinder/map.jinja" import volume with context %} |
| [composite:osapi_volume] |
| use = call:cinder.api:root_app_factory |
| /: apiversions |
| /v1: openstack_volume_api_v1 |
| /v2: openstack_volume_api_v2 |
| |
| [composite:openstack_volume_api_v1] |
| use = call:cinder.api.middleware.auth:pipeline_factory |
| noauth = request_id faultwrap sizelimit osprofiler noauth apiv1 |
| keystone = request_id faultwrap sizelimit osprofiler authtoken keystonecontext apiv1 |
| keystone_nolimit = request_id faultwrap sizelimit osprofiler authtoken keystonecontext apiv1 |
| |
| [composite:openstack_volume_api_v2] |
| use = call:cinder.api.middleware.auth:pipeline_factory |
| noauth = request_id faultwrap sizelimit osprofiler noauth apiv2 |
| keystone = request_id faultwrap sizelimit osprofiler authtoken keystonecontext apiv2 |
| keystone_nolimit = request_id faultwrap sizelimit osprofiler authtoken keystonecontext apiv2 |
| |
| [filter:request_id] |
| paste.filter_factory = oslo_middleware.request_id:RequestId.factory |
| |
| [filter:faultwrap] |
| paste.filter_factory = cinder.api.middleware.fault:FaultWrapper.factory |
| |
| [filter:osprofiler] |
| paste.filter_factory = osprofiler.web:WsgiMiddleware.factory |
| hmac_keys = SECRET_KEY |
| enabled = yes |
| |
| [filter:noauth] |
| paste.filter_factory = cinder.api.middleware.auth:NoAuthMiddleware.factory |
| |
| [filter:sizelimit] |
| paste.filter_factory = cinder.api.middleware.sizelimit:RequestBodySizeLimiter.factory |
| |
| [app:apiv1] |
| paste.app_factory = cinder.api.v1.router:APIRouter.factory |
| |
| [app:apiv2] |
| paste.app_factory = cinder.api.v2.router:APIRouter.factory |
| |
| [pipeline:apiversions] |
| pipeline = faultwrap osvolumeversionapp |
| |
| [app:osvolumeversionapp] |
| paste.app_factory = cinder.api.versions:Versions.factory |
| |
| ########## |
| # Shared # |
| ########## |
| |
| [filter:keystonecontext] |
| paste.filter_factory = cinder.api.middleware.auth:CinderKeystoneContext.factory |
| |
| [filter:authtoken] |
| paste.filter_factory = keystonemiddleware.auth_token:filter_factory |
| service_port=5000 |
| service_host={{ volume.identity.host }} |
| service_protocol=http |
| auth_host = {{ volume.identity.host }} |
| auth_port = {{ volume.identity.port }} |
| auth_protocol = http |
| admin_tenant_name = {{ volume.identity.tenant }} |
| admin_user = {{ volume.identity.user }} |
| admin_password = {{ volume.identity.password }} |
| auth_uri=http://{{ volume.identity.host }}:5000/{% if volume.identity.get('version', 2) == 3 %}v3{% endif %} |