blob: ffa0ed620ae7f6f1980f2e4f534c4205ad097824 [file] [log] [blame]
Oleh Hryhorov6de49c92018-05-21 12:53:59 +00001{%- from "glance/map.jinja" import server with context %}
2[DEFAULT]
3
4#
5# From glance.cache
6#
7
8#
9# Allow users to add additional/custom properties to images.
10#
11# Glance defines a standard set of properties (in its schema) that
12# appear on every image. These properties are also known as
13# ``base properties``. In addition to these properties, Glance
14# allows users to add custom properties to images. These are known
15# as ``additional properties``.
16#
17# By default, this configuration option is set to ``True`` and users
18# are allowed to add additional properties. The number of additional
19# properties that can be added to an image can be controlled via
20# ``image_property_quota`` configuration option.
21#
22# Possible values:
23# * True
24# * False
25#
26# Related options:
27# * image_property_quota
28#
29# (boolean value)
30#allow_additional_image_properties = true
31
32#
33# Maximum number of image members per image.
34#
35# This limits the maximum of users an image can be shared with. Any
36# negative
37# value is interpreted as unlimited.
38#
39# Related options:
40# * None
41#
42# (integer value)
43#image_member_quota = 128
44
45#
46# Maximum number of properties allowed on an image.
47#
48# This enforces an upper limit on the number of additional properties
49# an image
50# can have. Any negative value is interpreted as unlimited.
51#
52# NOTE: This won't have any impact if additional properties are
53# disabled. Please
54# refer to ``allow_additional_image_properties``.
55#
56# Related options:
57# * ``allow_additional_image_properties``
58#
59# (integer value)
60#image_property_quota = 128
61
62#
63# Maximum number of tags allowed on an image.
64#
65# Any negative value is interpreted as unlimited.
66#
67# Related options:
68# * None
69#
70# (integer value)
71#image_tag_quota = 128
72
73#
74# Maximum number of locations allowed on an image.
75#
76# Any negative value is interpreted as unlimited.
77#
78# Related options:
79# * None
80#
81# (integer value)
82#image_location_quota = 10
83
84# DEPRECATED:
85# Python module path of data access API.
86#
87# Specifies the path to the API to use for accessing the data model.
88# This option determines how the image catalog data will be accessed.
89#
90# Possible values:
91# * glance.db.sqlalchemy.api
92# * glance.db.registry.api
93# * glance.db.simple.api
94#
95# If this option is set to ``glance.db.sqlalchemy.api`` then the image
96# catalog data is stored in and read from the database via the
97# SQLAlchemy Core and ORM APIs.
98#
99# Setting this option to ``glance.db.registry.api`` will force all
100# database access requests to be routed through the Registry service.
101# This avoids data access from the Glance API nodes for an added layer
102# of security, scalability and manageability.
103#
104# NOTE: In v2 OpenStack Images API, the registry service is optional.
105# In order to use the Registry API in v2, the option
106# ``enable_v2_registry`` must be set to ``True``.
107#
108# Finally, when this configuration option is set to
109# ``glance.db.simple.api``, image catalog data is stored in and read
110# from an in-memory data structure. This is primarily used for
111# testing.
112#
113# Related options:
114# * enable_v2_api
115# * enable_v2_registry
116#
117# (string value)
118# This option is deprecated for removal since Queens.
119# Its value may be silently ignored in the future.
120# Reason:
121# Glance registry service is deprecated for removal.
122#
123# More information can be found from the spec:
124# http://specs.openstack.org/openstack/glance-
125# specs/specs/queens/approved/glance/deprecate-registry.html
126#data_api = glance.db.sqlalchemy.api
127
128#
129# The default number of results to return for a request.
130#
131# Responses to certain API requests, like list images, may return
132# multiple items. The number of results returned can be explicitly
133# controlled by specifying the ``limit`` parameter in the API request.
134# However, if a ``limit`` parameter is not specified, this
135# configuration value will be used as the default number of results to
136# be returned for any API request.
137#
138# NOTES:
139# * The value of this configuration option may not be greater than
140# the value specified by ``api_limit_max``.
141# * Setting this to a very large value may slow down database
142# queries and increase response times. Setting this to a
143# very low value may result in poor user experience.
144#
145# Possible values:
146# * Any positive integer
147#
148# Related options:
149# * api_limit_max
150#
151# (integer value)
152# Minimum value: 1
153#limit_param_default = 25
154
155#
156# Maximum number of results that could be returned by a request.
157#
158# As described in the help text of ``limit_param_default``, some
159# requests may return multiple results. The number of results to be
160# returned are governed either by the ``limit`` parameter in the
161# request or the ``limit_param_default`` configuration option.
162# The value in either case, can't be greater than the absolute maximum
163# defined by this configuration option. Anything greater than this
164# value is trimmed down to the maximum value defined here.
165#
166# NOTE: Setting this to a very large value may slow down database
167# queries and increase response times. Setting this to a
168# very low value may result in poor user experience.
169#
170# Possible values:
171# * Any positive integer
172#
173# Related options:
174# * limit_param_default
175#
176# (integer value)
177# Minimum value: 1
178#api_limit_max = 1000
179
180#
181# Show direct image location when returning an image.
182#
183# This configuration option indicates whether to show the direct image
184# location when returning image details to the user. The direct image
185# location is where the image data is stored in backend storage. This
186# image location is shown under the image property ``direct_url``.
187#
188# When multiple image locations exist for an image, the best location
189# is displayed based on the location strategy indicated by the
190# configuration option ``location_strategy``.
191#
192# NOTES:
193# * Revealing image locations can present a GRAVE SECURITY RISK as
194# image locations can sometimes include credentials. Hence, this
195# is set to ``False`` by default. Set this to ``True`` with
196# EXTREME CAUTION and ONLY IF you know what you are doing!
197# * If an operator wishes to avoid showing any image location(s)
198# to the user, then both this option and
199# ``show_multiple_locations`` MUST be set to ``False``.
200#
201# Possible values:
202# * True
203# * False
204#
205# Related options:
206# * show_multiple_locations
207# * location_strategy
208#
209# (boolean value)
210#show_image_direct_url = false
211
212# DEPRECATED:
213# Show all image locations when returning an image.
214#
215# This configuration option indicates whether to show all the image
216# locations when returning image details to the user. When multiple
217# image locations exist for an image, the locations are ordered based
218# on the location strategy indicated by the configuration opt
219# ``location_strategy``. The image locations are shown under the
220# image property ``locations``.
221#
222# NOTES:
223# * Revealing image locations can present a GRAVE SECURITY RISK as
224# image locations can sometimes include credentials. Hence, this
225# is set to ``False`` by default. Set this to ``True`` with
226# EXTREME CAUTION and ONLY IF you know what you are doing!
227# * If an operator wishes to avoid showing any image location(s)
228# to the user, then both this option and
229# ``show_image_direct_url`` MUST be set to ``False``.
230#
231# Possible values:
232# * True
233# * False
234#
235# Related options:
236# * show_image_direct_url
237# * location_strategy
238#
239# (boolean value)
240# This option is deprecated for removal since Newton.
241# Its value may be silently ignored in the future.
242# Reason: This option will be removed in the Pike release or later
243# because the same functionality can be achieved with greater
244# granularity by using policies. Please see the Newton release notes
245# for more information.
246#show_multiple_locations = false
247
248#
249# Maximum size of image a user can upload in bytes.
250#
251# An image upload greater than the size mentioned here would result
252# in an image creation failure. This configuration option defaults to
253# 1099511627776 bytes (1 TiB).
254#
255# NOTES:
256# * This value should only be increased after careful
257# consideration and must be set less than or equal to
258# 8 EiB (9223372036854775808).
259# * This value must be set with careful consideration of the
260# backend storage capacity. Setting this to a very low value
261# may result in a large number of image failures. And, setting
262# this to a very large value may result in faster consumption
263# of storage. Hence, this must be set according to the nature of
264# images created and storage capacity available.
265#
266# Possible values:
267# * Any positive number less than or equal to 9223372036854775808
268#
269# (integer value)
270# Minimum value: 1
271# Maximum value: 9223372036854775808
272#image_size_cap = 1099511627776
273
274#
275# Maximum amount of image storage per tenant.
276#
277# This enforces an upper limit on the cumulative storage consumed by
278# all images
279# of a tenant across all stores. This is a per-tenant limit.
280#
281# The default unit for this configuration option is Bytes. However,
282# storage
283# units can be specified using case-sensitive literals ``B``, ``KB``,
284# ``MB``,
285# ``GB`` and ``TB`` representing Bytes, KiloBytes, MegaBytes,
286# GigaBytes and
287# TeraBytes respectively. Note that there should not be any space
288# between the
289# value and unit. Value ``0`` signifies no quota enforcement. Negative
290# values
291# are invalid and result in errors.
292#
293# Possible values:
294# * A string that is a valid concatenation of a non-negative
295# integer
296# representing the storage value and an optional string literal
297# representing storage units as mentioned above.
298#
299# Related options:
300# * None
301#
302# (string value)
303#user_storage_quota = 0
304
305#
306# Deploy the v1 OpenStack Images API.
307#
308# When this option is set to ``True``, Glance service will respond to
309# requests on registered endpoints conforming to the v1 OpenStack
310# Images API.
311#
312# NOTES:
313# * If this option is enabled, then ``enable_v1_registry`` must
314# also be set to ``True`` to enable mandatory usage of Registry
315# service with v1 API.
316#
317# * If this option is disabled, then the ``enable_v1_registry``
318# option, which is enabled by default, is also recommended
319# to be disabled.
320#
321# * This option is separate from ``enable_v2_api``, both v1 and v2
322# OpenStack Images API can be deployed independent of each
323# other.
324#
325# * If deploying only the v2 Images API, this option, which is
326# enabled by default, should be disabled.
327#
328# Possible values:
329# * True
330# * False
331#
332# Related options:
333# * enable_v1_registry
334# * enable_v2_api
335#
336# (boolean value)
337#enable_v1_api = true
338
339#
340# Deploy the v2 OpenStack Images API.
341#
342# When this option is set to ``True``, Glance service will respond
343# to requests on registered endpoints conforming to the v2 OpenStack
344# Images API.
345#
346# NOTES:
347# * If this option is disabled, then the ``enable_v2_registry``
348# option, which is enabled by default, is also recommended
349# to be disabled.
350#
351# * This option is separate from ``enable_v1_api``, both v1 and v2
352# OpenStack Images API can be deployed independent of each
353# other.
354#
355# * If deploying only the v1 Images API, this option, which is
356# enabled by default, should be disabled.
357#
358# Possible values:
359# * True
360# * False
361#
362# Related options:
363# * enable_v2_registry
364# * enable_v1_api
365#
366# (boolean value)
367#enable_v2_api = true
368
369#
370# Deploy the v1 API Registry service.
371#
372# When this option is set to ``True``, the Registry service
373# will be enabled in Glance for v1 API requests.
374#
375# NOTES:
376# * Use of Registry is mandatory in v1 API, so this option must
377# be set to ``True`` if the ``enable_v1_api`` option is enabled.
378#
379# * If deploying only the v2 OpenStack Images API, this option,
380# which is enabled by default, should be disabled.
381#
382# Possible values:
383# * True
384# * False
385#
386# Related options:
387# * enable_v1_api
388#
389# (boolean value)
390#enable_v1_registry = true
391
392# DEPRECATED:
393# Deploy the v2 API Registry service.
394#
395# When this option is set to ``True``, the Registry service
396# will be enabled in Glance for v2 API requests.
397#
398# NOTES:
399# * Use of Registry is optional in v2 API, so this option
400# must only be enabled if both ``enable_v2_api`` is set to
401# ``True`` and the ``data_api`` option is set to
402# ``glance.db.registry.api``.
403#
404# * If deploying only the v1 OpenStack Images API, this option,
405# which is enabled by default, should be disabled.
406#
407# Possible values:
408# * True
409# * False
410#
411# Related options:
412# * enable_v2_api
413# * data_api
414#
415# (boolean value)
416# This option is deprecated for removal since Queens.
417# Its value may be silently ignored in the future.
418# Reason:
419# Glance registry service is deprecated for removal.
420#
421# More information can be found from the spec:
422# http://specs.openstack.org/openstack/glance-
423# specs/specs/queens/approved/glance/deprecate-registry.html
424#enable_v2_registry = true
425
426#
427# Host address of the pydev server.
428#
429# Provide a string value representing the hostname or IP of the
430# pydev server to use for debugging. The pydev server listens for
431# debug connections on this address, facilitating remote debugging
432# in Glance.
433#
434# Possible values:
435# * Valid hostname
436# * Valid IP address
437#
438# Related options:
439# * None
440#
441# (unknown value)
442#pydev_worker_debug_host = localhost
443
444#
445# Port number that the pydev server will listen on.
446#
447# Provide a port number to bind the pydev server to. The pydev
448# process accepts debug connections on this port and facilitates
449# remote debugging in Glance.
450#
451# Possible values:
452# * A valid port number
453#
454# Related options:
455# * None
456#
457# (port value)
458# Minimum value: 0
459# Maximum value: 65535
460#pydev_worker_debug_port = 5678
461
462#
463# AES key for encrypting store location metadata.
464#
465# Provide a string value representing the AES cipher to use for
466# encrypting Glance store metadata.
467#
468# NOTE: The AES key to use must be set to a random string of length
469# 16, 24 or 32 bytes.
470#
471# Possible values:
472# * String value representing a valid AES key
473#
474# Related options:
475# * None
476#
477# (string value)
478#metadata_encryption_key = <None>
479
480#
481# Digest algorithm to use for digital signature.
482#
483# Provide a string value representing the digest algorithm to
484# use for generating digital signatures. By default, ``sha256``
485# is used.
486#
487# To get a list of the available algorithms supported by the version
488# of OpenSSL on your platform, run the command:
489# ``openssl list-message-digest-algorithms``.
490# Examples are 'sha1', 'sha256', and 'sha512'.
491#
492# NOTE: ``digest_algorithm`` is not related to Glance's image signing
493# and verification. It is only used to sign the universally unique
494# identifier (UUID) as a part of the certificate file and key file
495# validation.
496#
497# Possible values:
498# * An OpenSSL message digest algorithm identifier
499#
500# Relation options:
501# * None
502#
503# (string value)
504#digest_algorithm = sha256
505
506#
507# The URL provides location where the temporary data will be stored
508#
509# This option is for Glance internal use only. Glance will save the
510# image data uploaded by the user to 'staging' endpoint during the
511# image import process.
512#
513# This option does not change the 'staging' API endpoint by any means.
514#
515# NOTE: It is discouraged to use same path as [task]/work_dir
516#
517# NOTE: 'file://<absolute-directory-path>' is the only option
518# api_image_import flow will support for now.
519#
520# NOTE: The staging path must be on shared filesystem available to all
521# Glance API nodes.
522#
523# Possible values:
524# * String starting with 'file://' followed by absolute FS path
525#
526# Related options:
527# * [task]/work_dir
528# * [DEFAULT]/enable_image_import (*deprecated*)
529#
530# (string value)
531#node_staging_uri = file:///tmp/staging/
532
533# DEPRECATED:
534# Enables the Image Import workflow introduced in Pike
535#
536# As '[DEFAULT]/node_staging_uri' is required for the Image
537# Import, it's disabled per default in Pike, enabled per
538# default in Queens and removed in Rocky. This allows Glance to
539# operate with previous version configs upon upgrade.
540#
541# Setting this option to False will disable the endpoints related
542# to Image Import Refactoring work.
543#
544# Related options:
545# * [DEFAULT]/node_staging_uri (boolean value)
546# This option is deprecated for removal since Pike.
547# Its value may be silently ignored in the future.
548# Reason:
549# This option is deprecated for removal in Rocky.
550#
551# It was introduced to make sure that the API is not enabled
552# before the '[DEFAULT]/node_staging_uri' is defined and is
553# long term redundant.
554#enable_image_import = true
555
556#
557# List of enabled Image Import Methods
558#
559# Both 'glance-direct' and 'web-download' are enabled by default.
560#
561# Related options:
562# * [DEFAULT]/node_staging_uri
563# * [DEFAULT]/enable_image_import (list value)
564#enabled_import_methods = glance-direct,web-download
565
566#
567# The relative path to sqlite file database that will be used for
568# image cache
569# management.
570#
571# This is a relative path to the sqlite file database that tracks the
572# age and
573# usage statistics of image cache. The path is relative to image cache
574# base
575# directory, specified by the configuration option
576# ``image_cache_dir``.
577#
578# This is a lightweight database with just one table.
579#
580# Possible values:
581# * A valid relative path to sqlite file database
582#
583# Related options:
584# * ``image_cache_dir``
585#
586# (string value)
587#image_cache_sqlite_db = cache.db
588
589#
590# The driver to use for image cache management.
591#
592# This configuration option provides the flexibility to choose between
593# the
594# different image-cache drivers available. An image-cache driver is
595# responsible
596# for providing the essential functions of image-cache like write
597# images to/read
598# images from cache, track age and usage of cached images, provide a
599# list of
600# cached images, fetch size of the cache, queue images for caching and
601# clean up
602# the cache, etc.
603#
604# The essential functions of a driver are defined in the base class
605# ``glance.image_cache.drivers.base.Driver``. All image-cache drivers
606# (existing
607# and prospective) must implement this interface. Currently available
608# drivers
609# are ``sqlite`` and ``xattr``. These drivers primarily differ in the
610# way they
611# store the information about cached images:
612# * The ``sqlite`` driver uses a sqlite database (which sits on
613# every glance
614# node locally) to track the usage of cached images.
615# * The ``xattr`` driver uses the extended attributes of files to
616# store this
617# information. It also requires a filesystem that sets ``atime``
618# on the files
619# when accessed.
620#
621# Possible values:
622# * sqlite
623# * xattr
624#
625# Related options:
626# * None
627#
628# (string value)
629# Possible values:
630# sqlite - <No description provided>
631# xattr - <No description provided>
632#image_cache_driver = sqlite
633
634#
635# The upper limit on cache size, in bytes, after which the cache-
636# pruner cleans
637# up the image cache.
638#
639# NOTE: This is just a threshold for cache-pruner to act upon. It is
640# NOT a
641# hard limit beyond which the image cache would never grow. In fact,
642# depending
643# on how often the cache-pruner runs and how quickly the cache fills,
644# the image
645# cache can far exceed the size specified here very easily. Hence,
646# care must be
647# taken to appropriately schedule the cache-pruner and in setting this
648# limit.
649#
650# Glance caches an image when it is downloaded. Consequently, the size
651# of the
652# image cache grows over time as the number of downloads increases. To
653# keep the
654# cache size from becoming unmanageable, it is recommended to run the
655# cache-pruner as a periodic task. When the cache pruner is kicked
656# off, it
657# compares the current size of image cache and triggers a cleanup if
658# the image
659# cache grew beyond the size specified here. After the cleanup, the
660# size of
661# cache is less than or equal to size specified here.
662#
663# Possible values:
664# * Any non-negative integer
665#
666# Related options:
667# * None
668#
669# (integer value)
670# Minimum value: 0
671#image_cache_max_size = 10737418240
Oleh Hryhorov6de49c92018-05-21 12:53:59 +0000672
sgarbuz2d39f412018-08-27 10:44:31 +0300673image_cache_max_size = {{ server.image_cache.max_size }}
674image_cache_stall_time = {{ server.image_cache.stall_time }}
675image_cache_dir = {{ server.image_cache.directory }}
Oleh Hryhorov6de49c92018-05-21 12:53:59 +0000676
677{% if server.identity.region is defined %}
678os_region_name = {{ server.identity.region }}
679{% endif %}
680
681#
682# The amount of time, in seconds, an incomplete image remains in the
683# cache.
684#
685# Incomplete images are images for which download is in progress.
686# Please see the
687# description of configuration option ``image_cache_dir`` for more
688# detail.
689# Sometimes, due to various reasons, it is possible the download may
690# hang and
691# the incompletely downloaded image remains in the ``incomplete``
692# directory.
693# This configuration option sets a time limit on how long the
694# incomplete images
695# should remain in the ``incomplete`` directory before they are
696# cleaned up.
697# Once an incomplete image spends more time than is specified here,
698# it'll be
699# removed by cache-cleaner on its next run.
700#
701# It is recommended to run cache-cleaner as a periodic task on the
702# Glance API
703# nodes to keep the incomplete images from occupying disk space.
704#
705# Possible values:
706# * Any non-negative integer
707#
708# Related options:
709# * None
710#
711# (integer value)
712# Minimum value: 0
713#image_cache_stall_time = 86400
714
715#
716# Base directory for image cache.
717#
718# This is the location where image data is cached and served out of.
719# All cached
720# images are stored directly under this directory. This directory also
721# contains
722# three subdirectories, namely, ``incomplete``, ``invalid`` and
723# ``queue``.
724#
725# The ``incomplete`` subdirectory is the staging area for downloading
726# images. An
727# image is first downloaded to this directory. When the image download
728# is
729# successful it is moved to the base directory. However, if the
730# download fails,
731# the partially downloaded image file is moved to the ``invalid``
732# subdirectory.
733#
734# The ``queue``subdirectory is used for queuing images for download.
735# This is
736# used primarily by the cache-prefetcher, which can be scheduled as a
737# periodic
738# task like cache-pruner and cache-cleaner, to cache images ahead of
739# their usage.
740# Upon receiving the request to cache an image, Glance touches a file
741# in the
742# ``queue`` directory with the image id as the file name. The cache-
743# prefetcher,
744# when running, polls for the files in ``queue`` directory and starts
745# downloading them in the order they were created. When the download
746# is
747# successful, the zero-sized file is deleted from the ``queue``
748# directory.
749# If the download fails, the zero-sized file remains and it'll be
750# retried the
751# next time cache-prefetcher runs.
752#
753# Possible values:
754# * A valid path
755#
756# Related options:
757# * ``image_cache_sqlite_db``
758#
759# (string value)
760#image_cache_dir = <None>
761
762# DEPRECATED:
763# Address the registry server is hosted on.
764#
765# Possible values:
766# * A valid IP or hostname
767#
768# Related options:
769# * None
770#
771# (unknown value)
772# This option is deprecated for removal since Queens.
773# Its value may be silently ignored in the future.
774# Reason:
775# Glance registry service is deprecated for removal.
776#
777# More information can be found from the spec:
778# http://specs.openstack.org/openstack/glance-
779# specs/specs/queens/approved/glance/deprecate-registry.html
780#registry_host = {{ server.registry.host }}
781
782# DEPRECATED:
783# Port the registry server is listening on.
784#
785# Possible values:
786# * A valid port number
787#
788# Related options:
789# * None
790#
791# (port value)
792# Minimum value: 0
793# Maximum value: 65535
794# This option is deprecated for removal since Queens.
795# Its value may be silently ignored in the future.
796# Reason:
797# Glance registry service is deprecated for removal.
798#
799# More information can be found from the spec:
800# http://specs.openstack.org/openstack/glance-
801# specs/specs/queens/approved/glance/deprecate-registry.html
802#registry_port = {{ server.registry.port }}
803
804# DEPRECATED:
805# Protocol to use for communication with the registry server.
806#
807# Provide a string value representing the protocol to use for
808# communication with the registry server. By default, this option is
809# set to ``http`` and the connection is not secure.
810#
811# This option can be set to ``https`` to establish a secure connection
812# to the registry server. In this case, provide a key to use for the
813# SSL connection using the ``registry_client_key_file`` option. Also
814# include the CA file and cert file using the options
815# ``registry_client_ca_file`` and ``registry_client_cert_file``
816# respectively.
817#
818# Possible values:
819# * http
820# * https
821#
822# Related options:
823# * registry_client_key_file
824# * registry_client_cert_file
825# * registry_client_ca_file
826#
827# (string value)
828# Possible values:
829# http - <No description provided>
830# https - <No description provided>
831# This option is deprecated for removal since Queens.
832# Its value may be silently ignored in the future.
833# Reason:
834# Glance registry service is deprecated for removal.
835#
836# More information can be found from the spec:
837# http://specs.openstack.org/openstack/glance-
838# specs/specs/queens/approved/glance/deprecate-registry.html
839#registry_client_protocol = http
840
841# DEPRECATED:
842# Absolute path to the private key file.
843#
844# Provide a string value representing a valid absolute path to the
845# private key file to use for establishing a secure connection to
846# the registry server.
847#
848# NOTE: This option must be set if ``registry_client_protocol`` is
849# set to ``https``. Alternatively, the GLANCE_CLIENT_KEY_FILE
850# environment variable may be set to a filepath of the key file.
851#
852# Possible values:
853# * String value representing a valid absolute path to the key
854# file.
855#
856# Related options:
857# * registry_client_protocol
858#
859# (string value)
860# This option is deprecated for removal since Queens.
861# Its value may be silently ignored in the future.
862# Reason:
863# Glance registry service is deprecated for removal.
864#
865# More information can be found from the spec:
866# http://specs.openstack.org/openstack/glance-
867# specs/specs/queens/approved/glance/deprecate-registry.html
868#registry_client_key_file = /etc/ssl/key/key-file.pem
869
870# DEPRECATED:
871# Absolute path to the certificate file.
872#
873# Provide a string value representing a valid absolute path to the
874# certificate file to use for establishing a secure connection to
875# the registry server.
876#
877# NOTE: This option must be set if ``registry_client_protocol`` is
878# set to ``https``. Alternatively, the GLANCE_CLIENT_CERT_FILE
879# environment variable may be set to a filepath of the certificate
880# file.
881#
882# Possible values:
883# * String value representing a valid absolute path to the
884# certificate file.
885#
886# Related options:
887# * registry_client_protocol
888#
889# (string value)
890# This option is deprecated for removal since Queens.
891# Its value may be silently ignored in the future.
892# Reason:
893# Glance registry service is deprecated for removal.
894#
895# More information can be found from the spec:
896# http://specs.openstack.org/openstack/glance-
897# specs/specs/queens/approved/glance/deprecate-registry.html
898#registry_client_cert_file = /etc/ssl/certs/file.crt
899
900# DEPRECATED:
901# Absolute path to the Certificate Authority file.
902#
903# Provide a string value representing a valid absolute path to the
904# certificate authority file to use for establishing a secure
905# connection to the registry server.
906#
907# NOTE: This option must be set if ``registry_client_protocol`` is
908# set to ``https``. Alternatively, the GLANCE_CLIENT_CA_FILE
909# environment variable may be set to a filepath of the CA file.
910# This option is ignored if the ``registry_client_insecure`` option
911# is set to ``True``.
912#
913# Possible values:
914# * String value representing a valid absolute path to the CA
915# file.
916#
917# Related options:
918# * registry_client_protocol
919# * registry_client_insecure
920#
921# (string value)
922# This option is deprecated for removal since Queens.
923# Its value may be silently ignored in the future.
924# Reason:
925# Glance registry service is deprecated for removal.
926#
927# More information can be found from the spec:
928# http://specs.openstack.org/openstack/glance-
929# specs/specs/queens/approved/glance/deprecate-registry.html
930#registry_client_ca_file = /etc/ssl/cafile/file.ca
931
932# DEPRECATED:
933# Set verification of the registry server certificate.
934#
935# Provide a boolean value to determine whether or not to validate
936# SSL connections to the registry server. By default, this option
937# is set to ``False`` and the SSL connections are validated.
938#
939# If set to ``True``, the connection to the registry server is not
940# validated via a certifying authority and the
941# ``registry_client_ca_file`` option is ignored. This is the
942# registry's equivalent of specifying --insecure on the command line
943# using glanceclient for the API.
944#
945# Possible values:
946# * True
947# * False
948#
949# Related options:
950# * registry_client_protocol
951# * registry_client_ca_file
952#
953# (boolean value)
954# This option is deprecated for removal since Queens.
955# Its value may be silently ignored in the future.
956# Reason:
957# Glance registry service is deprecated for removal.
958#
959# More information can be found from the spec:
960# http://specs.openstack.org/openstack/glance-
961# specs/specs/queens/approved/glance/deprecate-registry.html
962#registry_client_insecure = false
963
964# DEPRECATED:
965# Timeout value for registry requests.
966#
967# Provide an integer value representing the period of time in seconds
968# that the API server will wait for a registry request to complete.
969# The default value is 600 seconds.
970#
971# A value of 0 implies that a request will never timeout.
972#
973# Possible values:
974# * Zero
975# * Positive integer
976#
977# Related options:
978# * None
979#
980# (integer value)
981# Minimum value: 0
982# This option is deprecated for removal since Queens.
983# Its value may be silently ignored in the future.
984# Reason:
985# Glance registry service is deprecated for removal.
986#
987# More information can be found from the spec:
988# http://specs.openstack.org/openstack/glance-
989# specs/specs/queens/approved/glance/deprecate-registry.html
990#registry_client_timeout = 600
991
992# DEPRECATED: Whether to pass through the user token when making
993# requests to the registry. To prevent failures with token expiration
994# during big files upload, it is recommended to set this parameter to
995# False.If "use_user_token" is not in effect, then admin credentials
996# can be specified. (boolean value)
997# This option is deprecated for removal.
998# Its value may be silently ignored in the future.
999# Reason: This option was considered harmful and has been deprecated
1000# in M release. It will be removed in O release. For more information
1001# read OSSN-0060. Related functionality with uploading big images has
1002# been implemented with Keystone trusts support.
1003#use_user_token = true
1004
1005# DEPRECATED: The administrators user name. If "use_user_token" is not
1006# in effect, then admin credentials can be specified. (string value)
1007# This option is deprecated for removal.
1008# Its value may be silently ignored in the future.
1009# Reason: This option was considered harmful and has been deprecated
1010# in M release. It will be removed in O release. For more information
1011# read OSSN-0060. Related functionality with uploading big images has
1012# been implemented with Keystone trusts support.
1013#admin_user = <None>
1014
1015# DEPRECATED: The administrators password. If "use_user_token" is not
1016# in effect, then admin credentials can be specified. (string value)
1017# This option is deprecated for removal.
1018# Its value may be silently ignored in the future.
1019# Reason: This option was considered harmful and has been deprecated
1020# in M release. It will be removed in O release. For more information
1021# read OSSN-0060. Related functionality with uploading big images has
1022# been implemented with Keystone trusts support.
1023#admin_password = <None>
1024
1025# DEPRECATED: The tenant name of the administrative user. If
1026# "use_user_token" is not in effect, then admin tenant name can be
1027# specified. (string value)
1028# This option is deprecated for removal.
1029# Its value may be silently ignored in the future.
1030# Reason: This option was considered harmful and has been deprecated
1031# in M release. It will be removed in O release. For more information
1032# read OSSN-0060. Related functionality with uploading big images has
1033# been implemented with Keystone trusts support.
1034#admin_tenant_name = <None>
1035
1036# DEPRECATED: The URL to the keystone service. If "use_user_token" is
1037# not in effect and using keystone auth, then URL of keystone can be
1038# specified. (string value)
1039# This option is deprecated for removal.
1040# Its value may be silently ignored in the future.
1041# Reason: This option was considered harmful and has been deprecated
1042# in M release. It will be removed in O release. For more information
1043# read OSSN-0060. Related functionality with uploading big images has
1044# been implemented with Keystone trusts support.
1045#auth_url = <None>
1046
1047# DEPRECATED: The strategy to use for authentication. If
1048# "use_user_token" is not in effect, then auth strategy can be
1049# specified. (string value)
1050# This option is deprecated for removal.
1051# Its value may be silently ignored in the future.
1052# Reason: This option was considered harmful and has been deprecated
1053# in M release. It will be removed in O release. For more information
1054# read OSSN-0060. Related functionality with uploading big images has
1055# been implemented with Keystone trusts support.
1056#auth_strategy = noauth
1057
1058# DEPRECATED: The region for the authentication service. If
1059# "use_user_token" is not in effect and using keystone auth, then
1060# region name can be specified. (string value)
1061# This option is deprecated for removal.
1062# Its value may be silently ignored in the future.
1063# Reason: This option was considered harmful and has been deprecated
1064# in M release. It will be removed in O release. For more information
1065# read OSSN-0060. Related functionality with uploading big images has
1066# been implemented with Keystone trusts support.
1067#auth_region = <None>
1068
1069{%- if server.logging is defined %}
1070{%- set _data = server.logging %}
1071{%- do _data.update({'log_file': '/var/log/glance/image-cache.log'}) %}
1072{%- include "oslo_templates/files/queens/oslo/_log.conf" %}
1073{%- endif %}
1074
1075[glance_store]
1076
1077#
1078# From glance.store
1079#
1080
1081#
1082# List of enabled Glance stores.
1083#
1084# Register the storage backends to use for storing disk images
1085# as a comma separated list. The default stores enabled for
1086# storing disk images with Glance are ``file`` and ``http``.
1087#
1088# Possible values:
1089# * A comma separated list that could include:
1090# * file
1091# * http
1092# * swift
1093# * rbd
1094# * sheepdog
1095# * cinder
1096# * vmware
1097#
1098# Related Options:
1099# * default_store
1100#
1101# (list value)
1102#stores = file,http
1103
1104#
1105# The default scheme to use for storing images.
1106#
1107# Provide a string value representing the default scheme to use for
1108# storing images. If not set, Glance uses ``file`` as the default
1109# scheme to store images with the ``file`` store.
1110#
1111# NOTE: The value given for this configuration option must be a valid
1112# scheme for a store registered with the ``stores`` configuration
1113# option.
1114#
1115# Possible values:
1116# * file
1117# * filesystem
1118# * http
1119# * https
1120# * swift
1121# * swift+http
1122# * swift+https
1123# * swift+config
1124# * rbd
1125# * sheepdog
1126# * cinder
1127# * vsphere
1128#
1129# Related Options:
1130# * stores
1131#
1132# (string value)
1133# Possible values:
1134# file - <No description provided>
1135# filesystem - <No description provided>
1136# http - <No description provided>
1137# https - <No description provided>
1138# swift - <No description provided>
1139# swift+http - <No description provided>
1140# swift+https - <No description provided>
1141# swift+config - <No description provided>
1142# rbd - <No description provided>
1143# sheepdog - <No description provided>
1144# cinder - <No description provided>
1145# vsphere - <No description provided>
1146#default_store = file
1147
1148#
1149# Minimum interval in seconds to execute updating dynamic storage
1150# capabilities based on current backend status.
1151#
1152# Provide an integer value representing time in seconds to set the
1153# minimum interval before an update of dynamic storage capabilities
1154# for a storage backend can be attempted. Setting
1155# ``store_capabilities_update_min_interval`` does not mean updates
1156# occur periodically based on the set interval. Rather, the update
1157# is performed at the elapse of this interval set, if an operation
1158# of the store is triggered.
1159#
1160# By default, this option is set to zero and is disabled. Provide an
1161# integer value greater than zero to enable this option.
1162#
1163# NOTE: For more information on store capabilities and their updates,
1164# please visit: https://specs.openstack.org/openstack/glance-
1165# specs/specs/kilo/store-capabilities.html
1166#
1167# For more information on setting up a particular store in your
1168# deployment and help with the usage of this feature, please contact
1169# the storage driver maintainers listed here:
1170# http://docs.openstack.org/developer/glance_store/drivers/index.html
1171#
1172# Possible values:
1173# * Zero
1174# * Positive integer
1175#
1176# Related Options:
1177# * None
1178#
1179# (integer value)
1180# Minimum value: 0
1181#store_capabilities_update_min_interval = 0
1182
1183#
1184# Information to match when looking for cinder in the service catalog.
1185#
1186# When the ``cinder_endpoint_template`` is not set and any of
1187# ``cinder_store_auth_address``, ``cinder_store_user_name``,
1188# ``cinder_store_project_name``, ``cinder_store_password`` is not set,
1189# cinder store uses this information to lookup cinder endpoint from
1190# the service
1191# catalog in the current context. ``cinder_os_region_name``, if set,
1192# is taken
1193# into consideration to fetch the appropriate endpoint.
1194#
1195# The service catalog can be listed by the ``openstack catalog list``
1196# command.
1197#
1198# Possible values:
1199# * A string of of the following form:
1200# ``<service_type>:<service_name>:<interface>``
1201# At least ``service_type`` and ``interface`` should be
1202# specified.
1203# ``service_name`` can be omitted.
1204#
1205# Related options:
1206# * cinder_os_region_name
1207# * cinder_endpoint_template
1208# * cinder_store_auth_address
1209# * cinder_store_user_name
1210# * cinder_store_project_name
1211# * cinder_store_password
1212#
1213# (string value)
1214#cinder_catalog_info = volumev2::publicURL
1215
1216#
1217# Override service catalog lookup with template for cinder endpoint.
1218#
1219# When this option is set, this value is used to generate cinder
1220# endpoint,
1221# instead of looking up from the service catalog.
1222# This value is ignored if ``cinder_store_auth_address``,
1223# ``cinder_store_user_name``, ``cinder_store_project_name``, and
1224# ``cinder_store_password`` are specified.
1225#
1226# If this configuration option is set, ``cinder_catalog_info`` will be
1227# ignored.
1228#
1229# Possible values:
1230# * URL template string for cinder endpoint, where ``%%(tenant)s``
1231# is
1232# replaced with the current tenant (project) name.
1233# For example:
1234# ``http://cinder.openstack.example.org/v2/%%(tenant)s``
1235#
1236# Related options:
1237# * cinder_store_auth_address
1238# * cinder_store_user_name
1239# * cinder_store_project_name
1240# * cinder_store_password
1241# * cinder_catalog_info
1242#
1243# (string value)
1244#cinder_endpoint_template = <None>
1245
1246#
1247# Region name to lookup cinder service from the service catalog.
1248#
1249# This is used only when ``cinder_catalog_info`` is used for
1250# determining the
1251# endpoint. If set, the lookup for cinder endpoint by this node is
1252# filtered to
1253# the specified region. It is useful when multiple regions are listed
1254# in the
1255# catalog. If this is not set, the endpoint is looked up from every
1256# region.
1257#
1258# Possible values:
1259# * A string that is a valid region name.
1260#
1261# Related options:
1262# * cinder_catalog_info
1263#
1264# (string value)
1265# Deprecated group/name - [glance_store]/os_region_name
1266#cinder_os_region_name = <None>
1267
1268#
1269# Location of a CA certificates file used for cinder client requests.
1270#
1271# The specified CA certificates file, if set, is used to verify cinder
1272# connections via HTTPS endpoint. If the endpoint is HTTP, this value
1273# is ignored.
1274# ``cinder_api_insecure`` must be set to ``True`` to enable the
1275# verification.
1276#
1277# Possible values:
1278# * Path to a ca certificates file
1279#
1280# Related options:
1281# * cinder_api_insecure
1282#
1283# (string value)
1284#cinder_ca_certificates_file = <None>
1285
1286#
1287# Number of cinderclient retries on failed http calls.
1288#
1289# When a call failed by any errors, cinderclient will retry the call
1290# up to the
1291# specified times after sleeping a few seconds.
1292#
1293# Possible values:
1294# * A positive integer
1295#
1296# Related options:
1297# * None
1298#
1299# (integer value)
1300# Minimum value: 0
1301#cinder_http_retries = 3
1302
1303#
1304# Time period, in seconds, to wait for a cinder volume transition to
1305# complete.
1306#
1307# When the cinder volume is created, deleted, or attached to the
1308# glance node to
1309# read/write the volume data, the volume's state is changed. For
1310# example, the
1311# newly created volume status changes from ``creating`` to
1312# ``available`` after
1313# the creation process is completed. This specifies the maximum time
1314# to wait for
1315# the status change. If a timeout occurs while waiting, or the status
1316# is changed
1317# to an unexpected value (e.g. `error``), the image creation fails.
1318#
1319# Possible values:
1320# * A positive integer
1321#
1322# Related options:
1323# * None
1324#
1325# (integer value)
1326# Minimum value: 0
1327#cinder_state_transition_timeout = 300
1328
1329#
1330# Allow to perform insecure SSL requests to cinder.
1331#
1332# If this option is set to True, HTTPS endpoint connection is verified
1333# using the
1334# CA certificates file specified by ``cinder_ca_certificates_file``
1335# option.
1336#
1337# Possible values:
1338# * True
1339# * False
1340#
1341# Related options:
1342# * cinder_ca_certificates_file
1343#
1344# (boolean value)
1345#cinder_api_insecure = false
1346
1347#
1348# The address where the cinder authentication service is listening.
1349#
1350# When all of ``cinder_store_auth_address``,
1351# ``cinder_store_user_name``,
1352# ``cinder_store_project_name``, and ``cinder_store_password`` options
1353# are
1354# specified, the specified values are always used for the
1355# authentication.
1356# This is useful to hide the image volumes from users by storing them
1357# in a
1358# project/tenant specific to the image service. It also enables users
1359# to share
1360# the image volume among other projects under the control of glance's
1361# ACL.
1362#
1363# If either of these options are not set, the cinder endpoint is
1364# looked up
1365# from the service catalog, and current context's user and project are
1366# used.
1367#
1368# Possible values:
1369# * A valid authentication service address, for example:
1370# ``http://openstack.example.org/identity/v2.0``
1371#
1372# Related options:
1373# * cinder_store_user_name
1374# * cinder_store_password
1375# * cinder_store_project_name
1376#
1377# (string value)
1378#cinder_store_auth_address = <None>
1379
1380#
1381# User name to authenticate against cinder.
1382#
1383# This must be used with all the following related options. If any of
1384# these are
1385# not specified, the user of the current context is used.
1386#
1387# Possible values:
1388# * A valid user name
1389#
1390# Related options:
1391# * cinder_store_auth_address
1392# * cinder_store_password
1393# * cinder_store_project_name
1394#
1395# (string value)
1396#cinder_store_user_name = <None>
1397
1398#
1399# Password for the user authenticating against cinder.
1400#
1401# This must be used with all the following related options. If any of
1402# these are
1403# not specified, the user of the current context is used.
1404#
1405# Possible values:
1406# * A valid password for the user specified by
1407# ``cinder_store_user_name``
1408#
1409# Related options:
1410# * cinder_store_auth_address
1411# * cinder_store_user_name
1412# * cinder_store_project_name
1413#
1414# (string value)
1415#cinder_store_password = <None>
1416
1417#
1418# Project name where the image volume is stored in cinder.
1419#
1420# If this configuration option is not set, the project in current
1421# context is
1422# used.
1423#
1424# This must be used with all the following related options. If any of
1425# these are
1426# not specified, the project of the current context is used.
1427#
1428# Possible values:
1429# * A valid project name
1430#
1431# Related options:
1432# * ``cinder_store_auth_address``
1433# * ``cinder_store_user_name``
1434# * ``cinder_store_password``
1435#
1436# (string value)
1437#cinder_store_project_name = <None>
1438
1439#
1440# Path to the rootwrap configuration file to use for running commands
1441# as root.
1442#
1443# The cinder store requires root privileges to operate the image
1444# volumes (for
1445# connecting to iSCSI/FC volumes and reading/writing the volume data,
1446# etc.).
1447# The configuration file should allow the required commands by cinder
1448# store and
1449# os-brick library.
1450#
1451# Possible values:
1452# * Path to the rootwrap config file
1453#
1454# Related options:
1455# * None
1456#
1457# (string value)
1458#rootwrap_config = /etc/glance/rootwrap.conf
1459
1460#
1461# Volume type that will be used for volume creation in cinder.
1462#
1463# Some cinder backends can have several volume types to optimize
1464# storage usage.
1465# Adding this option allows an operator to choose a specific volume
1466# type
1467# in cinder that can be optimized for images.
1468#
1469# If this is not set, then the default volume type specified in the
1470# cinder
1471# configuration will be used for volume creation.
1472#
1473# Possible values:
1474# * A valid volume type from cinder
1475#
1476# Related options:
1477# * None
1478#
1479# (string value)
1480#cinder_volume_type = <None>
1481
1482#
1483# Directory to which the filesystem backend store writes images.
1484#
1485# Upon start up, Glance creates the directory if it doesn't already
1486# exist and verifies write access to the user under which
1487# ``glance-api`` runs. If the write access isn't available, a
1488# ``BadStoreConfiguration`` exception is raised and the filesystem
1489# store may not be available for adding new images.
1490#
1491# NOTE: This directory is used only when filesystem store is used as a
1492# storage backend. Either ``filesystem_store_datadir`` or
1493# ``filesystem_store_datadirs`` option must be specified in
1494# ``glance-api.conf``. If both options are specified, a
1495# ``BadStoreConfiguration`` will be raised and the filesystem store
1496# may not be available for adding new images.
1497#
1498# Possible values:
1499# * A valid path to a directory
1500#
1501# Related options:
1502# * ``filesystem_store_datadirs``
1503# * ``filesystem_store_file_perm``
1504#
1505# (string value)
1506#filesystem_store_datadir = /var/lib/glance/images
1507
1508#
1509# List of directories and their priorities to which the filesystem
1510# backend store writes images.
1511#
1512# The filesystem store can be configured to store images in multiple
1513# directories as opposed to using a single directory specified by the
1514# ``filesystem_store_datadir`` configuration option. When using
1515# multiple directories, each directory can be given an optional
1516# priority to specify the preference order in which they should
1517# be used. Priority is an integer that is concatenated to the
1518# directory path with a colon where a higher value indicates higher
1519# priority. When two directories have the same priority, the directory
1520# with most free space is used. When no priority is specified, it
1521# defaults to zero.
1522#
1523# More information on configuring filesystem store with multiple store
1524# directories can be found at
1525# http://docs.openstack.org/developer/glance/configuring.html
1526#
1527# NOTE: This directory is used only when filesystem store is used as a
1528# storage backend. Either ``filesystem_store_datadir`` or
1529# ``filesystem_store_datadirs`` option must be specified in
1530# ``glance-api.conf``. If both options are specified, a
1531# ``BadStoreConfiguration`` will be raised and the filesystem store
1532# may not be available for adding new images.
1533#
1534# Possible values:
1535# * List of strings of the following form:
1536# * ``<a valid directory path>:<optional integer priority>``
1537#
1538# Related options:
1539# * ``filesystem_store_datadir``
1540# * ``filesystem_store_file_perm``
1541#
1542# (multi valued)
1543#filesystem_store_datadirs =
1544
1545#
1546# Filesystem store metadata file.
1547#
1548# The path to a file which contains the metadata to be returned with
1549# any location associated with the filesystem store. The file must
1550# contain a valid JSON object. The object should contain the keys
1551# ``id`` and ``mountpoint``. The value for both keys should be a
1552# string.
1553#
1554# Possible values:
1555# * A valid path to the store metadata file
1556#
1557# Related options:
1558# * None
1559#
1560# (string value)
1561#filesystem_store_metadata_file = <None>
1562{%- if server.filesystem_store_metadata_file is defined %}
1563filesystem_store_metadata_file = {{ server.get('filesystem_store_metadata_file', '/etc/glance/filesystem_store_metadata.json') }}
1564{%- endif %}
1565
1566#
1567# File access permissions for the image files.
1568#
1569# Set the intended file access permissions for image data. This
1570# provides
1571# a way to enable other services, e.g. Nova, to consume images
1572# directly
1573# from the filesystem store. The users running the services that are
1574# intended to be given access to could be made a member of the group
1575# that owns the files created. Assigning a value less then or equal to
1576# zero for this configuration option signifies that no changes be made
1577# to the default permissions. This value will be decoded as an octal
1578# digit.
1579#
1580# For more information, please refer the documentation at
1581# http://docs.openstack.org/developer/glance/configuring.html
1582#
1583# Possible values:
1584# * A valid file access permission
1585# * Zero
1586# * Any negative integer
1587#
1588# Related options:
1589# * None
1590#
1591# (integer value)
1592#filesystem_store_file_perm = 0
1593
1594#
1595# Path to the CA bundle file.
1596#
1597# This configuration option enables the operator to use a custom
1598# Certificate Authority file to verify the remote server certificate.
1599# If
1600# this option is set, the ``https_insecure`` option will be ignored
1601# and
1602# the CA file specified will be used to authenticate the server
1603# certificate and establish a secure connection to the server.
1604#
1605# Possible values:
1606# * A valid path to a CA file
1607#
1608# Related options:
1609# * https_insecure
1610#
1611# (string value)
1612#https_ca_certificates_file = <None>
1613
1614#
1615# Set verification of the remote server certificate.
1616#
1617# This configuration option takes in a boolean value to determine
1618# whether or not to verify the remote server certificate. If set to
1619# True, the remote server certificate is not verified. If the option
1620# is
1621# set to False, then the default CA truststore is used for
1622# verification.
1623#
1624# This option is ignored if ``https_ca_certificates_file`` is set.
1625# The remote server certificate will then be verified using the file
1626# specified using the ``https_ca_certificates_file`` option.
1627#
1628# Possible values:
1629# * True
1630# * False
1631#
1632# Related options:
1633# * https_ca_certificates_file
1634#
1635# (boolean value)
1636#https_insecure = true
1637
1638#
1639# The http/https proxy information to be used to connect to the remote
1640# server.
1641#
1642# This configuration option specifies the http/https proxy information
1643# that should be used to connect to the remote server. The proxy
1644# information should be a key value pair of the scheme and proxy, for
1645# example, http:10.0.0.1:3128. You can also specify proxies for
1646# multiple
1647# schemes by separating the key value pairs with a comma, for example,
1648# http:10.0.0.1:3128, https:10.0.0.1:1080.
1649#
1650# Possible values:
1651# * A comma separated list of scheme:proxy pairs as described
1652# above
1653#
1654# Related options:
1655# * None
1656#
1657# (dict value)
1658#http_proxy_information =
1659
1660#
1661# Size, in megabytes, to chunk RADOS images into.
1662#
1663# Provide an integer value representing the size in megabytes to chunk
1664# Glance images into. The default chunk size is 8 megabytes. For
1665# optimal
1666# performance, the value should be a power of two.
1667#
1668# When Ceph's RBD object storage system is used as the storage backend
1669# for storing Glance images, the images are chunked into objects of
1670# the
1671# size set using this option. These chunked objects are then stored
1672# across the distributed block data store to use for Glance.
1673#
1674# Possible Values:
1675# * Any positive integer value
1676#
1677# Related options:
1678# * None
1679#
1680# (integer value)
1681# Minimum value: 1
1682#rbd_store_chunk_size = 8
1683
1684#
1685# RADOS pool in which images are stored.
1686#
1687# When RBD is used as the storage backend for storing Glance images,
1688# the
1689# images are stored by means of logical grouping of the objects
1690# (chunks
1691# of images) into a ``pool``. Each pool is defined with the number of
1692# placement groups it can contain. The default pool that is used is
1693# 'images'.
1694#
1695# More information on the RBD storage backend can be found here:
1696# http://ceph.com/planet/how-data-is-stored-in-ceph-cluster/
1697#
1698# Possible Values:
1699# * A valid pool name
1700#
1701# Related options:
1702# * None
1703#
1704# (string value)
1705#rbd_store_pool = images
1706
1707#
1708# RADOS user to authenticate as.
1709#
1710# This configuration option takes in the RADOS user to authenticate
1711# as.
1712# This is only needed when RADOS authentication is enabled and is
1713# applicable only if the user is using Cephx authentication. If the
1714# value for this option is not set by the user or is set to None, a
1715# default value will be chosen, which will be based on the client.
1716# section in rbd_store_ceph_conf.
1717#
1718# Possible Values:
1719# * A valid RADOS user
1720#
1721# Related options:
1722# * rbd_store_ceph_conf
1723#
1724# (string value)
1725#rbd_store_user = <None>
1726
1727#
1728# Ceph configuration file path.
1729#
1730# This configuration option takes in the path to the Ceph
1731# configuration
1732# file to be used. If the value for this option is not set by the user
1733# or is set to None, librados will locate the default configuration
1734# file
1735# which is located at /etc/ceph/ceph.conf. If using Cephx
1736# authentication, this file should include a reference to the right
1737# keyring in a client.<USER> section
1738#
1739# Possible Values:
1740# * A valid path to a configuration file
1741#
1742# Related options:
1743# * rbd_store_user
1744#
1745# (string value)
1746#rbd_store_ceph_conf = /etc/ceph/ceph.conf
1747
1748#
1749# Timeout value for connecting to Ceph cluster.
1750#
1751# This configuration option takes in the timeout value in seconds used
1752# when connecting to the Ceph cluster i.e. it sets the time to wait
1753# for
1754# glance-api before closing the connection. This prevents glance-api
1755# hangups during the connection to RBD. If the value for this option
1756# is set to less than or equal to 0, no timeout is set and the default
1757# librados value is used.
1758#
1759# Possible Values:
1760# * Any integer value
1761#
1762# Related options:
1763# * None
1764#
1765# (integer value)
1766#rados_connect_timeout = 0
1767
1768#
1769# Chunk size for images to be stored in Sheepdog data store.
1770#
1771# Provide an integer value representing the size in mebibyte
1772# (1048576 bytes) to chunk Glance images into. The default
1773# chunk size is 64 mebibytes.
1774#
1775# When using Sheepdog distributed storage system, the images are
1776# chunked into objects of this size and then stored across the
1777# distributed data store to use for Glance.
1778#
1779# Chunk sizes, if a power of two, help avoid fragmentation and
1780# enable improved performance.
1781#
1782# Possible values:
1783# * Positive integer value representing size in mebibytes.
1784#
1785# Related Options:
1786# * None
1787#
1788# (integer value)
1789# Minimum value: 1
1790#sheepdog_store_chunk_size = 64
1791
1792#
1793# Port number on which the sheep daemon will listen.
1794#
1795# Provide an integer value representing a valid port number on
1796# which you want the Sheepdog daemon to listen on. The default
1797# port is 7000.
1798#
1799# The Sheepdog daemon, also called 'sheep', manages the storage
1800# in the distributed cluster by writing objects across the storage
1801# network. It identifies and acts on the messages it receives on
1802# the port number set using ``sheepdog_store_port`` option to store
1803# chunks of Glance images.
1804#
1805# Possible values:
1806# * A valid port number (0 to 65535)
1807#
1808# Related Options:
1809# * sheepdog_store_address
1810#
1811# (port value)
1812# Minimum value: 0
1813# Maximum value: 65535
1814#sheepdog_store_port = 7000
1815
1816#
1817# Address to bind the Sheepdog daemon to.
1818#
1819# Provide a string value representing the address to bind the
1820# Sheepdog daemon to. The default address set for the 'sheep'
1821# is 127.0.0.1.
1822#
1823# The Sheepdog daemon, also called 'sheep', manages the storage
1824# in the distributed cluster by writing objects across the storage
1825# network. It identifies and acts on the messages directed to the
1826# address set using ``sheepdog_store_address`` option to store
1827# chunks of Glance images.
1828#
1829# Possible values:
1830# * A valid IPv4 address
1831# * A valid IPv6 address
1832# * A valid hostname
1833#
1834# Related Options:
1835# * sheepdog_store_port
1836#
1837# (unknown value)
1838#sheepdog_store_address = 127.0.0.1
1839
1840#
1841# Set verification of the server certificate.
1842#
1843# This boolean determines whether or not to verify the server
1844# certificate. If this option is set to True, swiftclient won't check
1845# for a valid SSL certificate when authenticating. If the option is
1846# set
1847# to False, then the default CA truststore is used for verification.
1848#
1849# Possible values:
1850# * True
1851# * False
1852#
1853# Related options:
1854# * swift_store_cacert
1855#
1856# (boolean value)
1857#swift_store_auth_insecure = false
1858
1859#
1860# Path to the CA bundle file.
1861#
1862# This configuration option enables the operator to specify the path
1863# to
1864# a custom Certificate Authority file for SSL verification when
1865# connecting to Swift.
1866#
1867# Possible values:
1868# * A valid path to a CA file
1869#
1870# Related options:
1871# * swift_store_auth_insecure
1872#
1873# (string value)
1874#swift_store_cacert = /etc/ssl/certs/ca-certificates.crt
1875
1876#
1877# The region of Swift endpoint to use by Glance.
1878#
1879# Provide a string value representing a Swift region where Glance
1880# can connect to for image storage. By default, there is no region
1881# set.
1882#
1883# When Glance uses Swift as the storage backend to store images
1884# for a specific tenant that has multiple endpoints, setting of a
1885# Swift region with ``swift_store_region`` allows Glance to connect
1886# to Swift in the specified region as opposed to a single region
1887# connectivity.
1888#
1889# This option can be configured for both single-tenant and
1890# multi-tenant storage.
1891#
1892# NOTE: Setting the region with ``swift_store_region`` is
1893# tenant-specific and is necessary ``only if`` the tenant has
1894# multiple endpoints across different regions.
1895#
1896# Possible values:
1897# * A string value representing a valid Swift region.
1898#
1899# Related Options:
1900# * None
1901#
1902# (string value)
1903#swift_store_region = RegionTwo
1904
1905#
1906# The URL endpoint to use for Swift backend storage.
1907#
1908# Provide a string value representing the URL endpoint to use for
1909# storing Glance images in Swift store. By default, an endpoint
1910# is not set and the storage URL returned by ``auth`` is used.
1911# Setting an endpoint with ``swift_store_endpoint`` overrides the
1912# storage URL and is used for Glance image storage.
1913#
1914# NOTE: The URL should include the path up to, but excluding the
1915# container. The location of an object is obtained by appending
1916# the container and object to the configured URL.
1917#
1918# Possible values:
1919# * String value representing a valid URL path up to a Swift
1920# container
1921#
1922# Related Options:
1923# * None
1924#
1925# (string value)
1926#swift_store_endpoint = https://swift.openstack.example.org/v1/path_not_including_container_name
1927
1928#
1929# Endpoint Type of Swift service.
1930#
1931# This string value indicates the endpoint type to use to fetch the
1932# Swift endpoint. The endpoint type determines the actions the user
1933# will
1934# be allowed to perform, for instance, reading and writing to the
1935# Store.
1936# This setting is only used if swift_store_auth_version is greater
1937# than
1938# 1.
1939#
1940# Possible values:
1941# * publicURL
1942# * adminURL
1943# * internalURL
1944#
1945# Related options:
1946# * swift_store_endpoint
1947#
1948# (string value)
1949# Possible values:
1950# publicURL - <No description provided>
1951# adminURL - <No description provided>
1952# internalURL - <No description provided>
1953#swift_store_endpoint_type = publicURL
1954
1955#
1956# Type of Swift service to use.
1957#
1958# Provide a string value representing the service type to use for
1959# storing images while using Swift backend storage. The default
1960# service type is set to ``object-store``.
1961#
1962# NOTE: If ``swift_store_auth_version`` is set to 2, the value for
1963# this configuration option needs to be ``object-store``. If using
1964# a higher version of Keystone or a different auth scheme, this
1965# option may be modified.
1966#
1967# Possible values:
1968# * A string representing a valid service type for Swift storage.
1969#
1970# Related Options:
1971# * None
1972#
1973# (string value)
1974#swift_store_service_type = object-store
1975
1976#
1977# Name of single container to store images/name prefix for multiple
1978# containers
1979#
1980# When a single container is being used to store images, this
1981# configuration
1982# option indicates the container within the Glance account to be used
1983# for
1984# storing all images. When multiple containers are used to store
1985# images, this
1986# will be the name prefix for all containers. Usage of single/multiple
1987# containers can be controlled using the configuration option
1988# ``swift_store_multiple_containers_seed``.
1989#
1990# When using multiple containers, the containers will be named after
1991# the value
1992# set for this configuration option with the first N chars of the
1993# image UUID
1994# as the suffix delimited by an underscore (where N is specified by
1995# ``swift_store_multiple_containers_seed``).
1996#
1997# Example: if the seed is set to 3 and swift_store_container =
1998# ``glance``, then
1999# an image with UUID ``fdae39a1-bac5-4238-aba4-69bcc726e848`` would be
2000# placed in
2001# the container ``glance_fda``. All dashes in the UUID are included
2002# when
2003# creating the container name but do not count toward the character
2004# limit, so
2005# when N=10 the container name would be ``glance_fdae39a1-ba.``
2006#
2007# Possible values:
2008# * If using single container, this configuration option can be
2009# any string
2010# that is a valid swift container name in Glance's Swift account
2011# * If using multiple containers, this configuration option can be
2012# any
2013# string as long as it satisfies the container naming rules
2014# enforced by
2015# Swift. The value of ``swift_store_multiple_containers_seed``
2016# should be
2017# taken into account as well.
2018#
2019# Related options:
2020# * ``swift_store_multiple_containers_seed``
2021# * ``swift_store_multi_tenant``
2022# * ``swift_store_create_container_on_put``
2023#
2024# (string value)
2025#swift_store_container = glance
2026
2027#
2028# The size threshold, in MB, after which Glance will start segmenting
2029# image data.
2030#
2031# Swift has an upper limit on the size of a single uploaded object. By
2032# default,
2033# this is 5GB. To upload objects bigger than this limit, objects are
2034# segmented
2035# into multiple smaller objects that are tied together with a manifest
2036# file.
2037# For more detail, refer to
2038# http://docs.openstack.org/developer/swift/overview_large_objects.html
2039#
2040# This configuration option specifies the size threshold over which
2041# the Swift
2042# driver will start segmenting image data into multiple smaller files.
2043# Currently, the Swift driver only supports creating Dynamic Large
2044# Objects.
2045#
2046# NOTE: This should be set by taking into account the large object
2047# limit
2048# enforced by the Swift cluster in consideration.
2049#
2050# Possible values:
2051# * A positive integer that is less than or equal to the large
2052# object limit
2053# enforced by the Swift cluster in consideration.
2054#
2055# Related options:
2056# * ``swift_store_large_object_chunk_size``
2057#
2058# (integer value)
2059# Minimum value: 1
2060#swift_store_large_object_size = 5120
2061
2062#
2063# The maximum size, in MB, of the segments when image data is
2064# segmented.
2065#
2066# When image data is segmented to upload images that are larger than
2067# the limit
2068# enforced by the Swift cluster, image data is broken into segments
2069# that are no
2070# bigger than the size specified by this configuration option.
2071# Refer to ``swift_store_large_object_size`` for more detail.
2072#
2073# For example: if ``swift_store_large_object_size`` is 5GB and
2074# ``swift_store_large_object_chunk_size`` is 1GB, an image of size
2075# 6.2GB will be
2076# segmented into 7 segments where the first six segments will be 1GB
2077# in size and
2078# the seventh segment will be 0.2GB.
2079#
2080# Possible values:
2081# * A positive integer that is less than or equal to the large
2082# object limit
2083# enforced by Swift cluster in consideration.
2084#
2085# Related options:
2086# * ``swift_store_large_object_size``
2087#
2088# (integer value)
2089# Minimum value: 1
2090#swift_store_large_object_chunk_size = 200
2091
2092#
2093# Create container, if it doesn't already exist, when uploading image.
2094#
2095# At the time of uploading an image, if the corresponding container
2096# doesn't
2097# exist, it will be created provided this configuration option is set
2098# to True.
2099# By default, it won't be created. This behavior is applicable for
2100# both single
2101# and multiple containers mode.
2102#
2103# Possible values:
2104# * True
2105# * False
2106#
2107# Related options:
2108# * None
2109#
2110# (boolean value)
2111#swift_store_create_container_on_put = false
2112
2113#
2114# Store images in tenant's Swift account.
2115#
2116# This enables multi-tenant storage mode which causes Glance images to
2117# be stored
2118# in tenant specific Swift accounts. If this is disabled, Glance
2119# stores all
2120# images in its own account. More details multi-tenant store can be
2121# found at
2122# https://wiki.openstack.org/wiki/GlanceSwiftTenantSpecificStorage
2123#
2124# NOTE: If using multi-tenant swift store, please make sure
2125# that you do not set a swift configuration file with the
2126# 'swift_store_config_file' option.
2127#
2128# Possible values:
2129# * True
2130# * False
2131#
2132# Related options:
2133# * swift_store_config_file
2134#
2135# (boolean value)
2136#swift_store_multi_tenant = false
2137
2138#
2139# Seed indicating the number of containers to use for storing images.
2140#
2141# When using a single-tenant store, images can be stored in one or
2142# more than one
2143# containers. When set to 0, all images will be stored in one single
2144# container.
2145# When set to an integer value between 1 and 32, multiple containers
2146# will be
2147# used to store images. This configuration option will determine how
2148# many
2149# containers are created. The total number of containers that will be
2150# used is
2151# equal to 16^N, so if this config option is set to 2, then 16^2=256
2152# containers
2153# will be used to store images.
2154#
2155# Please refer to ``swift_store_container`` for more detail on the
2156# naming
2157# convention. More detail about using multiple containers can be found
2158# at
2159# https://specs.openstack.org/openstack/glance-specs/specs/kilo/swift-
2160# store-multiple-containers.html
2161#
2162# NOTE: This is used only when swift_store_multi_tenant is disabled.
2163#
2164# Possible values:
2165# * A non-negative integer less than or equal to 32
2166#
2167# Related options:
2168# * ``swift_store_container``
2169# * ``swift_store_multi_tenant``
2170# * ``swift_store_create_container_on_put``
2171#
2172# (integer value)
2173# Minimum value: 0
2174# Maximum value: 32
2175#swift_store_multiple_containers_seed = 0
2176
2177#
2178# List of tenants that will be granted admin access.
2179#
2180# This is a list of tenants that will be granted read/write access on
2181# all Swift containers created by Glance in multi-tenant mode. The
2182# default value is an empty list.
2183#
2184# Possible values:
2185# * A comma separated list of strings representing UUIDs of
2186# Keystone
2187# projects/tenants
2188#
2189# Related options:
2190# * None
2191#
2192# (list value)
2193#swift_store_admin_tenants =
2194
2195#
2196# SSL layer compression for HTTPS Swift requests.
2197#
2198# Provide a boolean value to determine whether or not to compress
2199# HTTPS Swift requests for images at the SSL layer. By default,
2200# compression is enabled.
2201#
2202# When using Swift as the backend store for Glance image storage,
2203# SSL layer compression of HTTPS Swift requests can be set using
2204# this option. If set to False, SSL layer compression of HTTPS
2205# Swift requests is disabled. Disabling this option may improve
2206# performance for images which are already in a compressed format,
2207# for example, qcow2.
2208#
2209# Possible values:
2210# * True
2211# * False
2212#
2213# Related Options:
2214# * None
2215#
2216# (boolean value)
2217#swift_store_ssl_compression = true
2218
2219#
2220# The number of times a Swift download will be retried before the
2221# request fails.
2222#
2223# Provide an integer value representing the number of times an image
2224# download must be retried before erroring out. The default value is
2225# zero (no retry on a failed image download). When set to a positive
2226# integer value, ``swift_store_retry_get_count`` ensures that the
2227# download is attempted this many more times upon a download failure
2228# before sending an error message.
2229#
2230# Possible values:
2231# * Zero
2232# * Positive integer value
2233#
2234# Related Options:
2235# * None
2236#
2237# (integer value)
2238# Minimum value: 0
2239#swift_store_retry_get_count = 0
2240
2241#
2242# Time in seconds defining the size of the window in which a new
2243# token may be requested before the current token is due to expire.
2244#
2245# Typically, the Swift storage driver fetches a new token upon the
2246# expiration of the current token to ensure continued access to
2247# Swift. However, some Swift transactions (like uploading image
2248# segments) may not recover well if the token expires on the fly.
2249#
2250# Hence, by fetching a new token before the current token expiration,
2251# we make sure that the token does not expire or is close to expiry
2252# before a transaction is attempted. By default, the Swift storage
2253# driver requests for a new token 60 seconds or less before the
2254# current token expiration.
2255#
2256# Possible values:
2257# * Zero
2258# * Positive integer value
2259#
2260# Related Options:
2261# * None
2262#
2263# (integer value)
2264# Minimum value: 0
2265#swift_store_expire_soon_interval = 60
2266
2267#
2268# Use trusts for multi-tenant Swift store.
2269#
2270# This option instructs the Swift store to create a trust for each
2271# add/get request when the multi-tenant store is in use. Using trusts
2272# allows the Swift store to avoid problems that can be caused by an
2273# authentication token expiring during the upload or download of data.
2274#
2275# By default, ``swift_store_use_trusts`` is set to ``True``(use of
2276# trusts is enabled). If set to ``False``, a user token is used for
2277# the Swift connection instead, eliminating the overhead of trust
2278# creation.
2279#
2280# NOTE: This option is considered only when
2281# ``swift_store_multi_tenant`` is set to ``True``
2282#
2283# Possible values:
2284# * True
2285# * False
2286#
2287# Related options:
2288# * swift_store_multi_tenant
2289#
2290# (boolean value)
2291#swift_store_use_trusts = true
2292
2293#
2294# Buffer image segments before upload to Swift.
2295#
2296# Provide a boolean value to indicate whether or not Glance should
2297# buffer image data to disk while uploading to swift. This enables
2298# Glance to resume uploads on error.
2299#
2300# NOTES:
2301# When enabling this option, one should take great care as this
2302# increases disk usage on the API node. Be aware that depending
2303# upon how the file system is configured, the disk space used
2304# for buffering may decrease the actual disk space available for
2305# the glance image cache. Disk utilization will cap according to
2306# the following equation:
2307# (``swift_store_large_object_chunk_size`` * ``workers`` * 1000)
2308#
2309# Possible values:
2310# * True
2311# * False
2312#
2313# Related options:
2314# * swift_upload_buffer_dir
2315#
2316# (boolean value)
2317#swift_buffer_on_upload = false
2318
2319#
2320# Reference to default Swift account/backing store parameters.
2321#
2322# Provide a string value representing a reference to the default set
2323# of parameters required for using swift account/backing store for
2324# image storage. The default reference value for this configuration
2325# option is 'ref1'. This configuration option dereferences the
2326# parameters and facilitates image storage in Swift storage backend
2327# every time a new image is added.
2328#
2329# Possible values:
2330# * A valid string value
2331#
2332# Related options:
2333# * None
2334#
2335# (string value)
2336#default_swift_reference = ref1
2337
2338# DEPRECATED: Version of the authentication service to use. Valid
2339# versions are 2 and 3 for keystone and 1 (deprecated) for swauth and
2340# rackspace. (string value)
2341# This option is deprecated for removal.
2342# Its value may be silently ignored in the future.
2343# Reason:
2344# The option 'auth_version' in the Swift back-end configuration file
2345# is
2346# used instead.
2347#swift_store_auth_version = 2
2348
2349# DEPRECATED: The address where the Swift authentication service is
2350# listening. (string value)
2351# This option is deprecated for removal.
2352# Its value may be silently ignored in the future.
2353# Reason:
2354# The option 'auth_address' in the Swift back-end configuration file
2355# is
2356# used instead.
2357#swift_store_auth_address = <None>
2358
2359# DEPRECATED: The user to authenticate against the Swift
2360# authentication service. (string value)
2361# This option is deprecated for removal.
2362# Its value may be silently ignored in the future.
2363# Reason:
2364# The option 'user' in the Swift back-end configuration file is set
2365# instead.
2366#swift_store_user = <None>
2367
2368# DEPRECATED: Auth key for the user authenticating against the Swift
2369# authentication service. (string value)
2370# This option is deprecated for removal.
2371# Its value may be silently ignored in the future.
2372# Reason:
2373# The option 'key' in the Swift back-end configuration file is used
2374# to set the authentication key instead.
2375#swift_store_key = <None>
2376
2377#
2378# Absolute path to the file containing the swift account(s)
2379# configurations.
2380#
2381# Include a string value representing the path to a configuration
2382# file that has references for each of the configured Swift
2383# account(s)/backing stores. By default, no file path is specified
2384# and customized Swift referencing is disabled. Configuring this
2385# option is highly recommended while using Swift storage backend for
2386# image storage as it avoids storage of credentials in the database.
2387#
2388# NOTE: Please do not configure this option if you have set
2389# ``swift_store_multi_tenant`` to ``True``.
2390#
2391# Possible values:
2392# * String value representing an absolute path on the glance-api
2393# node
2394#
2395# Related options:
2396# * swift_store_multi_tenant
2397#
2398# (string value)
2399#swift_store_config_file = <None>
2400
2401#
2402# Directory to buffer image segments before upload to Swift.
2403#
2404# Provide a string value representing the absolute path to the
2405# directory on the glance node where image segments will be
2406# buffered briefly before they are uploaded to swift.
2407#
2408# NOTES:
2409# * This is required only when the configuration option
2410# ``swift_buffer_on_upload`` is set to True.
2411# * This directory should be provisioned keeping in mind the
2412# ``swift_store_large_object_chunk_size`` and the maximum
2413# number of images that could be uploaded simultaneously by
2414# a given glance node.
2415#
2416# Possible values:
2417# * String value representing an absolute directory path
2418#
2419# Related options:
2420# * swift_buffer_on_upload
2421# * swift_store_large_object_chunk_size
2422#
2423# (string value)
2424#swift_upload_buffer_dir = <None>
2425
Oleh Hryhorov6de49c92018-05-21 12:53:59 +00002426{% if server.identity.region is defined %}
2427os_region_name = {{ server.identity.region }}
2428{% endif %}
2429
Vasyl Saienko83575672018-07-17 18:34:43 +03002430{%- if server.storage is defined and server.storage.get('vmware', {}).get('enabled') %}
2431{%- set _data = server.storage.vmware %}
2432{%- include "glance/files/queens/stores/_vmware.conf" %}
2433{%- endif %}
2434
Oleh Hryhorov6de49c92018-05-21 12:53:59 +00002435[oslo_policy]
Oleh Hryhorovf05030a2018-06-21 12:43:20 +03002436{%- if server.oslo_policy is defined %}
2437{%- set _data = server.oslo_policy %}
Oleh Hryhorov6de49c92018-05-21 12:53:59 +00002438{%- include "oslo_templates/files/queens/oslo/_policy.conf" %}
2439{%- endif %}
2440
Oleksandr Bryndziif87ae002019-04-24 13:20:57 +03002441{%- if server.get('configmap', {}).glance_cache is defined %}
2442{%- set _data = server.configmap.glance_cache %}
2443{%- include "oslo_templates/files/configmap/configmap.conf" %}
2444{%- endif %}