2
# Show more verbose log output (sets INFO log level output)
5
# Show debugging output in logs (sets DEBUG log level output)
8
# Which backend scheme should Glance use by default is not specified
9
# in a request to add a new image to Glance? Known schemes are determined
10
# by the known_stores option below.
14
# List of which store classes and store class locations are
15
# currently known to glance at startup.
16
# known_stores = glance.store.filesystem.Store,
17
# glance.store.http.Store,
18
# glance.store.rbd.Store,
19
# glance.store.s3.Store,
20
# glance.store.swift.Store,
22
# Address to bind the API server
25
# Port the bind the API server to
28
# Log to this file. Make sure you do not set the same log
29
# file for both the API and registry servers!
30
log_file = /var/log/glance/api.log
32
# Backlog requests when creating socket
35
# TCP_KEEPIDLE value in seconds when creating socket.
36
# Not supported on OS X.
39
# SQLAlchemy connection string for the reference implementation
40
# registry server. Any valid SQLAlchemy connection string is fine.
41
# See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html#sqlalchemy.create_engine
42
sql_connection = sqlite:///glance.sqlite
44
# Period in seconds after which SQLAlchemy should reestablish its connection
47
# MySQL uses a default `wait_timeout` of 8 hours, after which it will drop
48
# idle connections. This can result in 'MySQL Gone Away' exceptions. If you
49
# notice this, you can lower this value to ensure that SQLAlchemy reconnects
50
# before MySQL can drop the connection.
51
sql_idle_timeout = 3600
53
# Number of Glance API worker processes to start.
54
# On machines with more than one CPU increasing this value
55
# may improve performance (especially if using SSL with
56
# compression turned on). It is typically recommended to set
57
# this value to the number of CPUs present on your machine.
60
# Role used to identify an authenticated user as administrator
63
# Allow unauthenticated users to access the API with read-only
64
# privileges. This only applies when using ContextMiddleware.
65
#allow_anonymous_access = False
67
# ================= Syslog Options ============================
69
# Send logs to syslog (/dev/log) instead of to file specified
73
# Facility to use. If unset defaults to LOG_USER.
74
# syslog_log_facility = LOG_LOCAL0
76
# ================= SSL Options ===============================
78
# Certificate file to use when starting API server securely
79
# cert_file = /path/to/certfile
81
# Private key file to use when starting API server securely
82
# key_file = /path/to/keyfile
84
# CA certificate file to use to verify connecting clients
85
# ca_file = /path/to/cafile
87
# ================= Security Options ==========================
89
# AES key for encrypting store 'location' metadata, including
90
# -- if used -- Swift or S3 credentials
91
# Should be set to a random string of length 16, 24 or 32 bytes
92
# metadata_encryption_key = <16, 24 or 32 char registry metadata key>
94
# ============ Registry Options ===============================
96
# Address to find the registry server
97
registry_host = 0.0.0.0
99
# Port the registry server is listening on
102
# What protocol to use when connecting to the registry server?
103
# Set to https for secure HTTP communication
104
registry_client_protocol = http
106
# The path to the key file to use in SSL connections to the
107
# registry server, if any. Alternately, you may set the
108
# GLANCE_CLIENT_KEY_FILE environ variable to a filepath of the key file
109
# registry_client_key_file = /path/to/key/file
111
# The path to the cert file to use in SSL connections to the
112
# registry server, if any. Alternately, you may set the
113
# GLANCE_CLIENT_CERT_FILE environ variable to a filepath of the cert file
114
# registry_client_cert_file = /path/to/cert/file
116
# The path to the certifying authority cert file to use in SSL connections
117
# to the registry server, if any. Alternately, you may set the
118
# GLANCE_CLIENT_CA_FILE environ variable to a filepath of the CA cert file
119
# registry_client_ca_file = /path/to/ca/file
121
# ============ Notification System Options =====================
123
# Notifications can be sent when images are create, updated or deleted.
124
# There are three methods of sending notifications, logging (via the
125
# log_file directive), rabbit (via a rabbitmq queue), qpid (via a Qpid
126
# message queue), or noop (no notifications sent, the default)
127
notifier_strategy = noop
129
# Configuration options if sending notifications via rabbitmq (these are
131
rabbit_host = localhost
133
rabbit_use_ssl = false
134
rabbit_userid = guest
135
rabbit_password = guest
136
rabbit_virtual_host = /
137
rabbit_notification_exchange = glance
138
rabbit_notification_topic = glance_notifications
140
# Configuration options if sending notifications via Qpid (these are
142
qpid_notification_exchange = glance
143
qpid_notification_topic = glance_notifications
144
qpid_host = localhost
148
qpid_sasl_mechanisms =
149
qpid_reconnect_timeout = 0
150
qpid_reconnect_limit = 0
151
qpid_reconnect_interval_min = 0
152
qpid_reconnect_interval_max = 0
153
qpid_reconnect_interval = 0
155
# Set to 'ssl' to enable SSL
157
qpid_tcp_nodelay = True
159
# ============ Filesystem Store Options ========================
161
# Directory that the Filesystem backend store
162
# writes image data to
163
filesystem_store_datadir = /var/lib/glance/images/
165
# ============ Swift Store Options =============================
167
# Version of the authentication service to use
168
# Valid versions are '2' for keystone and '1' for swauth and rackspace
169
swift_store_auth_version = 2
171
# Address where the Swift authentication service lives
172
# Valid schemes are 'http://' and 'https://'
173
# If no scheme specified, default to 'https://'
174
# For swauth, use something like '127.0.0.1:8080/v1.0/'
175
swift_store_auth_address = 127.0.0.1:5000/v2.0/
177
# User to authenticate against the Swift authentication service
178
# If you use Swift authentication service, set it to 'account':'user'
179
# where 'account' is a Swift storage account and 'user'
180
# is a user in that account
181
swift_store_user = jdoe:jdoe
183
# Auth key for the user authenticating against the
184
# Swift authentication service
185
swift_store_key = a86850deb2742ec3cb41518e26aa2d89
187
# Container within the account that the account should use
188
# for storing images in Swift
189
swift_store_container = glance
191
# Do we create the container if it does not exist?
192
swift_store_create_container_on_put = False
194
# What size, in MB, should Glance start chunking image files
195
# and do a large object manifest in Swift? By default, this is
196
# the maximum object size in Swift, which is 5GB
197
swift_store_large_object_size = 5120
199
# When doing a large object manifest, what size, in MB, should
200
# Glance write chunks to Swift? This amount of data is written
201
# to a temporary disk buffer during the process of chunking
202
# the image file, and the default is 200MB
203
swift_store_large_object_chunk_size = 200
205
# Whether to use ServiceNET to communicate with the Swift storage servers.
206
# (If you aren't RACKSPACE, leave this False!)
208
# To use ServiceNET for authentication, prefix hostname of
209
# `swift_store_auth_address` with 'snet-'.
210
# Ex. https://example.com/v1.0/ -> https://snet-example.com/v1.0/
211
swift_enable_snet = False
213
# If set to True enables multi-tenant storage mode which causes Glance images
214
# to be stored in tenant specific Swift accounts.
215
# swift_store_multi_tenant = False
217
# A list of tenants that will be granted read/write access on all Swift
218
# containers created by Glance in multi-tenant mode.
219
# swift_store_admin_tenants = []
221
# ============ S3 Store Options =============================
223
# Address where the S3 authentication service lives
224
# Valid schemes are 'http://' and 'https://'
225
# If no scheme specified, default to 'http://'
226
s3_store_host = 127.0.0.1:8080/v1.0/
228
# User to authenticate against the S3 authentication service
229
s3_store_access_key = <20-char AWS access key>
231
# Auth key for the user authenticating against the
232
# S3 authentication service
233
s3_store_secret_key = <40-char AWS secret key>
235
# Container within the account that the account should use
236
# for storing images in S3. Note that S3 has a flat namespace,
237
# so you need a unique bucket name for your glance images. An
238
# easy way to do this is append your AWS access key to "glance".
239
# S3 buckets in AWS *must* be lowercased, so remember to lowercase
240
# your AWS access key if you use it in your bucket name below!
241
s3_store_bucket = <lowercased 20-char aws access key>glance
243
# Do we create the bucket if it does not exist?
244
s3_store_create_bucket_on_put = False
246
# When sending images to S3, the data will first be written to a
247
# temporary buffer on disk. By default the platform's temporary directory
248
# will be used. If required, an alternative directory can be specified here.
249
# s3_store_object_buffer_dir = /path/to/dir
251
# ============ RBD Store Options =============================
253
# Ceph configuration file path
254
# If using cephx authentication, this file should
255
# include a reference to the right keyring
256
# in a client.<USER> section
257
rbd_store_ceph_conf = /etc/ceph/ceph.conf
259
# RADOS user to authenticate as (only applicable if using cephx)
260
rbd_store_user = glance
262
# RADOS pool in which images are stored
263
rbd_store_pool = images
265
# Images will be chunked into objects of this size (in megabytes).
266
# For best performance, this should be a power of two
267
rbd_store_chunk_size = 8
269
# ============ Delayed Delete Options =============================
271
# Turn on/off delayed delete
272
delayed_delete = False
274
# Delayed delete time in seconds
277
# Directory that the scrubber will use to remind itself of what to delete
278
# Make sure this is also set in glance-scrubber.conf
279
scrubber_datadir = /var/lib/glance/scrubber
281
# =============== Image Cache Options =============================
283
# Base directory that the Image Cache uses
284
image_cache_dir = /var/lib/glance/image-cache/