Advertisement
Guest User

Untitled

a guest
Oct 15th, 2013
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. --------------------------
  2. api-paste.ini
  3. --------------------------
  4.  
  5. #############
  6. # OpenStack #
  7. #############
  8.  
  9. [composite:osapi_volume]
  10. use = call:cinder.api:root_app_factory
  11. /: apiversions
  12. /v1: openstack_volume_api_v1
  13. /v2: openstack_volume_api_v2
  14.  
  15. [composite:openstack_volume_api_v1]
  16. use = call:cinder.api.middleware.auth:pipeline_factory
  17. noauth = faultwrap sizelimit noauth apiv1
  18. keystone = faultwrap sizelimit authtoken keystonecontext apiv1
  19. keystone_nolimit = faultwrap sizelimit authtoken keystonecontext apiv1
  20.  
  21. [composite:openstack_volume_api_v2]
  22. use = call:cinder.api.middleware.auth:pipeline_factory
  23. noauth = faultwrap sizelimit noauth apiv2
  24. keystone = faultwrap sizelimit authtoken keystonecontext apiv2
  25. keystone_nolimit = faultwrap sizelimit authtoken keystonecontext apiv2
  26.  
  27. [filter:faultwrap]
  28. paste.filter_factory = cinder.api.middleware.fault:FaultWrapper.factory
  29.  
  30. [filter:noauth]
  31. paste.filter_factory = cinder.api.middleware.auth:NoAuthMiddleware.factory
  32.  
  33. [filter:sizelimit]
  34. paste.filter_factory = cinder.api.middleware.sizelimit:RequestBodySizeLimiter.factory
  35.  
  36. [app:apiv1]
  37. paste.app_factory = cinder.api.v1.router:APIRouter.factory
  38.  
  39. [app:apiv2]
  40. paste.app_factory = cinder.api.v2.router:APIRouter.factory
  41.  
  42. [pipeline:apiversions]
  43. pipeline = faultwrap osvolumeversionapp
  44.  
  45. [app:osvolumeversionapp]
  46. paste.app_factory = cinder.api.versions:Versions.factory
  47.  
  48. ##########
  49. # Shared #
  50. ##########
  51.  
  52. [filter:keystonecontext]
  53. paste.filter_factory = cinder.api.middleware.auth:CinderKeystoneContext.factory
  54.  
  55. [filter:authtoken]
  56. paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
  57. service_protocol = http
  58. service_host = 127.0.0.1
  59. service_port = 5000
  60. signing_dir = /var/lib/cinder
  61.  
  62. auth_host = 127.0.0.1
  63. auth_port = 35357
  64. auth_protocol = http
  65. admin_tenant_name = service
  66. admin_user = cinder
  67. admin_password = cinder
  68.  
  69. -------------------------------------------------------------------------------------------------------------------cinder.conf
  70. ---------------------
  71.  
  72. [DEFAULT]
  73. logdir = /var/log/cinder
  74. state_path = /var/lib/cinder
  75. lock_path = /var/lib/cinder/tmp
  76. volumes_dir = /etc/cinder/volumes
  77. iscsi_helper = tgtadm
  78. sql_connection = mysql://cinder:cinder@localhost/cinder
  79. rpc_backend = cinder.openstack.common.rpc.impl_qpid
  80. rootwrap_config = /etc/cinder/rootwrap.conf
  81. api_paste_config = /etc/cinder/api-paste.ini
  82.  
  83. iscsi_helper=tgtadm
  84. volume_name_template = volume-%s
  85. volume_group = cinder-volumes
  86. verbose = True
  87. auth_strategy = keystone
  88. #osapi_volume_listen_port=5900
  89.  
  90. qpid_hostname=192.168.5.1
  91.  
  92.  
  93. [keystone_authtoken]
  94. admin_tenant_name = %SERVICE_TENANT_NAME%
  95. admin_user = %SERVICE_USER%
  96. admin_password = %SERVICE_PASSWORD%
  97. auth_host = 127.0.0.1
  98. auth_port = 35357
  99. auth_protocol = http
  100. signing_dirname = /tmp/keystone-signing-cinder
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement