update from RIFT as of 696b75d2fe9fb046261b08c616f1bcf6c0b54a9b second try
[osm/SO.git] / rwlaunchpad / plugins / rwimagemgr / etc / fc20 / glance-api.conf
1 [DEFAULT]
2 # Show more verbose log output (sets INFO log level output)
3 verbose=True
4
5 # Show debugging output in logs (sets DEBUG log level output)
6 debug=True
7
8 # Which backend scheme should Glance use by default is not specified
9 # in a request to add a new image to Glance? Known schemes are determined
10 # by the known_stores option below.
11 # Default: 'file'
12 default_store = file
13
14 # List of which store classes and store class locations are
15 # currently known to glance at startup.
16 #known_stores = glance.store.filesystem.Store,
17 #               glance.store.http.Store,
18 #               glance.store.rbd.Store,
19 #               glance.store.s3.Store,
20 #               glance.store.swift.Store,
21 #               glance.store.sheepdog.Store,
22 #               glance.store.cinder.Store,
23
24
25 # Maximum image size (in bytes) that may be uploaded through the
26 # Glance API server. Defaults to 1 TB.
27 # WARNING: this value should only be increased after careful consideration
28 # and must be set to a value under 8 EB (9223372036854775808).
29 #image_size_cap = 1099511627776
30
31 # Address to bind the API server
32 bind_host = 127.0.0.1
33
34 # Port the bind the API server to
35 bind_port = 9292
36
37 # Log to this file. Make sure you do not set the same log
38 # file for both the API and registry servers!
39 log_file={RIFT_VAR_ROOT}/log/glance/api.log
40
41 # Backlog requests when creating socket
42 backlog = 4096
43
44 # TCP_KEEPIDLE value in seconds when creating socket.
45 # Not supported on OS X.
46 #tcp_keepidle = 600
47
48 # API to use for accessing data. Default value points to sqlalchemy
49 # package, it is also possible to use: glance.db.registry.api
50 data_api = glance.db.sqlalchemy.api
51
52 # SQLAlchemy connection string for the reference implementation
53 # registry server. Any valid SQLAlchemy connection string is fine.
54 # See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html#sqlalchemy.create_engine
55 #sql_connection=mysql://glance:glance@localhost/glance
56 sql_connection=sqlite:///{RIFT_VAR_ROOT}/glance/glance-api.db
57
58 # Period in seconds after which SQLAlchemy should reestablish its connection
59 # to the database.
60 #
61 # MySQL uses a default `wait_timeout` of 8 hours, after which it will drop
62 # idle connections. This can result in 'MySQL Gone Away' exceptions. If you
63 # notice this, you can lower this value to ensure that SQLAlchemy reconnects
64 # before MySQL can drop the connection.
65 sql_idle_timeout = 3600
66
67 # Number of Glance API worker processes to start.
68 # On machines with more than one CPU increasing this value
69 # may improve performance (especially if using SSL with
70 # compression turned on). It is typically recommended to set
71 # this value to the number of CPUs present on your machine.
72 workers = 1
73
74 # Role used to identify an authenticated user as administrator
75 #admin_role = admin
76
77 # Allow unauthenticated users to access the API with read-only
78 # privileges. This only applies when using ContextMiddleware.
79 allow_anonymous_access = True
80
81 # Allow access to version 1 of glance api
82 enable_v1_api = True
83
84 # Allow access to version 2 of glance api
85 enable_v2_api = True
86
87 # Return the URL that references where the data is stored on
88 # the backend storage system.  For example, if using the
89 # file system store a URL of 'file:///path/to/image' will
90 # be returned to the user in the 'direct_url' meta-data field.
91 # The default value is false.
92 #show_image_direct_url = False
93
94 # Send headers containing user and tenant information when making requests to
95 # the v1 glance registry. This allows the registry to function as if a user is
96 # authenticated without the need to authenticate a user itself using the
97 # auth_token middleware.
98 # The default value is false.
99 #send_identity_headers = False
100
101 # Supported values for the 'container_format' image attribute
102 container_formats=ami,ari,aki,bare,ovf
103
104 # Supported values for the 'disk_format' image attribute
105 disk_formats=ami,ari,aki,vhd,vmdk,raw,qcow2,vdi,iso
106
107 # Directory to use for lock files. Default to a temp directory
108 # (string value). This setting needs to be the same for both
109 # glance-scrubber and glance-api.
110 #lock_path=<None>
111 #
112 # Property Protections config file
113 # This file contains the rules for property protections and the roles
114 # associated with it.
115 # If this config value is not specified, by default, property protections
116 # won't be enforced.
117 # If a value is specified and the file is not found, then an
118 # HTTPInternalServerError will be thrown.
119 #property_protection_file =
120
121 # Set a system wide quota for every user.  This value is the total number
122 # of bytes that a user can use across all storage systems.  A value of
123 # 0 means unlimited.
124 #user_storage_quota = 0
125
126 # ================= Syslog Options ============================
127
128 # Send logs to syslog (/dev/log) instead of to file specified
129 # by `log_file`
130 #use_syslog = False
131
132 # Facility to use. If unset defaults to LOG_USER.
133 #syslog_log_facility = LOG_LOCAL0
134
135 # ================= SSL Options ===============================
136
137 # Certificate file to use when starting API server securely
138 #cert_file = /path/to/certfile
139
140 # Private key file to use when starting API server securely
141 #key_file = /path/to/keyfile
142
143 # CA certificate file to use to verify connecting clients
144 #ca_file = /path/to/cafile
145
146 # ================= Security Options ==========================
147
148 # AES key for encrypting store 'location' metadata, including
149 # -- if used -- Swift or S3 credentials
150 # Should be set to a random string of length 16, 24 or 32 bytes
151 #metadata_encryption_key = <16, 24 or 32 char registry metadata key>
152
153 # ============ Registry Options ===============================
154
155 # Address to find the registry server
156 registry_host = 0.0.0.0
157
158 # Port the registry server is listening on
159 registry_port = 9191
160
161 # What protocol to use when connecting to the registry server?
162 # Set to https for secure HTTP communication
163 registry_client_protocol = http
164
165 # The path to the key file to use in SSL connections to the
166 # registry server, if any. Alternately, you may set the
167 # GLANCE_CLIENT_KEY_FILE environ variable to a filepath of the key file
168 #registry_client_key_file = /path/to/key/file
169
170 # The path to the cert file to use in SSL connections to the
171 # registry server, if any. Alternately, you may set the
172 # GLANCE_CLIENT_CERT_FILE environ variable to a filepath of the cert file
173 #registry_client_cert_file = /path/to/cert/file
174
175 # The path to the certifying authority cert file to use in SSL connections
176 # to the registry server, if any. Alternately, you may set the
177 # GLANCE_CLIENT_CA_FILE environ variable to a filepath of the CA cert file
178 #registry_client_ca_file = /path/to/ca/file
179
180 # When using SSL in connections to the registry server, do not require
181 # validation via a certifying authority. This is the registry's equivalent of
182 # specifying --insecure on the command line using glanceclient for the API
183 # Default: False
184 #registry_client_insecure = False
185
186 # The period of time, in seconds, that the API server will wait for a registry
187 # request to complete. A value of '0' implies no timeout.
188 # Default: 600
189 #registry_client_timeout = 600
190
191 # Whether to automatically create the database tables.
192 # Default: False
193 db_auto_create = True
194
195 # Enable DEBUG log messages from sqlalchemy which prints every database
196 # query and response.
197 # Default: False
198 sqlalchemy_debug = True
199
200 # ============ Notification System Options =====================
201
202 # Notifications can be sent when images are create, updated or deleted.
203 # There are three methods of sending notifications, logging (via the
204 # log_file directive), rabbit (via a rabbitmq queue), qpid (via a Qpid
205 # message queue), or noop (no notifications sent, the default)
206 notifier_strategy=noop
207
208 # Configuration options if sending notifications via rabbitmq (these are
209 # the defaults)
210 rabbit_host = localhost
211 rabbit_port = 5672
212 rabbit_use_ssl = false
213 rabbit_userid = guest
214 rabbit_password = guest
215 rabbit_virtual_host = /
216 rabbit_notification_exchange = glance
217 rabbit_notification_topic = notifications
218 rabbit_durable_queues = False
219
220 # Configuration options if sending notifications via Qpid (these are
221 # the defaults)
222 qpid_notification_exchange = glance
223 qpid_notification_topic = notifications
224 qpid_hostname = localhost
225 qpid_port = 5672
226 qpid_username =
227 qpid_password =
228 qpid_sasl_mechanisms =
229 qpid_reconnect_timeout = 0
230 qpid_reconnect_limit = 0
231 qpid_reconnect_interval_min = 0
232 qpid_reconnect_interval_max = 0
233 qpid_reconnect_interval = 0
234 #qpid_heartbeat=60
235 # Set to 'ssl' to enable SSL
236 qpid_protocol = tcp
237 qpid_tcp_nodelay = True
238
239 # ============ Filesystem Store Options ========================
240
241 # Directory that the Filesystem backend store
242 # writes image data to
243 filesystem_store_datadir={RIFT_VAR_ROOT}/glance/images/
244
245 # A path to a JSON file that contains metadata describing the storage
246 # system.  When show_multiple_locations is True the information in this
247 # file will be returned with any location that is contained in this
248 # store.
249 #filesystem_store_metadata_file = None
250
251 # ============ Swift Store Options =============================
252
253 # Version of the authentication service to use
254 # Valid versions are '2' for keystone and '1' for swauth and rackspace
255 swift_store_auth_version = 2
256
257 # Address where the Swift authentication service lives
258 # Valid schemes are 'http://' and 'https://'
259 # If no scheme specified,  default to 'https://'
260 # For swauth, use something like '127.0.0.1:8080/v1.0/'
261 swift_store_auth_address = 127.0.0.1:5000/v2.0/
262
263 # User to authenticate against the Swift authentication service
264 # If you use Swift authentication service, set it to 'account':'user'
265 # where 'account' is a Swift storage account and 'user'
266 # is a user in that account
267 swift_store_user = jdoe:jdoe
268
269 # Auth key for the user authenticating against the
270 # Swift authentication service
271 swift_store_key = a86850deb2742ec3cb41518e26aa2d89
272
273 # Container within the account that the account should use
274 # for storing images in Swift
275 swift_store_container = glance
276
277 # Do we create the container if it does not exist?
278 swift_store_create_container_on_put = False
279
280 # What size, in MB, should Glance start chunking image files
281 # and do a large object manifest in Swift? By default, this is
282 # the maximum object size in Swift, which is 5GB
283 swift_store_large_object_size = 5120
284
285 # When doing a large object manifest, what size, in MB, should
286 # Glance write chunks to Swift? This amount of data is written
287 # to a temporary disk buffer during the process of chunking
288 # the image file, and the default is 200MB
289 swift_store_large_object_chunk_size = 200
290
291 # Whether to use ServiceNET to communicate with the Swift storage servers.
292 # (If you aren't RACKSPACE, leave this False!)
293 #
294 # To use ServiceNET for authentication, prefix hostname of
295 # `swift_store_auth_address` with 'snet-'.
296 # Ex. https://example.com/v1.0/ -> https://snet-example.com/v1.0/
297 swift_enable_snet = False
298
299 # If set to True enables multi-tenant storage mode which causes Glance images
300 # to be stored in tenant specific Swift accounts.
301 #swift_store_multi_tenant = False
302
303 # A list of swift ACL strings that will be applied as both read and
304 # write ACLs to the containers created by Glance in multi-tenant
305 # mode. This grants the specified tenants/users read and write access
306 # to all newly created image objects. The standard swift ACL string
307 # formats are allowed, including:
308 # <tenant_id>:<username>
309 # <tenant_name>:<username>
310 # *:<username>
311 # Multiple ACLs can be combined using a comma separated list, for
312 # example: swift_store_admin_tenants = service:glance,*:admin
313 #swift_store_admin_tenants =
314
315 # The region of the swift endpoint to be used for single tenant. This setting
316 # is only necessary if the tenant has multiple swift endpoints.
317 #swift_store_region =
318
319 # If set to False, disables SSL layer compression of https swift requests.
320 # Setting to 'False' may improve performance for images which are already
321 # in a compressed format, eg qcow2. If set to True, enables SSL layer
322 # compression (provided it is supported by the target swift proxy).
323 #swift_store_ssl_compression = True
324
325 # ============ S3 Store Options =============================
326
327 # Address where the S3 authentication service lives
328 # Valid schemes are 'http://' and 'https://'
329 # If no scheme specified,  default to 'http://'
330 s3_store_host = 127.0.0.1:8080/v1.0/
331
332 # User to authenticate against the S3 authentication service
333 s3_store_access_key = <20-char AWS access key>
334
335 # Auth key for the user authenticating against the
336 # S3 authentication service
337 s3_store_secret_key = <40-char AWS secret key>
338
339 # Container within the account that the account should use
340 # for storing images in S3. Note that S3 has a flat namespace,
341 # so you need a unique bucket name for your glance images. An
342 # easy way to do this is append your AWS access key to "glance".
343 # S3 buckets in AWS *must* be lowercased, so remember to lowercase
344 # your AWS access key if you use it in your bucket name below!
345 s3_store_bucket = <lowercased 20-char aws access key>glance
346
347 # Do we create the bucket if it does not exist?
348 s3_store_create_bucket_on_put = False
349
350 # When sending images to S3, the data will first be written to a
351 # temporary buffer on disk. By default the platform's temporary directory
352 # will be used. If required, an alternative directory can be specified here.
353 #s3_store_object_buffer_dir = /path/to/dir
354
355 # When forming a bucket url, boto will either set the bucket name as the
356 # subdomain or as the first token of the path. Amazon's S3 service will
357 # accept it as the subdomain, but Swift's S3 middleware requires it be
358 # in the path. Set this to 'path' or 'subdomain' - defaults to 'subdomain'.
359 #s3_store_bucket_url_format = subdomain
360
361 # ============ RBD Store Options =============================
362
363 # Ceph configuration file path
364 # If using cephx authentication, this file should
365 # include a reference to the right keyring
366 # in a client.<USER> section
367 rbd_store_ceph_conf = /etc/ceph/ceph.conf
368
369 # RADOS user to authenticate as (only applicable if using cephx)
370 rbd_store_user = glance
371
372 # RADOS pool in which images are stored
373 rbd_store_pool = images
374
375 # Images will be chunked into objects of this size (in megabytes).
376 # For best performance, this should be a power of two
377 rbd_store_chunk_size = 8
378
379 # ============ Sheepdog Store Options =============================
380
381 sheepdog_store_address = localhost
382
383 sheepdog_store_port = 7000
384
385 # Images will be chunked into objects of this size (in megabytes).
386 # For best performance, this should be a power of two
387 sheepdog_store_chunk_size = 64
388
389 # ============ Cinder Store Options ===============================
390
391 # Info to match when looking for cinder in the service catalog
392 # Format is : separated values of the form:
393 # <service_type>:<service_name>:<endpoint_type> (string value)
394 #cinder_catalog_info = volume:cinder:publicURL
395
396 # Override service catalog lookup with template for cinder endpoint
397 # e.g. http://localhost:8776/v1/%(project_id)s (string value)
398 #cinder_endpoint_template = <None>
399
400 # Region name of this node (string value)
401 #os_region_name = <None>
402
403 # Location of ca certicates file to use for cinder client requests
404 # (string value)
405 #cinder_ca_certificates_file = <None>
406
407 # Number of cinderclient retries on failed http calls (integer value)
408 #cinder_http_retries = 3
409
410 # Allow to perform insecure SSL requests to cinder (boolean value)
411 #cinder_api_insecure = False
412
413 # ============ Delayed Delete Options =============================
414
415 # Turn on/off delayed delete
416 delayed_delete = False
417
418 # Delayed delete time in seconds
419 scrub_time = 43200
420
421 # Directory that the scrubber will use to remind itself of what to delete
422 # Make sure this is also set in glance-scrubber.conf
423 scrubber_datadir={RIFT_VAR_ROOT}/glance/scrubber
424
425 # =============== Image Cache Options =============================
426
427 # Base directory that the Image Cache uses
428 image_cache_dir={RIFT_VAR_ROOT}/glance/image-cache/
429
430 [keystone_authtoken]
431 #auth_host=127.0.0.1
432 #auth_port=35357
433 #auth_protocol=http
434 #admin_tenant_name=%SERVICE_TENANT_NAME%
435 #admin_user=%SERVICE_USER%
436 #admin_password=%SERVICE_PASSWORD%
437
438 [paste_deploy]
439 # Name of the paste configuration file that defines the available pipelines
440 config_file={RIFT_INSTALL}/etc/glance/glance-api-dist-paste.ini
441
442 # Partial name of a pipeline in your paste configuration file with the
443 # service name removed. For example, if your paste section name is
444 # [pipeline:glance-api-keystone], you would configure the flavor below
445 # as 'keystone'.
446 flavor=