[DEFAULT]
# Show more verbose log output (sets INFO log level output)
verbose = True
# Show debugging output in logs (sets DEBUG log level output)
debug = True
# Which backend store should Glance use by default is not specified
# in a request to add a new image to Glance? Default: 'file'
# Available choices are 'file', 'swift', and 's3'
default_store = file
# Address to bind the API server
bind_host = 0.0.0.0
# Port the bind the API server to
bind_port = 9292
# Address to find the registry server
registry_host = 0.0.0.0
# Port the registry server is listening on
registry_port = 9191
# Log to this file. Make sure you do not set the same log
# file for both the API and registry servers!
log_file = /var/log/glance/api.log
# ============ Filesystem Store Options ========================
# Directory that the Filesystem backend store
# writes image data to
filesystem_store_datadir = /media/nas/OpenStack/Glance/
# ============ Swift Store Options =============================
# Address where the Swift authentication service lives
swift_store_auth_address = 127.0.0.1:8080/v1.0/
# User to authenticate against the Swift authentication service
swift_store_user = jdoe
# Auth key for the user authenticating against the
# Swift authentication service
swift_store_key = a86850deb2742ec3cb41518e26aa2d89
# Container within the account that the account should use
# for storing images in Swift
swift_store_container = glance
# Do we create the container if it does not exist?
swift_store_create_container_on_put = False
# Period in seconds after which SQLAlchemy should reestablish its connection
# to the database.
#
# MySQL uses a default `wait_timeout` of 8 hours, after which it will drop
# idle connections. This can result in 'MySQL Gone Away' exceptions. If you
# notice this, you can lower this value to ensure that SQLAlchemy reconnects
# before MySQL can drop the connection.
sql_idle_timeout = 3600
I think I've got another bug.
I use actually the revision 134 on ubuntu 10.04.
When I start ('start glance-api' or 'start glance-registry') glance (API or registry) and if log file doesn't yet exist, the init script create it with root owner rights. But the glance process is started with glance user rights so it cannot access to the log file.
Do you saw that ?
API:
[DEFAULT]
# Show more verbose log output (sets INFO log level output)
verbose = True
# Show debugging output in logs (sets DEBUG log level output)
debug = True
# Which backend store should Glance use by default is not specified
# in a request to add a new image to Glance? Default: 'file'
# Available choices are 'file', 'swift', and 's3'
default_store = file
# Address to bind the API server
bind_host = 0.0.0.0
# Port the bind the API server to
bind_port = 9292
# Address to find the registry server
registry_host = 0.0.0.0
# Port the registry server is listening on
registry_port = 9191
# Log to this file. Make sure you do not set the same log glance/ api.log
# file for both the API and registry servers!
log_file = /var/log/
# ============ Filesystem Store Options ======= ======= ======= ===
# Directory that the Filesystem backend store store_datadir = /media/ nas/OpenStack/ Glance/
# writes image data to
filesystem_
# ============ Swift Store Options ======= ======= ======= ======= =
# Address where the Swift authentication service lives auth_address = 127.0.0. 1:8080/ v1.0/
swift_store_
# User to authenticate against the Swift authentication service
swift_store_user = jdoe
# Auth key for the user authenticating against the 3cb41518e26aa2d 89
# Swift authentication service
swift_store_key = a86850deb2742ec
# Container within the account that the account should use container = glance
# for storing images in Swift
swift_store_
# Do we create the container if it does not exist? create_ container_ on_put = False
swift_store_
[pipeline: glance- api]
pipeline = versionnegotiation apiv1app
[pipeline:versions]
pipeline = versionsapp
[app:versionsapp] api.versions: app_factory
paste.app_factory = glance.
[app:apiv1app] api.v1: app_factory
paste.app_factory = glance.
[filter: versionnegotiat ion] factory = glance. api.middleware. version_ negotiation: filter_ factory
paste.filter_
####### ####### ####### ####### ####### ####### ####### #### ####### ####### ####### ####### ####### ####### #### ####### ####### ####### ####### ####### ####### ####
#######
#######
REGISTRY:
[DEFAULT]
# Show more verbose log output (sets INFO log level output)
verbose = True
# Show debugging output in logs (sets DEBUG log level output)
debug = True
# Address to bind the registry server
bind_host = 0.0.0.0
# Port the bind the registry server to
bind_port = 9191
# Log to this file. Make sure you do not set the same log glance/ registry. log
# file for both the API and registry servers!
log_file = /var/log/
# SQLAlchemy connection string for the reference implementation www.sqlalchemy. org/docs/ 05/reference/ sqlalchemy/ connections. html#sqlalchemy .create_ engine mysql:/ /root:nova@ 127.0.0. 1/glance
# registry server. Any valid SQLAlchemy connection string is fine.
# See: http://
sql_connection=
# Period in seconds after which SQLAlchemy should reestablish its connection
# to the database.
#
# MySQL uses a default `wait_timeout` of 8 hours, after which it will drop
# idle connections. This can result in 'MySQL Gone Away' exceptions. If you
# notice this, you can lower this value to ensure that SQLAlchemy reconnects
# before MySQL can drop the connection.
sql_idle_timeout = 3600
[app:glance- registry] registry. server: app_factory
paste.app_factory = glance.
####### ####### ####### ####### ####### ####### ####### #### ####### ####### ####### ####### ####### ####### #### ####### ####### ####### ####### ####### ####### ####
#######
#######
I think I've got another bug.
I use actually the revision 134 on ubuntu 10.04.
When I start ('start glance-api' or 'start glance-registry') glance (API or registry) and if log file doesn't yet exist, the init script create it with root owner rights. But the glance process is started with glance user rights so it cannot access to the log file.
Do you saw that ?
Édouard.