48 |
39 |
49 # API to use for accessing data. Default value points to sqlalchemy |
40 # API to use for accessing data. Default value points to sqlalchemy |
50 # package, it is also possible to use: glance.db.registry.api |
41 # package, it is also possible to use: glance.db.registry.api |
51 # data_api = glance.db.sqlalchemy.api |
42 # data_api = glance.db.sqlalchemy.api |
52 |
43 |
53 # SQLAlchemy connection string for the reference implementation |
44 # The number of child process workers that will be |
54 # registry server. Any valid SQLAlchemy connection string is fine. |
45 # created to service API requests. The default will be |
55 # See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html#sqlalchemy.create_engine |
46 # equal to the number of CPUs available. (integer value) |
56 sql_connection = sqlite:////var/lib/glance/glance.sqlite |
|
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 |
47 workers = 1 |
|
48 |
|
49 # Maximum line size of message headers to be accepted. |
|
50 # max_header_line may need to be increased when using large tokens |
|
51 # (typically those generated by the Keystone v3 API with big service |
|
52 # catalogs) |
|
53 # max_header_line = 16384 |
73 |
54 |
74 # Role used to identify an authenticated user as administrator |
55 # Role used to identify an authenticated user as administrator |
75 #admin_role = admin |
56 #admin_role = admin |
76 |
57 |
77 # Allow unauthenticated users to access the API with read-only |
58 # Allow unauthenticated users to access the API with read-only |
97 # auth_token middleware. |
78 # auth_token middleware. |
98 # The default value is false. |
79 # The default value is false. |
99 #send_identity_headers = False |
80 #send_identity_headers = False |
100 |
81 |
101 # Supported values for the 'container_format' image attribute |
82 # Supported values for the 'container_format' image attribute |
102 #container_formats=ami,ari,aki,bare,ovf,uar |
83 container_formats=ami,ari,aki,bare,ovf,ova,uar |
103 |
84 |
104 # Supported values for the 'disk_format' image attribute |
85 # Supported values for the 'disk_format' image attribute |
105 #disk_formats=ami,ari,aki,vhd,vmdk,raw,qcow2,vdi,iso,zfs |
86 disk_formats=ami,ari,aki,vhd,vmdk,raw,qcow2,vdi,iso,zfs |
106 |
87 |
107 # Directory to use for lock files. Default to a temp directory |
88 # Directory to use for lock files. Default to a temp directory |
108 # (string value). This setting needs to be the same for both |
89 # (string value). This setting needs to be the same for both |
109 # glance-scrubber and glance-api. |
90 # glance-scrubber and glance-api. |
110 #lock_path=<None> |
91 #lock_path=<None> |
111 # |
92 |
112 # Property Protections config file |
93 # Property Protections config file |
113 # This file contains the rules for property protections and the roles |
94 # This file contains the rules for property protections and the roles/policies |
114 # associated with it. |
95 # associated with it. |
115 # If this config value is not specified, by default, property protections |
96 # If this config value is not specified, by default, property protections |
116 # won't be enforced. |
97 # won't be enforced. |
117 # If a value is specified and the file is not found, then an |
98 # If a value is specified and the file is not found, then the glance-api |
118 # HTTPInternalServerError will be thrown. |
99 # service will not start. |
119 #property_protection_file = |
100 #property_protection_file = |
120 |
101 |
121 # Set a system wide quota for every user. This value is the total number |
102 # Specify whether 'roles' or 'policies' are used in the |
122 # of bytes that a user can use across all storage systems. A value of |
103 # property_protection_file. |
123 # 0 means unlimited. |
104 # The default value for property_protection_rule_format is 'roles'. |
124 #user_storage_quota = 0 |
105 #property_protection_rule_format = roles |
|
106 |
|
107 # This value sets what strategy will be used to determine the image location |
|
108 # order. Currently two strategies are packaged with Glance 'location_order' |
|
109 # and 'store_type'. |
|
110 #location_strategy = location_order |
125 |
111 |
126 # ================= Syslog Options ============================ |
112 # ================= Syslog Options ============================ |
127 |
113 |
128 # Send logs to syslog (/dev/log) instead of to file specified |
114 # Send logs to syslog (/dev/log) instead of to file specified |
129 # by `log_file` |
115 # by `log_file` |
234 qpid_heartbeat = 5 |
244 qpid_heartbeat = 5 |
235 # Set to 'ssl' to enable SSL |
245 # Set to 'ssl' to enable SSL |
236 qpid_protocol = tcp |
246 qpid_protocol = tcp |
237 qpid_tcp_nodelay = True |
247 qpid_tcp_nodelay = True |
238 |
248 |
|
249 # ============ Delayed Delete Options ============================= |
|
250 |
|
251 # Turn on/off delayed delete |
|
252 delayed_delete = False |
|
253 |
|
254 # Delayed delete time in seconds |
|
255 scrub_time = 43200 |
|
256 |
|
257 # Directory that the scrubber will use to remind itself of what to delete |
|
258 # Make sure this is also set in glance-scrubber.conf |
|
259 scrubber_datadir = /var/lib/glance/scrubber |
|
260 |
|
261 # =============== Quota Options ================================== |
|
262 |
|
263 # The maximum number of image members allowed per image |
|
264 #image_member_quota = 128 |
|
265 |
|
266 # The maximum number of image properties allowed per image |
|
267 #image_property_quota = 128 |
|
268 |
|
269 # The maximum number of tags allowed per image |
|
270 #image_tag_quota = 128 |
|
271 |
|
272 # The maximum number of locations allowed per image |
|
273 #image_location_quota = 10 |
|
274 |
|
275 # Set a system wide quota for every user. This value is the total number |
|
276 # of bytes that a user can use across all storage systems. A value of |
|
277 # 0 means unlimited. |
|
278 #user_storage_quota = 0 |
|
279 |
|
280 # =============== Image Cache Options ============================= |
|
281 |
|
282 # Base directory that the Image Cache uses |
|
283 image_cache_dir = /var/lib/glance/image-cache/ |
|
284 |
|
285 # =============== Database Options ================================= |
|
286 |
|
287 [database] |
|
288 # The file name to use with SQLite (string value) |
|
289 #sqlite_db = oslo.sqlite |
|
290 |
|
291 # If True, SQLite uses synchronous mode (boolean value) |
|
292 #sqlite_synchronous = True |
|
293 |
|
294 # The backend to use for db (string value) |
|
295 # Deprecated group/name - [DEFAULT]/db_backend |
|
296 #backend = sqlalchemy |
|
297 |
|
298 # The SQLAlchemy connection string used to connect to the |
|
299 # database (string value) |
|
300 # Deprecated group/name - [DEFAULT]/sql_connection |
|
301 # Deprecated group/name - [DATABASE]/sql_connection |
|
302 # Deprecated group/name - [sql]/connection |
|
303 connection = mysql://%SERVICE_USER%:%SERVICE_PASSWORD%@localhost/glance |
|
304 |
|
305 # The SQL mode to be used for MySQL sessions. This option, |
|
306 # including the default, overrides any server-set SQL mode. To |
|
307 # use whatever SQL mode is set by the server configuration, |
|
308 # set this to no value. Example: mysql_sql_mode= (string |
|
309 # value) |
|
310 #mysql_sql_mode = TRADITIONAL |
|
311 |
|
312 # Timeout before idle sql connections are reaped (integer |
|
313 # value) |
|
314 # Deprecated group/name - [DEFAULT]/sql_idle_timeout |
|
315 # Deprecated group/name - [DATABASE]/sql_idle_timeout |
|
316 # Deprecated group/name - [sql]/idle_timeout |
|
317 #idle_timeout = 3600 |
|
318 |
|
319 # Minimum number of SQL connections to keep open in a pool |
|
320 # (integer value) |
|
321 # Deprecated group/name - [DEFAULT]/sql_min_pool_size |
|
322 # Deprecated group/name - [DATABASE]/sql_min_pool_size |
|
323 #min_pool_size = 1 |
|
324 |
|
325 # Maximum number of SQL connections to keep open in a pool |
|
326 # (integer value) |
|
327 # Deprecated group/name - [DEFAULT]/sql_max_pool_size |
|
328 # Deprecated group/name - [DATABASE]/sql_max_pool_size |
|
329 #max_pool_size = <None> |
|
330 |
|
331 # Maximum db connection retries during startup. (setting -1 |
|
332 # implies an infinite retry count) (integer value) |
|
333 # Deprecated group/name - [DEFAULT]/sql_max_retries |
|
334 # Deprecated group/name - [DATABASE]/sql_max_retries |
|
335 #max_retries = 10 |
|
336 |
|
337 # Interval between retries of opening a sql connection |
|
338 # (integer value) |
|
339 # Deprecated group/name - [DEFAULT]/sql_retry_interval |
|
340 # Deprecated group/name - [DATABASE]/reconnect_interval |
|
341 #retry_interval = 10 |
|
342 |
|
343 # If set, use this value for max_overflow with sqlalchemy |
|
344 # (integer value) |
|
345 # Deprecated group/name - [DEFAULT]/sql_max_overflow |
|
346 # Deprecated group/name - [DATABASE]/sqlalchemy_max_overflow |
|
347 #max_overflow = <None> |
|
348 |
|
349 # Verbosity of SQL debugging information. 0=None, |
|
350 # 100=Everything (integer value) |
|
351 # Deprecated group/name - [DEFAULT]/sql_connection_debug |
|
352 #connection_debug = 0 |
|
353 |
|
354 # Add python stack traces to SQL as comment strings (boolean |
|
355 # value) |
|
356 # Deprecated group/name - [DEFAULT]/sql_connection_trace |
|
357 #connection_trace = False |
|
358 |
|
359 # If set, use this value for pool_timeout with sqlalchemy |
|
360 # (integer value) |
|
361 # Deprecated group/name - [DATABASE]/sqlalchemy_pool_timeout |
|
362 #pool_timeout = <None> |
|
363 |
|
364 # Enable the experimental use of database reconnect on |
|
365 # connection lost (boolean value) |
|
366 #use_db_reconnect = False |
|
367 |
|
368 # seconds between db connection retries (integer value) |
|
369 #db_retry_interval = 1 |
|
370 |
|
371 # Whether to increase interval between db connection retries, |
|
372 # up to db_max_retry_interval (boolean value) |
|
373 #db_inc_retry_interval = True |
|
374 |
|
375 # max seconds between db connection retries, if |
|
376 # db_inc_retry_interval is enabled (integer value) |
|
377 #db_max_retry_interval = 10 |
|
378 |
|
379 # maximum db connection retries before error is raised. |
|
380 # (setting -1 implies an infinite retry count) (integer value) |
|
381 #db_max_retries = 20 |
|
382 |
|
383 [keystone_authtoken] |
|
384 auth_uri = http://127.0.0.1:5000/v2.0/ |
|
385 identity_uri = http://127.0.0.1:35357/ |
|
386 admin_tenant_name = %SERVICE_TENANT_NAME% |
|
387 admin_user = %SERVICE_USER% |
|
388 admin_password = %SERVICE_PASSWORD% |
|
389 revocation_cache_time = 10 |
|
390 signing_dir = /var/lib/glance/keystone-signing |
|
391 |
|
392 [paste_deploy] |
|
393 # Name of the paste configuration file that defines the available pipelines |
|
394 #config_file = glance-api-paste.ini |
|
395 |
|
396 # Partial name of a pipeline in your paste configuration file with the |
|
397 # service name removed. For example, if your paste section name is |
|
398 # [pipeline:glance-api-keystone], you would configure the flavor below |
|
399 # as 'keystone'. |
|
400 flavor=keystone |
|
401 |
|
402 [store_type_location_strategy] |
|
403 # The scheme list to use to get store preference order. The scheme must be |
|
404 # registered by one of the stores defined by the 'known_stores' config option. |
|
405 # This option will be applied when you using 'store_type' option as image |
|
406 # location strategy defined by the 'location_strategy' config option. |
|
407 #store_type_preference = |
|
408 |
|
409 [profiler] |
|
410 # If False fully disable profiling feature. |
|
411 #enabled = False |
|
412 |
|
413 # If False doesn't trace SQL requests. |
|
414 #trace_sqlalchemy = False |
|
415 |
|
416 [task] |
|
417 # ================= Glance Tasks Options ============================ |
|
418 |
|
419 # Specifies how long (in hours) a task is supposed to live in the tasks DB |
|
420 # after succeeding or failing before getting soft-deleted. |
|
421 # The default value for task_time_to_live is 48 hours. |
|
422 # task_time_to_live = 48 |
|
423 |
|
424 # Specifies which task executor to be used to run the task scripts. |
|
425 # The default value for task_executor is eventlet. |
|
426 # task_executor = eventlet |
|
427 |
|
428 # Specifies the maximum number of eventlet threads which can be spun up by |
|
429 # the eventlet based task executor to perform execution of Glance tasks. |
|
430 # eventlet_executor_pool_size = 1000 |
|
431 |
|
432 [glance_store] |
|
433 # List of which store classes and store class locations are |
|
434 # currently known to glance at startup. |
|
435 # Existing but disabled stores: |
|
436 # glance.store.rbd.Store, |
|
437 # glance.store.s3.Store, |
|
438 # glance.store.swift.Store, |
|
439 # glance.store.sheepdog.Store, |
|
440 # glance.store.cinder.Store, |
|
441 # glance.store.gridfs.Store, |
|
442 # glance.store.vmware_datastore.Store, |
|
443 #stores = glance.store.filesystem.Store, |
|
444 # glance.store.http.Store |
|
445 |
239 # ============ Filesystem Store Options ======================== |
446 # ============ Filesystem Store Options ======================== |
240 |
447 |
241 # Directory that the Filesystem backend store |
448 # Directory that the Filesystem backend store |
242 # writes image data to |
449 # writes image data to |
243 filesystem_store_datadir = /var/lib/glance/images/ |
450 filesystem_store_datadir = /var/lib/glance/images/ |
|
451 |
|
452 # A list of directories where image data can be stored. |
|
453 # This option may be specified multiple times for specifying multiple store |
|
454 # directories. Either one of filesystem_store_datadirs or |
|
455 # filesystem_store_datadir option is required. A priority number may be given |
|
456 # after each directory entry, separated by a ":". |
|
457 # When adding an image, the highest priority directory will be selected, unless |
|
458 # there is not enough space available in cases where the image size is already |
|
459 # known. If no priority is given, it is assumed to be zero and the directory |
|
460 # will be considered for selection last. If multiple directories have the same |
|
461 # priority, then the one with the most free space available is selected. |
|
462 # If same store is specified multiple times then BadStoreConfiguration |
|
463 # exception will be raised. |
|
464 #filesystem_store_datadirs = /var/lib/glance/images/:1 |
244 |
465 |
245 # A path to a JSON file that contains metadata describing the storage |
466 # A path to a JSON file that contains metadata describing the storage |
246 # system. When show_multiple_locations is True the information in this |
467 # system. When show_multiple_locations is True the information in this |
247 # file will be returned with any location that is contained in this |
468 # file will be returned with any location that is contained in this |
248 # store. |
469 # store. |
356 # subdomain or as the first token of the path. Amazon's S3 service will |
593 # 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 |
594 # 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'. |
595 # in the path. Set this to 'path' or 'subdomain' - defaults to 'subdomain'. |
359 #s3_store_bucket_url_format = subdomain |
596 #s3_store_bucket_url_format = subdomain |
360 |
597 |
|
598 # Size, in MB, should S3 start chunking image files |
|
599 # and do a multipart upload in S3. The default is 100MB. |
|
600 #s3_store_large_object_size = 100 |
|
601 |
|
602 # Multipart upload part size, in MB, should S3 use when uploading |
|
603 # parts. The size must be greater than or equal to |
|
604 # 5MB. The default is 10MB. |
|
605 #s3_store_large_object_chunk_size = 10 |
|
606 |
|
607 # The number of thread pools to perform a multipart upload |
|
608 # in S3. The default is 10. |
|
609 #s3_store_thread_pools = 10 |
|
610 |
361 # ============ RBD Store Options ============================= |
611 # ============ RBD Store Options ============================= |
362 |
612 |
363 # Ceph configuration file path |
613 # Ceph configuration file path |
364 # If using cephx authentication, this file should |
614 # If using cephx authentication, this file should |
365 # include a reference to the right keyring |
615 # include a reference to the right keyring |
366 # in a client.<USER> section |
616 # in a client.<USER> section |
367 rbd_store_ceph_conf = /etc/ceph/ceph.conf |
617 #rbd_store_ceph_conf = /etc/ceph/ceph.conf |
368 |
618 |
369 # RADOS user to authenticate as (only applicable if using cephx) |
619 # RADOS user to authenticate as (only applicable if using cephx) |
370 rbd_store_user = glance |
620 # If <None>, a default will be chosen based on the client. section |
|
621 # in rbd_store_ceph_conf |
|
622 #rbd_store_user = <None> |
371 |
623 |
372 # RADOS pool in which images are stored |
624 # RADOS pool in which images are stored |
373 rbd_store_pool = images |
625 #rbd_store_pool = images |
374 |
626 |
375 # Images will be chunked into objects of this size (in megabytes). |
627 # RADOS images will be chunked into objects of this size (in megabytes). |
376 # For best performance, this should be a power of two |
628 # For best performance, this should be a power of two |
377 rbd_store_chunk_size = 8 |
629 #rbd_store_chunk_size = 8 |
378 |
630 |
379 # ============ Sheepdog Store Options ============================= |
631 # ============ Sheepdog Store Options ============================= |
380 |
632 |
381 sheepdog_store_address = localhost |
633 sheepdog_store_address = localhost |
382 |
634 |
408 #cinder_http_retries = 3 |
660 #cinder_http_retries = 3 |
409 |
661 |
410 # Allow to perform insecure SSL requests to cinder (boolean value) |
662 # Allow to perform insecure SSL requests to cinder (boolean value) |
411 #cinder_api_insecure = False |
663 #cinder_api_insecure = False |
412 |
664 |
413 # ============ Delayed Delete Options ============================= |
665 # ============ VMware Datastore Store Options ===================== |
414 |
666 |
415 # Turn on/off delayed delete |
667 # ESX/ESXi or vCenter Server target system. |
416 delayed_delete = False |
668 # The server value can be an IP address or a DNS name |
417 |
669 # e.g. 127.0.0.1, 127.0.0.1:443, www.vmware-infra.com |
418 # Delayed delete time in seconds |
670 #vmware_server_host = <None> |
419 scrub_time = 43200 |
671 |
420 |
672 # Server username (string value) |
421 # Directory that the scrubber will use to remind itself of what to delete |
673 #vmware_server_username = <None> |
422 # Make sure this is also set in glance-scrubber.conf |
674 |
423 scrubber_datadir = /var/lib/glance/scrubber |
675 # Server password (string value) |
424 |
676 #vmware_server_password = <None> |
425 # =============== Image Cache Options ============================= |
677 |
426 |
678 # Inventory path to a datacenter (string value) |
427 # Base directory that the Image Cache uses |
679 # Value optional when vmware_server_ip is an ESX/ESXi host: if specified |
428 image_cache_dir = /var/lib/glance/image-cache/ |
680 # should be `ha-datacenter`. |
429 |
681 #vmware_datacenter_path = <None> |
430 [keystone_authtoken] |
682 |
431 auth_uri = http://127.0.0.1:5000/v2.0 |
683 # Datastore associated with the datacenter (string value) |
432 identity_uri = http://127.0.0.1:35357 |
684 #vmware_datastore_name = <None> |
433 admin_tenant_name = %SERVICE_TENANT_NAME% |
685 |
434 admin_user = %SERVICE_USER% |
686 # The number of times we retry on failures |
435 admin_password = %SERVICE_PASSWORD% |
687 # e.g., socket error, etc (integer value) |
436 signing_dir = /var/lib/glance/keystone-signing |
688 #vmware_api_retry_count = 10 |
437 |
689 |
438 [paste_deploy] |
690 # The interval used for polling remote tasks |
439 # Name of the paste configuration file that defines the available pipelines |
691 # invoked on VMware ESX/VC server in seconds (integer value) |
440 #config_file = glance-api-paste.ini |
692 #vmware_task_poll_interval = 5 |
441 |
693 |
442 # Partial name of a pipeline in your paste configuration file with the |
694 # Absolute path of the folder containing the images in the datastore |
443 # service name removed. For example, if your paste section name is |
695 # (string value) |
444 # [pipeline:glance-api-keystone], you would configure the flavor below |
696 #vmware_store_image_dir = /openstack_glance |
445 # as 'keystone'. |
697 |
446 flavor = keystone |
698 # Allow to perform insecure SSL requests to the target system (boolean value) |
|
699 #vmware_api_insecure = False |