marcoverl

ooi/Juno api-paste.ini

Apr 15th, 2016
89
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # cat /etc/nova/api-paste.ini
  2. ############
  3. # Metadata #
  4. ############
  5. [composite:metadata]
  6. use = egg:Paste#urlmap
  7. /: meta
  8.  
  9. [pipeline:meta]
  10. pipeline = ec2faultwrap logrequest metaapp
  11.  
  12. [app:metaapp]
  13. paste.app_factory = nova.api.metadata.handler:MetadataRequestHandler.factory
  14.  
  15. #######
  16. # EC2 #
  17. #######
  18.  
  19. [composite:ec2]
  20. use = egg:Paste#urlmap
  21. /services/Cloud: ec2cloud
  22.  
  23. [composite:ec2cloud]
  24. use = call:nova.api.auth:pipeline_factory
  25. noauth = ec2faultwrap logrequest ec2noauth cloudrequest validator ec2executor
  26. keystone = ec2faultwrap logrequest ec2keystoneauth cloudrequest validator ec2executor
  27.  
  28. [filter:ec2faultwrap]
  29. paste.filter_factory = nova.api.ec2:FaultWrapper.factory
  30.  
  31. [filter:logrequest]
  32. paste.filter_factory = nova.api.ec2:RequestLogging.factory
  33.  
  34. [filter:ec2lockout]
  35. paste.filter_factory = nova.api.ec2:Lockout.factory
  36.  
  37. [filter:ec2keystoneauth]
  38. paste.filter_factory = nova.api.ec2:EC2KeystoneAuth.factory
  39.  
  40. [filter:ec2noauth]
  41. paste.filter_factory = nova.api.ec2:NoAuth.factory
  42.  
  43. [filter:cloudrequest]
  44. controller = nova.api.ec2.cloud.CloudController
  45. paste.filter_factory = nova.api.ec2:Requestify.factory
  46.  
  47. [filter:authorizer]
  48. paste.filter_factory = nova.api.ec2:Authorizer.factory
  49.  
  50. [filter:validator]
  51. paste.filter_factory = nova.api.ec2:Validator.factory
  52.  
  53. [app:ec2executor]
  54. paste.app_factory = nova.api.ec2:Executor.factory
  55.  
  56. #############
  57. # OpenStack #
  58. #############
  59.  
  60. [composite:osapi_compute]
  61. use = call:nova.api.openstack.urlmap:urlmap_factory
  62. /: oscomputeversions
  63. /v1.1: openstack_compute_api_v2
  64. /v2: openstack_compute_api_v2
  65. /v2.1: openstack_compute_api_v21
  66. /v3: openstack_compute_api_v3
  67.  
  68. [composite:openstack_compute_api_v2]
  69. use = call:nova.api.auth:pipeline_factory
  70. noauth = compute_req_id faultwrap sizelimit noauth ratelimit osapi_compute_app_v2
  71. keystone = compute_req_id faultwrap sizelimit authtoken keystonecontext ratelimit osapi_compute_app_v2
  72. keystone_nolimit = compute_req_id faultwrap sizelimit authtoken keystonecontext osapi_compute_app_v2
  73.  
  74. [composite:openstack_compute_api_v21]
  75. use = call:nova.api.auth:pipeline_factory_v21
  76. noauth = request_id faultwrap sizelimit noauth osapi_compute_app_v21
  77. keystone = request_id faultwrap sizelimit authtoken keystonecontext osapi_compute_app_v21
  78.  
  79. [composite:openstack_compute_api_v3]
  80. use = call:nova.api.auth:pipeline_factory_v21
  81. noauth = request_id faultwrap sizelimit noauth_v3 osapi_compute_app_v3
  82. keystone = request_id faultwrap sizelimit authtoken keystonecontext osapi_compute_app_v3
  83.  
  84. [filter:request_id]
  85. paste.filter_factory = nova.openstack.common.middleware.request_id:RequestIdMiddleware.factory
  86.  
  87. [filter:compute_req_id]
  88. paste.filter_factory = nova.api.compute_req_id:ComputeReqIdMiddleware.factory
  89.  
  90. [filter:faultwrap]
  91. paste.filter_factory = nova.api.openstack:FaultWrapper.factory
  92.  
  93. [filter:noauth]
  94. paste.filter_factory = nova.api.openstack.auth:NoAuthMiddleware.factory
  95.  
  96. [filter:noauth_v3]
  97. paste.filter_factory = nova.api.openstack.auth:NoAuthMiddlewareV3.factory
  98.  
  99. [filter:ratelimit]
  100. paste.filter_factory = nova.api.openstack.compute.limits:RateLimitingMiddleware.factory
  101.  
  102. [filter:sizelimit]
  103. paste.filter_factory = nova.api.sizelimit:RequestBodySizeLimiter.factory
  104.  
  105. [app:osapi_compute_app_v2]
  106. paste.app_factory = nova.api.openstack.compute:APIRouter.factory
  107.  
  108. [app:osapi_compute_app_v21]
  109. paste.app_factory = nova.api.openstack.compute:APIRouterV21.factory
  110.  
  111. [app:osapi_compute_app_v3]
  112. paste.app_factory = nova.api.openstack.compute:APIRouterV3.factory
  113.  
  114. [pipeline:oscomputeversions]
  115. pipeline = faultwrap oscomputeversionapp
  116.  
  117. [app:oscomputeversionapp]
  118. paste.app_factory = nova.api.openstack.compute.versions:Versions.factory
  119.  
  120. ##########
  121. # Shared #
  122. ##########
  123.  
  124. [filter:keystonecontext]
  125. paste.filter_factory = nova.api.auth:NovaKeystoneContext.factory
  126.  
  127. [filter:authtoken]
  128. paste.filter_factory = keystonemiddleware.auth_token:filter_factory
  129.  
  130. ##########
  131. # ooi #
  132. ##########
  133.  
  134. [composite:ooi]
  135. use = call:nova.api.openstack.urlmap:urlmap_factory
  136. /occi1.1: occi_api_11
  137.  
  138. [filter:occi]
  139. paste.filter_factory = ooi.wsgi:OCCIMiddleware.factory
  140. openstack_version = /v2
  141.  
  142. [composite:occi_api_11]
  143. use = call:nova.api.auth:pipeline_factory
  144. noauth = compute_req_id faultwrap sizelimit noauth ratelimit occi osapi_compute_app_v2
  145. keystone = compute_req_id faultwrap sizelimit authtoken keystonecontext ratelimit occi osapi_compute_app_v2
  146. keystone_nolimit = compute_req_id faultwrap sizelimit authtoken keystonecontext occi osapi_compute_app_v2
  147.  
  148. [composite:openstack_compute_api_v2]
  149. use = call:nova.api.auth:pipeline_factory
  150. noauth = compute_req_id faultwrap sizelimit noauth ratelimit occi osapi_compute_app_v2
  151. keystone = compute_req_id faultwrap sizelimit authtoken keystonecontext ratelimit occi osapi_compute_app_v2
  152. keystone_nolimit = compute_req_id faultwrap sizelimit authtoken keystonecontext occi osapi_compute_app_v2
RAW Paste Data