b568a17925fb22dbf293eed5173ce0b418a58b95
[genesis.git] / compass / deploy / ansible / roles / cinder-controller / templates / api-paste.ini
1 #############
2 # OpenStack #
3 #############
4
5 [composite:osapi_volume]
6 use = call:cinder.api:root_app_factory
7 /: apiversions
8 /v1: openstack_volume_api_v1
9 /v2: openstack_volume_api_v2
10
11 [composite:openstack_volume_api_v1]
12 use = call:cinder.api.middleware.auth:pipeline_factory
13 noauth = request_id faultwrap sizelimit osprofiler noauth apiv1
14 keystone = request_id faultwrap sizelimit osprofiler authtoken keystonecontext apiv1
15 keystone_nolimit = request_id faultwrap sizelimit osprofiler authtoken keystonecontext apiv1
16
17 [composite:openstack_volume_api_v2]
18 use = call:cinder.api.middleware.auth:pipeline_factory
19 noauth = request_id faultwrap sizelimit osprofiler noauth apiv2
20 keystone = request_id faultwrap sizelimit osprofiler authtoken keystonecontext apiv2
21 keystone_nolimit = request_id faultwrap sizelimit osprofiler authtoken keystonecontext apiv2
22
23 [filter:request_id]
24 paste.filter_factory = cinder.openstack.common.middleware.request_id:RequestIdMiddleware.factory
25
26 [filter:faultwrap]
27 paste.filter_factory = cinder.api.middleware.fault:FaultWrapper.factory
28
29 [filter:osprofiler]
30 paste.filter_factory = osprofiler.web:WsgiMiddleware.factory
31 hmac_keys = SECRET_KEY
32 enabled = yes
33
34 [filter:noauth]
35 paste.filter_factory = cinder.api.middleware.auth:NoAuthMiddleware.factory
36
37 [filter:sizelimit]
38 paste.filter_factory = cinder.api.middleware.sizelimit:RequestBodySizeLimiter.factory
39
40 [app:apiv1]
41 paste.app_factory = cinder.api.v1.router:APIRouter.factory
42
43 [app:apiv2]
44 paste.app_factory = cinder.api.v2.router:APIRouter.factory
45
46 [pipeline:apiversions]
47 pipeline = faultwrap osvolumeversionapp
48
49 [app:osvolumeversionapp]
50 paste.app_factory = cinder.api.versions:Versions.factory
51
52 [filter:authtoken]
53 paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
54 # auth_host = 127.0.0.1
55 # auth_port = 35357
56 # auth_protocol = http
57 auth_uri = http://{{ HA_VIP }}:5000/v2.0
58 identity_uri = http://{{ HA_VIP }}:35357
59 admin_tenant_name = service
60 admin_user = cinder
61 admin_password = {{ CINDER_PASS }}
62
63 ##########
64 # Shared #
65 ##########
66
67 [filter:keystonecontext]
68 paste.filter_factory = cinder.api.middleware.auth:CinderKeystoneContext.factory
69
70 [filter:authtoken]
71 paste.filter_factory = keystonemiddleware.auth_token:filter_factory