Advertisement
ishikawa84g

glance-api.diff

Oct 22nd, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 5.03 KB | None | 0 0
  1. --- glance-api.conf.sample      2014-10-22 18:25:17.595972609 +0900
  2. +++ glance-api.conf     2014-10-23 11:47:05.752967557 +0900
  3. @@ -1,9 +1,9 @@
  4.  [DEFAULT]
  5.  # Show more verbose log output (sets INFO log level output)
  6. -#verbose = False
  7. +verbose = True
  8.  
  9.  # Show debugging output in logs (sets DEBUG log level output)
  10. -#debug = False
  11. +debug = True
  12.  
  13.  # Which backend scheme should Glance use by default is not specified
  14.  # in a request to add a new image to Glance? Known schemes are determined
  15. @@ -44,7 +44,7 @@
  16.  # The number of child process workers that will be
  17.  # created to service API requests. The default will be
  18.  # equal to the number of CPUs available. (integer value)
  19. -#workers = 4
  20. +workers = 2
  21.  
  22.  # Maximum line size of message headers to be accepted.
  23.  # max_header_line may need to be increased when using large tokens
  24. @@ -53,11 +53,11 @@
  25.  # max_header_line = 16384
  26.  
  27.  # Role used to identify an authenticated user as administrator
  28. -#admin_role = admin
  29. +admin_role = admin
  30.  
  31.  # Allow unauthenticated users to access the API with read-only
  32.  # privileges. This only applies when using ContextMiddleware.
  33. -#allow_anonymous_access = False
  34. +allow_anonymous_access = False
  35.  
  36.  # Allow access to version 1 of glance api
  37.  #enable_v1_api = True
  38. @@ -80,15 +80,15 @@
  39.  #send_identity_headers = False
  40.  
  41.  # Supported values for the 'container_format' image attribute
  42. -#container_formats=ami,ari,aki,bare,ovf,ova
  43. +container_formats=ami,ari,aki,bare,ovf,ova
  44.  
  45.  # Supported values for the 'disk_format' image attribute
  46. -#disk_formats=ami,ari,aki,vhd,vmdk,raw,qcow2,vdi,iso
  47. +disk_formats=ami,ari,aki,vhd,vmdk,raw,qcow2,vdi,iso
  48.  
  49.  # Directory to use for lock files. Default to a temp directory
  50.  # (string value). This setting needs to be the same for both
  51.  # glance-scrubber and glance-api.
  52. -#lock_path=<None>
  53. +lock_path=/var/lock/glance
  54.  
  55.  # Property Protections config file
  56.  # This file contains the rules for property protections and the roles/policies
  57. @@ -113,7 +113,7 @@
  58.  
  59.  # Send logs to syslog (/dev/log) instead of to file specified
  60.  # by `log_file`
  61. -#use_syslog = False
  62. +use_syslog = False
  63.  
  64.  # Facility to use. If unset defaults to LOG_USER.
  65.  #syslog_log_facility = LOG_LOCAL0
  66. @@ -176,7 +176,7 @@
  67.  
  68.  # Whether to automatically create the database tables.
  69.  # Default: False
  70. -#db_auto_create = False
  71. +db_auto_create = False
  72.  
  73.  # Enable DEBUG log messages from sqlalchemy which prints every database
  74.  # query and response.
  75. @@ -185,7 +185,7 @@
  76.  
  77.  # Pass the user's token through for API requests to the registry.
  78.  # Default: True
  79. -#use_user_token = True
  80. +use_user_token = True
  81.  
  82.  # If 'use_user_token' is not in effect then admin credentials
  83.  # can be specified. Requests to the registry on behalf of
  84. @@ -201,7 +201,7 @@
  85.  # Keystone region
  86.  #auth_region = None
  87.  # Auth strategy
  88. -#auth_strategy = keystone
  89. +auth_strategy = keystone
  90.  
  91.  # ============ Notification System Options =====================
  92.  
  93. @@ -213,16 +213,16 @@
  94.  # default_publisher_id = image.localhost
  95.  
  96.  # Messaging driver used for 'messaging' notifications driver
  97. -# rpc_backend = 'rabbit'
  98. +rpc_backend = 'rabbit'
  99.  
  100.  # Configuration options if sending notifications via rabbitmq (these are
  101.  # the defaults)
  102.  rabbit_host = localhost
  103.  rabbit_port = 5672
  104.  rabbit_use_ssl = false
  105. -rabbit_userid = guest
  106. -rabbit_password = guest
  107. -rabbit_virtual_host = /
  108. +rabbit_userid = glance
  109. +rabbit_password = y7u8i9YUI
  110. +rabbit_virtual_host = /glance
  111.  rabbit_notification_exchange = glance
  112.  rabbit_notification_topic = notifications
  113.  rabbit_durable_queues = False
  114. @@ -300,7 +300,7 @@
  115.  # Deprecated group/name - [DEFAULT]/sql_connection
  116.  # Deprecated group/name - [DATABASE]/sql_connection
  117.  # Deprecated group/name - [sql]/connection
  118. -#connection = <None>
  119. +connection = mysql://glance:y7u8i9YUI@192.168.84.142/glance?charset=utf8
  120.  
  121.  # The SQL mode to be used for MySQL sessions. This option,
  122.  # including the default, overrides any server-set SQL mode. To
  123. @@ -381,10 +381,10 @@
  124.  #db_max_retries = 20
  125.  
  126.  [keystone_authtoken]
  127. -identity_uri = http://127.0.0.1:35357
  128. -admin_tenant_name = %SERVICE_TENANT_NAME%
  129. -admin_user = %SERVICE_USER%
  130. -admin_password = %SERVICE_PASSWORD%
  131. +identity_uri = http://192.168.84.142:35357
  132. +admin_tenant_name = service
  133. +admin_user = glance
  134. +admin_password = y7u8i9YUI
  135.  revocation_cache_time = 10
  136.  
  137.  [paste_deploy]
  138. @@ -395,7 +395,7 @@
  139.  # service name removed. For example, if your paste section name is
  140.  # [pipeline:glance-api-keystone], you would configure the flavor below
  141.  # as 'keystone'.
  142. -#flavor=
  143. +flavor = keystone
  144.  
  145.  [store_type_location_strategy]
  146.  # The scheme list to use to get store preference order. The scheme must be
  147. @@ -641,7 +641,7 @@
  148.  # Info to match when looking for cinder in the service catalog
  149.  # Format is : separated values of the form:
  150.  # <service_type>:<service_name>:<endpoint_type> (string value)
  151. -#cinder_catalog_info = volume:cinder:publicURL
  152. +cinder_catalog_info = volume:cinder:publicURL
  153.  
  154.  # Override service catalog lookup with template for cinder endpoint
  155.  # e.g. http://localhost:8776/v1/%(project_id)s (string value)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement